10 #ifndef __VOP_Collect_h__
11 #define __VOP_Collect_h__
53 const char *
inputLabel(
unsigned idx)
const override;
67 bool forcesubnet =
false)
override;
69 unsigned outputIdx = 0)
override;
71 int keeppos,
unsigned outputIdx = 0)
override;
77 const char *
label,
int keeppos,
92 bool create_missing_multiparms,
115 void *
data)
override;
118 int NUMINPUTS()
const;
119 void INPUTNAME(
UT_String &name,
int idx)
const;
120 void setINPUTNAME(
const char *name,
int idx,
121 bool make_unique =
true);
122 bool hasINPUTNAME(
const char *name,
int skip_idx);
124 void setINPUTLABEL(
const char *
label,
int idx);
127 void notifyParentOfInputChange();
128 void adjustForInputChange(
int idx,
129 bool is_new,
bool is_deleted);
130 void adjustForInputMove(
int srcidx,
int dstidx );
131 void moveInputNameParm(
int srcidx,
int dstidx);
132 void removeInputNameParm(
int idx);
virtual int getInputFromNameSubclass(const UT_String &in) const
virtual VOP_Type getShaderType() const
Returns the name, type, and render mask of the VOP shader.
virtual void initMaterialFlag()
void moveInput(int srcidx, int dstidx, bool forcesubnet=false) override
GLuint GLsizei const GLchar * label
virtual VOP_Node * getProcedural(VOP_Type type)
Material VOP may be able to return a procedural node.
virtual void getAllowedInputTypesSubclass(unsigned idx, VOP_VopTypeArray &voptypes)
OP_ERROR setNamedInputReference(const OP_ConnectorId &input_name, const char *label, int, const OP_ConnectorId *output_name=nullptr) override
virtual unsigned getNumVisibleInputs() const
virtual const char * inputLabel(unsigned idx) const
OP_ERROR setInput(unsigned idx, OP_Node *op, unsigned outputIdx=0) override
OP_ERROR setInputReference(unsigned idx, const char *label, int keeppos, unsigned outputIdx=0) override
Connects an input to particular node by name in the network.
virtual void getInputTypeInfoSubclass(VOP_TypeInfo &type_info, int idx)
virtual int getNumInputsFromParent() const =0
virtual void NAMEFROMPARM(UT_String &str, int idx) const =0
virtual void preOpChanged(OP_EventType, void *)
virtual void loadFinished()
virtual void setLABELFROMPARM(UT_String &str, int idx)=0
GLuint const GLchar * name
bool getParameterOrProperty(const UT_StringRef &name, fpreal now, OP_Node *&op, PRM_Parm *&parm, bool create_missing_multiparms, PRM_ParmList *obsolete=0) override
virtual VOP_OutputNameEditorSource * getOutputNameEditorSource()
Returns a pointer used by OPUI_OutputNameEditor to get and set data.
virtual void setNAMEFROMPARM(UT_String &str, int idx)=0
VOP_Type
Enumeration of the built-in (basic) VOP data types.
virtual void getInputNameSubclass(UT_String &in, int idx) const
virtual void findAllShaders(VOP_NodeList &shader_nodes, VOP_ShaderTypeList &shader_types, UT_StringArray &output_names)
bool getParameterOrPropertyByChannel(const UT_StringRef &chname, fpreal now, OP_Node *&op, PRM_Parm *&parm, int &vector_index, PRM_ParmList *obsolete=0) override
GLsizei GLenum GLenum * types
virtual bool isUSDNodeGraph() const
virtual VOP_Node * findShader(VOP_Type shader_type, fpreal now)
OP_ERROR setNamedInput(const OP_ConnectorId &input_name, OP_Node *op, const OP_ConnectorId *output_name=nullptr) override
New input functions that use names instead of indices.
virtual void LABELFROMPARM(UT_String &str, int idx) const =0
virtual void postOpChanged(OP_EventType, void *)