26 #ifndef __VOP_CustomContext_h__
27 #define __VOP_CustomContext_h__
39 namespace HDK_Sample {
70 {
return &myOperatorFilter; }
117 const char *
inputLabel(
unsigned idx)
const override;
118 const char *
outputLabel(
unsigned idx)
const override;
143 int idx)
const override;
155 int idx)
const override;
170 static void nodeEventHandler(
176 void handleParmChanged(
int parm_index);
184 #endif // __VOP_CustomContext_h__
static const char * theChildTableName
~VOP_CustomVop() override
~SOP_CustomVop() override
void getInputTypeInfoSubclass(VOP_TypeInfo &type_info, int idx) override
Fills in the info about the vop type connected to the idx-th input.
bool allowOperatorAsChild(OP_Operator *op) override
C++ VOP node to select one of its inputs and feed it into the output.
OP_OperatorFilter * getOperatorFilter() override
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
void getAllowedInputTypeInfosSubclass(unsigned idx, VOP_VopTypeInfoArray &type_infos) override
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
const char * inputLabel(unsigned idx) const override
Provides the labels to appear on input and output buttons.
static PRM_Template myTemplateList[]
Our parameter templates.
VOP_CustomVop(OP_Network *net, const char *name, OP_Operator *entry)
const char * getChildType() const override
We override these to specify that our child network type is VOPs.
bool runCreateScript() override
OP_OpTypeId getChildTypeID() const override
We override these to specify that our child network type is VOPs.
GLuint const GLchar * name
const char * outputLabel(unsigned idx) const override
Provides the labels to appear on input and output buttons.
unsigned getNumVisibleInputs() const override
Controls the number of input/output buttons visible on the node tile.
void getOutputTypeInfoSubclass(VOP_TypeInfo &type_info, int idx) override
Fills out the info about data type of each output connector.
static PRM_Template myTemplateList[]
Our parameter templates.
SOP_CustomVop(OP_Network *net, const char *name, OP_Operator *entry)
C++ SOP node to provide the custom VOP context.
void getInputNameSubclass(UT_String &name, int idx) const override
int getInputFromNameSubclass(const UT_String &name) const override
Reverse mapping of internal input names to an input index.
void getOutputNameSubclass(UT_String &out, int idx) const override
unsigned getNumVisibleOutputs() const override
OP_ERROR cookMySop(OP_Context &context) override
Override this to do VOP network evaluation.