feat: variable socket counts
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
#include "Engine/Operator/AttributeHandle.h"
|
||||
#include <oneapi/tbb/parallel_for.h>
|
||||
|
||||
GOP_house::GOP_house(enzo::nt::OpId opId)
|
||||
: enzo::nt::GeometryOpDef(opId)
|
||||
GOP_house::GOP_house(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo)
|
||||
: GeometryOpDef(network, opInfo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ class GOP_house
|
||||
: public enzo::nt::GeometryOpDef
|
||||
{
|
||||
public:
|
||||
GOP_house(enzo::nt::OpId opId);
|
||||
GOP_house(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo);
|
||||
virtual void cookOp(enzo::op::Context context);
|
||||
static enzo::nt::GeometryOpDef* ctor(enzo::nt::OpId opId)
|
||||
static enzo::nt::GeometryOpDef* ctor(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo)
|
||||
{
|
||||
return new GOP_house(opId);
|
||||
return new GOP_house(network, opInfo);
|
||||
}
|
||||
|
||||
static BOOST_SYMBOL_EXPORT enzo::prm::Template parameterList[];
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#include "Engine/Operator/AttributeHandle.h"
|
||||
#include "Engine/Parameter/Template.h"
|
||||
|
||||
GopTransform::GopTransform(enzo::nt::OpId opId)
|
||||
: enzo::nt::GeometryOpDef(opId)
|
||||
GopTransform::GopTransform(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo)
|
||||
: GeometryOpDef(network, opInfo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ class GopTransform
|
||||
: public enzo::nt::GeometryOpDef
|
||||
{
|
||||
public:
|
||||
GopTransform(enzo::nt::OpId opId);
|
||||
GopTransform(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo);
|
||||
virtual void cookOp(enzo::op::Context context);
|
||||
static enzo::nt::GeometryOpDef* ctor(enzo::nt::OpId opId)
|
||||
static enzo::nt::GeometryOpDef* ctor(enzo::nt::NetworkManager* network, enzo::op::OpInfo opInfo)
|
||||
{
|
||||
return new GopTransform(opId);
|
||||
return new GopTransform(network, opInfo);
|
||||
}
|
||||
|
||||
static BOOST_SYMBOL_EXPORT enzo::prm::Template parameterList[];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "Engine/Operator/OpInfo.h"
|
||||
#include "Engine/Operator/OperatorTable.h"
|
||||
#include "GopHouse.h"
|
||||
#include "OpDefs/GopTransform.hpp"
|
||||
@@ -9,16 +10,26 @@ extern "C"
|
||||
BOOST_SYMBOL_EXPORT void newSopOperator(enzo::op::addOperatorPtr addOperator)
|
||||
{
|
||||
addOperator(
|
||||
"transform",
|
||||
"Transform",
|
||||
&GopTransform::ctor,
|
||||
GopTransform::parameterList
|
||||
enzo::op::OpInfo {
|
||||
"transform",
|
||||
"Transform",
|
||||
&GopTransform::ctor,
|
||||
GopTransform::parameterList,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
}
|
||||
);
|
||||
addOperator(
|
||||
"house",
|
||||
"House",
|
||||
&GOP_house::ctor,
|
||||
GOP_house::parameterList
|
||||
enzo::op::OpInfo {
|
||||
"house",
|
||||
"House",
|
||||
&GOP_house::ctor,
|
||||
GOP_house::parameterList,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user