26 #ifndef __VOP_Switch_h__
27 #define __VOP_Switch_h__
35 namespace HDK_Sample {
57 const char *
inputLabel(
unsigned idx)
const override;
58 const char *
outputLabel(
unsigned idx)
const override;
void getOutputNameSubclass(UT_String &out, int idx) const override
C++ VOP node to select one of its inputs and feed it into the output.
VOP_Switch(OP_Network *net, const char *name, OP_Operator *entry)
void getInputNameSubclass(UT_String &in, int idx) const override
const char * outputLabel(unsigned idx) const override
void getAllowedInputTypeInfosSubclass(unsigned idx, VOP_VopTypeInfoArray &type_infos) override
void getOutputTypeInfoSubclass(VOP_TypeInfo &type_info, int idx) override
Fills out the info about the data type of each output connector.
unsigned getNumVisibleInputs() const override
Controls the number of input buttons visible on the node tile.
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
Creates an instance of this node with the given name in the given network.
void getInputTypeInfoSubclass(VOP_TypeInfo &type_info, int idx) override
Fills in the info about the vop type connected to the idx-th input.
bool updateParmsFlags() override
Disable our parameters based on which inputs are connected.
void getCode(UT_String &codestr, const VOP_CodeGenContext &context) override
Generate the code for this operator.
unsigned orderedInputs() const override
GLuint const GLchar * name
const char * inputLabel(unsigned idx) const override
Provides the labels to appear on input and output buttons.
static PRM_Template myTemplateList[]
Our parameter templates.
int getInputFromNameSubclass(const UT_String &in) const override
Reverse mapping of internal input names to an input index.