10 #ifndef __VOP_SubnetOutput_h__
11 #define __VOP_SubnetOutput_h__
29 const char *
inputLabel(
unsigned idx)
const override;
35 bool check_shader_context
43 bool forcesubnet =
false)
override;
48 void moveInputInternal(
int srcidx,
int dstidx,
51 unsigned outputIdx = 0)
override;
56 unsigned outputIdx = 0)
override;
88 void clearCachedInputNames();
108 void adjustParentForInputChange(
int idx,
bool inputnull);
109 void getInternalInputName(
UT_String &in,
int idx)
const;
111 int mapToParentInputIndex(
int index)
const;
112 void swapNames(
int srcidx,
int dstidx);
113 void adjustOutputParmsForInputChange(
int idx,
virtual int getInputFromNameSubclass(const UT_String &in) const
void moveInput(int srcidx, int dstidx, bool forcesubnet=false) override
GLuint GLsizei const GLchar * label
OP_ERROR setNamedInputReference(const OP_ConnectorId &input_name, const char *label, int, const OP_ConnectorId *output_name=nullptr) override
virtual bool forceCodeGenerationOfInputs(const VOP_CodeGenContext &context, bool check_shader_context) const
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 setLABELFROMPARM(UT_String &str, int idx)=0
GLuint const GLchar * name
VOP_OutputNameEditorSource * getOutputNameEditorSource() override
Returns a pointer used by OPUI_OutputNameEditor to get and set data.
virtual void getCode(UT_String &codestr, const VOP_CodeGenContext &context)
Get the code fragment to be included in the shader code.
virtual void setNAMEFROMPARM(UT_String &str, int idx)=0
virtual void getInputNameSubclass(UT_String &in, int idx) const
virtual void getAllowedInputTypeInfosSubclass(unsigned idx, VOP_VopTypeInfoArray &infos)
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