11 #ifndef __VOP_ScriptOperator__
12 #define __VOP_ScriptOperator__
20 #define DEFAULT_INPUTSET_NAME "default"
21 #define DEFAULT_INPUTSET_LABEL "Default Inputs"
22 #define DEFAULT_INPUTSET_SCRIPT_NAME ""
23 #define VOP_MATERIAL_OP_SUBTYPE_NAME "material"
34 int minInputs,
int maxInputs,
35 const char *vopnetMask,
37 const char *child_table_name,
46 {
return &myOperatorInfo; }
48 {
return &myOperatorInfo; }
50 {
return &myOperatorInfo; }
52 {
return &myOperatorInfo; }
56 unsigned maxScriptOutputs();
59 const VOP_TypeInfo &getOutputTypeInfo(
int idx,
int inputset);
63 const VOP_TypeInfo &getInputTypeInfo(
int idx,
int inputset);
64 bool getIsInputVisible(
int idx);
70 bool forceCodeGenerationOfInputs(
72 bool check_shader_context)
const;
86 int getNumInputSets()
const;
90 int getInputSetIndex(
const char *name)
const;
122 void ensureParmsAreLoaded();
virtual bool wantsParametersAnimatable() const
const UT_StringHolder & getOutputLabel(int idx) const
const OP_SpecificData * getOpSpecificData() const override
std::function< OP_Ptr(OP_Network *, const char *, OP_Operator *)> OP_Constructor
GT_API const UT_StringHolder filename
GLuint GLsizei const GLchar * label
virtual bool wantsParentInputs() const
static const UT_StringHolder kShaderExtraParameter
virtual UT_StringArray getScriptSignatureFunctions() const
static const UT_StringHolder kPragmaHideInputUsingParameterVisibleState
GLsizei const GLchar *const * path
int updateParmTemplates() override
const UT_StringHolder & getInputLabel(int idx) const
Accessing operator inputs name, label, and reference flag.
VOP_OperatorInfo * getVopOperatorInfo()
const VOP_OperatorInfo * getVopOperatorInfo() const
GLuint const GLchar * name
static const UT_StringHolder kHideInputUsingParameterVisibleState
const UT_StringHolder & getInputName(int idx) const
Accessing operator inputs name, label, and reference flag.
virtual unsigned maxOutputs()
virtual int handleUnknownToken(DS_Stream &is, UT_String &token)
virtual bool wantsInputEditor() const
virtual const PRM_Template * getBaseParmTemplates()
static const UT_StringHolder kPragmaShaderExtraParameter
OP_SpecificData * getOpSpecificData() override
virtual const char * getAddedDSIncludePath()
PRM_Template * loadParmTemplates(UT_IStream &is, const char *filename, UT_String &scriptName, PRM_ScriptImports *&imports) override