feat: add geometryOpDef
This commit is contained in:
23
src/Engine/Operator/GeometryOpDef.h
Normal file
23
src/Engine/Operator/GeometryOpDef.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include "Engine/Operator/Geometry.h"
|
||||
|
||||
namespace enzo::nt
|
||||
{
|
||||
class GeometryOpDef
|
||||
{
|
||||
public:
|
||||
GeometryOpDef();
|
||||
void cookOp();
|
||||
private:
|
||||
std::vector<enzo::geo::Geometry> outputGeometry_;
|
||||
unsigned int minInputs_;
|
||||
unsigned int maxInputs_;
|
||||
unsigned int maxOutputs_;
|
||||
protected:
|
||||
const enzo::geo::Geometry& getInputGeoView(unsigned int inputIndex);
|
||||
enzo::geo::Geometry cloneInputGeo(unsigned int inputIndex);
|
||||
bool outputRequested(unsigned int outputIndex);
|
||||
|
||||
void setOutputGeometry(unsigned int outputIndex, enzo::geo::Geometry geometry);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user