HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VOP_ScriptOperator Class Reference

#include <VOP_ScriptOperator.h>

+ Inheritance diagram for VOP_ScriptOperator:

Public Member Functions

 VOP_ScriptOperator (const char *path, const char *name, const char *label, int minInputs, int maxInputs, const char *vopnetMask, OP_Constructor construct, const char *child_table_name, PRM_Template *multiInputSetTemplates, bool is_subnet)
 
 ~VOP_ScriptOperator () override
 
OP_SpecificData * getOpSpecificData () override
 
const OP_SpecificData * getOpSpecificData () const override
 
VOP_OperatorInfo * getVopOperatorInfo ()
 
const VOP_OperatorInfo * getVopOperatorInfo () const
 
int updateParmTemplates () override
 
unsigned maxOutputs () override
 
unsigned maxScriptOutputs ()
 
const UT_StringHolder & getOutputName (int idx)
 
const UT_StringHolder & getOutputLabel (int idx)
 
const VOP_TypeInfo & getOutputTypeInfo (int idx, int inputset)
 
const UT_StringHolder & getInputName (int idx)
 
const UT_StringHolder & getInputLabel (int idx)
 
const VOP_TypeInfo & getInputTypeInfo (int idx, int inputset)
 
bool getIsInputVisible (int idx)
 
UT_StringArray getScriptSignatureFunctions () const override
 
bool forceCodeGenerationOfInputs (const VOP_CodeGenContext &ctx, bool check_shader_context) const
 
const UT_String & getOuterCode () const
 
const UT_String & getCode () const
 
bool wantsParametersAnimatable () const override
 
bool wantsInputEditor () const override
 
bool wantsParentInputs () const override
 
const PRM_Template * getBaseParmTemplates () override
 
void getAllowedInputTypes (unsigned idx, VOP_VopTypeArray &voptypes)
 
void getAllowedInputTypeInfos (unsigned idx, VOP_VopTypeInfoArray &voptypes)
 
int getNumInputSets () const
 
UT_StringHolder getInputSetName (int index) const
 
UT_StringHolder getInputSetLabel (int index) const
 
UT_StringHolder getInputSetScriptName (int index) const
 
int getInputSetIndex (const char *name) const
 
- Public Member Functions inherited from PI_ScriptOperator
 ~PI_ScriptOperator () override
 
void getRefreshPICommands (OP_Node *node, std::ostream &commands) override
 
void setControlsSwitcher (int switcher_index, int page_num, int insert_index=-1)
 
void setAllCookParms (bool all_cook)
 
bool isAllCookParms () const
 
void setAllNoResimParms (bool all_sim)
 
bool isAllNoSimParms () const
 
- Public Member Functions inherited from OP_ScriptOperator
 ~OP_ScriptOperator () override
 
bool hasLoadedParmTemplates () const override
 
void forceUpdateParmTemplates () override
 
void getScriptName (UT_String &name, bool forvex, bool for_python=false, const char *section_name=NULL) const
 
void getScriptFunctionName (UT_String &name) const
 
void getScriptSecondaryFunctionsNames (UT_StringMap< UT_StringHolder > &functions) const
 
bool hasExplicitScriptSection (VEX_ContextType context_type)
 
bool hasCachedCode ()
 Returns true if the operator has cached code. More...
 
void resetTemplate (OP_TemplatePair *pair)
 
int buildVexCommand (UT_String &result, OP_Node *node, fpreal now)
 
void buildIndexEntry (UT_String &result, const UT_String &dsloc)
 
int traverseCommand (OP_Node *node, OP_ScriptParmFunc traverseFunc, void *data, fpreal now)
 
UT_String & getScriptHelp ()
 
const char * getOperatorShortHelpString () override
 
void getOperatorSpecificInfoText (int verbose, UT_WorkBuffer &text) override
 
void fillInfoTreeOperatorSpecific (UT_InfoTree &tree, const OP_NodeInfoTreeParms &parms) override
 
void editScriptFile (const char *pathprefix, const char *context="surface", const char *extension=".vfl", const char *title="VEX Function", const char **obj_extensions=0, int localdir=1)
 
PY_CompiledCode * getCachedCompiledPythonCookCode ()
 
bool isCompiledPythonCookCodeCached ()
 
void clearOTLIndexFile () override
 
void dirtyParmTemplates ()
 
fpreal getUnitLength () const
 
fpreal getUnitMass () const
 
- Public Member Functions inherited from OP_Operator
 OP_Operator (const char *name, const char *english, OP_Constructor construct, PRM_Template *templates, unsigned min_sources, unsigned max_sources=9999, CH_LocalVariable *variables=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1, const char *tab_submenu_path=0)
 Note: The 'inputlabels' array is expected to be null-terminated. More...
 
 OP_Operator (const char *name, const char *english, OP_Constructor construct, OP_TemplatePair *template_pair, unsigned min_sources, unsigned max_sources=9999, OP_VariablePair *variable_pair=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1, const char *tab_submenu_path=0)
 
 OP_Operator (const char *name, const char *english, OP_Constructor construct, PRM_Template *templates, const char *child_table_name, unsigned min_sources, unsigned max_sources=9999, CH_LocalVariable *variables=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1, const char *tab_submenu_path=0)
 
 OP_Operator (const char *name, const char *english, OP_Constructor construct, OP_TemplatePair *template_pair, const char *child_table_name, unsigned min_sources, unsigned max_sources=9999, OP_VariablePair *variable_pair=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1, const char *tab_submenu_path=0)
 
virtual ~OP_Operator ()
 
OP_Node * constructNode (OP_Network *net, const char *name)
 
int getNumActiveNodes () const
 
OP_Node * getActiveNode (int i) const
 
void nodeDestroyed (OP_Node *node)
 
const UT_StringHolder & getOriginalName () const
 
void getOriginalTableAndName (UT_WorkBuffer &name) const
 
void getOriginalTableAndName (UT_String &name) const
 
const UT_StringHolder & getName () const
 
void getTableAndName (UT_WorkBuffer &name) const
 
void getTableAndName (UT_String &name) const
 
const UT_StringHolder & getEnglish () const
 
virtual UT_Color getDefaultColor () const
 
virtual const UT_StringHolder & getDefaultShape () const
 
virtual bool getHDKHelp (UT_String &) const
 
virtual bool getOpHelpURL (UT_String &url)
 
virtual bool getOpTabSubMenuPath (UT_StringHolder &tab_submenu_path)
 
void setOpTabSubMenuPath (const char *tab_submenu_path)
 
bool getOTLHelp (UT_String &str)
 
bool hasPotentialEditableSubNodes ()
 
void getEditableSubNodes (UT_String &pattern)
 
const UT_StringHolder & getMessageSubNodes () const
 
void getDiveTarget (UT_String &divetarget, bool allow_refresh=true)
 
void getDescriptiveParmName (UT_String &descrparm)
 
void getDefaultState (UT_String &statename)
 
void getFunctionName (UT_String &function_name)
 
void getSecondaryFunctionsNames (UT_StringMap< UT_StringHolder > &functions)
 
void getComment (UT_String &comment)
 
virtual bool getVersion (UT_String &version)
 
void getHelpFileDirAndName (UT_String &script_dir, UT_String &name)
 
void getDefinitionSource (UT_String &defsource) const
 
OP_Node * getDefiningNetwork () const
 
const UT_StringHolder & getIndexPath () const
 
const UT_StringHolder & getIndexFile () const
 
bool getScriptIsSubnet () const
 
bool getScriptIsVex () const
 
bool getScriptIsRsl () const
 
VEX_ContextType getVexContextType () const
 
RSL_ContextType getRslContextType () const
 
time_t getModTime () const
 
bool getIsDummyDefinition () const
 
bool getScriptIsPython () const
 
void setScriptIsPython (bool is_python)
 
const UT_StringHolder & getExtraInfo () const
 
const OP_ExtraInfoBuffer & getExtraInfoBuffer () const
 
void setOTLDefinition (const OP_OTLDefinition &definition)
 
const OP_OTLDefinition & getOTLDefinition () const
 
void setOTLLibrary (OP_OTLLibrary *library)
 
OP_OTLLibrary * getOTLLibrary ()
 
virtual bool getSectionData (const UT_StringRef &name, UT_StringHolder &value) const
 
virtual bool hasSectionData (const UT_StringRef &name) const
 
bool hasContentsSection ()
 
FS_IndexFile * getOTLIndexFile (bool check_timestamp=true)
 
FS_IndexFileHandle getOTLIndexFilePtr (bool check_timestamp=true)
 
UT_StringHolder getContentsSection ()
 
FS_IndexFile * createDefaultOTLIndexFile () const
 
FS_IndexFile * createOTLIndexFile (bool reservedsectionsonly, UT_StringArray *externalfiles)
 
void getDefinitionSectionName (UT_String &sectname) const
 
void listContainedOperators (UT_StringSet &contents_list)
 List all operators found in the contents section. More...
 
const char * getIconName () const
 
void setIconName (const char *name)
 
void setDefaultIconName ()
 
UT_StringHolder getResolvedIconName () const
 Get icon name with opdef:.?section references resolved. More...
 
bool resolveRelativeOpDefPath (UT_WorkBuffer &result, const char *path)
 
unsigned minInputs () const
 
unsigned maxInputs () const
 
OP_SpareParms * loadSpareParms (UT_IStream &is)
 
PRM_Template * getParmTemplates ()
 
PRM_ScriptImports * getParmTemplateImports ()
 
PRM_Template * getLayoutParmTemplates ()
 
PRM_ScriptImports * getLayoutParmTemplateImports ()
 
PRM_Template * getBaseOverrideLayoutParmTemplates ()
 
virtual PRM_Template * getObsoleteTemplates ()
 
void setObsoleteTemplates (PRM_Template *tmpl)
 
bool getOverrideLayoutParmTemplateFile (UT_String &ds_path) const
 
CH_LocalVariable * getVariable (int i) const
 
CH_LocalVariable * getVariable (const char *name) const
 
CH_LocalVariable * getVariables () const
 
int getVariableCount () const
 
void resetVariables (OP_VariablePair *variable_pair)
 
bool isNetwork () const
 
bool isGenerator () const
 
bool isScriptedOp () const
 
bool isCustomDSO () const
 
bool unorderedInputs () const
 
bool isManagementOp () const
 
bool isOutputOp () const
 
bool hasEditableInputData () const
 
bool getIsPrimarySubnetType () const
 
bool isCreatingNode () const
 
bool isChangingParmTemplates () const
 
bool hasNodeLoadingContentsSection () const
 
void beginLoadingContentsSectionForNode ()
 
void endLoadingContentsSectionForNode ()
 
bool shouldPreserve () const
 
virtual int compareOperator (const OP_Operator *other, int method) const
 
void changeParmTemplate (PRM_Template *tp)
 
unsigned getPermissionMask () const
 
virtual bool wantsParmOrderEditor () const
 
virtual bool wantsOutputNameEditor () const
 
const OP_InputDataEditorConfigEx & getInputDataEditorConfigEx () const
 
void setInputDataEditorConfigEx (const OP_InputDataEditorConfigEx &config)
 
void setInputDataEditorConfig (const OP_InputDataEditorConfig &config)
 
void fillInfoTree (UT_InfoTree &tree, const OP_NodeInfoTreeParms &parms)
 
const char * getTableName () const
 
OP_OperatorTable * getTable () const
 
const UT_StringHolder & getChildTableName () const
 
OP_OperatorTable * getChildOperatorTable () const
 
OP_OTLLicenseType getLicense ()
 
void setDefinition (const char *def)
 
void setEnglish (const char *english)
 
void informOfTabMenuFlagChange ()
 
virtual void setName (const char *name)
 
void setMinInputs (int inputs)
 
void setMaxInputs (int inputs)
 
void setIsGenerator (bool isgen)
 
void updatePresetInfo ()
 
PRM_PresetInfo * getPresetInfo ()
 
bool runEventScript (const char *event, OP_Node *node_arg=nullptr, bool full_path=false, UT_Options *extra_args=nullptr, bool *node_deleted_by_script=nullptr)
 
PY_EvaluationContext * getPythonModuleDicts ()
 
bool hasLoadedPythonModuleSection () const
 
void loadPythonModuleSection (bool force=false)
 
PY_EvaluationContext * getViewerStateModuleDicts ()
 
bool hasLoadedViewerStateModuleSection () const
 
void loadViewerStateModuleSection (bool force=false)
 
PY_EvaluationContext * getViewerHandleModuleDicts ()
 
bool hasLoadedViewerHandleModuleSection () const
 
void loadViewerHandleModuleSection (bool force=false)
 
void clearEventScriptPathCache ()
 
void getCachedEventScriptPaths (UT_StringArray &events, UT_StringArray &paths, bool only_nonempty) const
 
bool isThreadSafe () const
 
void setIsThreadSafe (bool is_safe)
 
bool isCompiled ()
 
bool isBlackBoxed ()
 Returns true if this operator is black boxed, and false otherwise. More...
 
void constructIndexFileSectionPath (UT_String &path, const char *opdef_or_oplib, const char *section_name) const
 
void constructIndexFileSectionPath (UT_String &path, const char *opdef_or_oplib, const UT_StringArray &section_names) const
 
void setNumOrderedInputs (int inputs)
 
int numOrderedInputs () const
 
void setLegacyInputsMap (const char *map)
 
void getLegacyInputsMap (UT_String &map) const
 
const UT_StringArray * getLegacyInputsIndexMap () const
 
const UT_StringHolder & getInputName (OP_InputIdx idx) const
 Accessing operator inputs name, label, and reference flag. More...
 
const UT_StringArray & getInputNames () const
 Accessing operator inputs name, label, and reference flag. More...
 
const UT_StringHolder & getInputLabel (OP_InputIdx idx) const
 Accessing operator inputs name, label, and reference flag. More...
 
const UT_StringArray & getInputLabels () const
 Accessing operator inputs name, label, and reference flag. More...
 
bool getInputIsReference (OP_InputIdx idx) const
 Accessing operator inputs name, label, and reference flag. More...
 
const UT_Array< bool > & getInputAreReferences () const
 Accessing operator inputs name, label, and reference flag. More...
 
virtual bool allowsInputNameEditing () const
 Accessing operator inputs name, label, and reference flag. More...
 
const UT_StringHolder & getOutputLabel (OP_OutputIdx idx) const
 
const UT_StringArray & getOutputLabels () const
 
void getOpBasedFileName (UT_String &filename)
 
void getOpBasedFileName (UT_WorkBuffer &filename)
 

Static Public Member Functions

static bool isMaterialOperator (const OP_OTLDefinition &)
 
static OP_ScriptOperator * createScriptOperator (const OP_OTLDefinition &)
 
- Static Public Member Functions inherited from PI_ScriptOperator
static PI_ScriptOperator * createScriptOp (const OP_OTLDefinition &def, OP_Constructor construct, const char *child_table_name, unsigned flags=0, PRM_Template *base=0, VEX_ContextType vextype=VEX_INVALID_CONTEXT, CH_LocalVariable *vars=0, bool is_written_in_python=false)
 
static PRM_ScriptPage * allocateScriptPage (OP_Operator *op)
 
static PRM_Callback getDefaultCallback ()
 
- Static Public Member Functions inherited from OP_ScriptOperator
static OP_ScriptOperator * createMantraScriptOp (const char *name, const char *english)
 
static int findScriptOperators (const char *path, const char *filename, OP_OTLDefinitionArray &defs)
 
static UT_StringSet & getAllIndexFiles ()
 
- Static Public Member Functions inherited from OP_Operator
static void clearOperatorHelpCache ()
 
static int loadFromOpType (const char *fname, const char *savedir)
 
static int uninstallOpType (const char *path, const char *tablename, const char *opname, const char *indexpath, const char *indexfile)
 
static void removeHelpCardOverrides (UT_FileUtil *fu, const char *path, const char *tablename, const char *opname, int flags)
 
static void removeRenameOverrides (UT_FileUtil *fu, const char *path, const char *tablename, const char *opname, int flags)
 
static void removeIconOverrides (UT_FileUtil *fu, const char *path, const char *tablename, const char *opname, int flags)
 
static void removeCmdOverrides (UT_FileUtil *fu, const char *path, const char *tablename, const char *opname, int flags)
 
static void getDefaultIconName (const char *tablename, const char *opname, UT_String &iconname)
 
static const char * getCurrentPythonModuleKey ()
 
static const OP_Operator * mapSecurityKeyToOperator (const char *key)
 
static void registerPythonModuleKeyClient (void *client)
 
static bool verifyPythonModuleKeyClient (const OP_Operator *op, void *client)
 
static PRM_Template * getEmptyTemplateList ()
 
static int operatorNameCompare (const OP_Operator *a, const OP_Operator *b)
 

Static Public Attributes

static const UT_StringHolder kShaderExtraParameter
 
static const UT_StringHolder kPragmaShaderExtraParameter
 
static const UT_StringHolder kHideInputUsingParameterVisibleState
 
static const UT_StringHolder kPragmaHideInputUsingParameterVisibleState
 

Protected Member Functions

const char * getAddedDSIncludePath () override
 
int handleUnknownToken (DS_Stream &ds, UT_String &token) override
 
bool addOutput (const UT_String &outtype, const UT_String &name, const UT_String &label)
 
bool addInput (const UT_String &intype, const UT_String &name, const UT_String &label)
 
PRM_Template * loadParmTemplates (UT_IStream &is, const char *filename, UT_String &scriptName, PRM_ScriptImports *&imports) override
 
- Protected Member Functions inherited from PI_ScriptOperator
 PI_ScriptOperator (const char *name, const char *english, OP_Constructor construct, PRM_Template *templates, const char *child_table_name, unsigned min_sources, unsigned max_sources=9999, CH_LocalVariable *variables=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1)
 
void removeAllBindings () override
 
void refreshAllBindings () override
 
- Protected Member Functions inherited from OP_ScriptOperator
 OP_ScriptOperator (const char *name, const char *english, OP_Constructor construct, PRM_Template *templates, const char *child_table_name, unsigned min_sources, unsigned max_sources=9999, CH_LocalVariable *variables=0, unsigned flags=0, const char **inputlabels=0, int maxoutputs=1)
 
void getDefinitionSourceText (UT_String &defsource)
 Obtains a string that specifies the definition source of this operator. More...
 
bool loadParmTemplatesSubclass () override
 
- Protected Member Functions inherited from OP_Operator
void notifyUpdateTemplatesSinksOfUpdate ()
 
void notifyUpdateTemplatesSinksOfDelete ()
 
void notifyActiveNodesOfTemplatesUpdate ()
 
void setDescriptiveParmName (const UT_StringHolder &parm)
 
void dirtyParmTemplatesLoaded ()
 
bool loadAndCreateLayoutParmTemplates (PRM_ScriptPage *page, DS_Stream &ds_is, PRM_Template *&base_tplates, PRM_Template *&layout_tplates, PRM_ScriptImports *&imports, PRM_Template *&tplates, int base_controls_switcher_index, int base_controls_insert_index, int base_controls_switcher_page_num, PRM_Default *&base_controls_switcher_defaults, bool hide_default_parms)
 Load parameter templates from the specified file stream. More...
 

Additional Inherited Members

- Public Types inherited from OP_ScriptOperator
enum  { OP_SYNTAX_VEX, OP_SYNTAX_SHELL, OP_SYNTAX_RMAN }
 
- Public Types inherited from OP_Operator
enum  OP_OperatorCompare { OP_COMPARE_GEN_ENGLISH = 0, OP_COMPARE_GEN_NAME = 1, OP_COMPARE_ENGLISH = 2, OP_COMPARE_NAME = 3 }
 
- Static Protected Member Functions inherited from OP_ScriptOperator
static void freeParmTemplates (PRM_Template *templates)
 
static void freeSwitcherDefaults (PRM_Default *defs)
 
- Static Protected Member Functions inherited from OP_Operator
static PRM_Template * addTemplates (OP_TemplatePair *)
 
static CH_LocalVariable * addVariables (OP_VariablePair *, int &)
 
- Protected Attributes inherited from OP_ScriptOperator
UT_String myScriptName
 
UT_String myHelp
 
fpreal myUnitLength
 
fpreal myUnitMass
 
PRM_ScriptPage * myPage
 
time_t myDialogTimeStamp
 
int myStartParm
 
int myEndParm
 
int myBaseControlsSwitcherIndex
 
int myBaseControlsSwitcherPageNum
 
int myBaseControlsInsertIndex
 
PRM_Default * myBaseSwitcherDefaults
 
unsigned mySyntax
 
UT_String myInfoText
 
PY_CompiledCode * myCachedCompiledPythonCookCode
 
UT_Lock myCachedCompiledPythonCookLock
 
int myHasCachedCode
 State var indicating if cached code is saved with HDA definition. More...
 
- Protected Attributes inherited from OP_Operator
PRM_Template * myParmTemplates
 
PRM_ScriptImports * myImports
 
PRM_Template * myLayoutParmTemplates
 
PRM_ScriptImports * myLayoutParmImports
 
PRM_Template * myBaseOverrideLayout
 
PRM_Template * myBase
 
bool myParmTemplatesLoaded
 
PRM_Template * myObsoleteTemplates
 
UT_StringArray myInputNames
 
UT_StringArray myInputLabels
 
UT_StringArray myOutputLabels
 
UT_StringHolder myTabSubmenuPath
 
UT_Array< bool > myInputReferences
 
CH_LocalVariable * myVariables
 
int myNvariables
 
UT_StringHolder myChildTableName
 
OP_OTLDefinition myOTLDefinition
 
OP_InputDataEditorConfigEx myInputDataEditorConfig
 
VEX_ContextType myVexContextType
 
RSL_ContextType myRslContextType
 
unsigned myFlags
 
bool myHasContentsSection
 
UT_StringHolder myOverriddenOperatorName
 
UT_SharedPtr< PRM_ScriptPage > myOverrideLayoutParmScriptPage
 
- Static Protected Attributes inherited from OP_ScriptOperator
static UT_StringSet theAllIndexFiles
 

Detailed Description

Definition at line 28 of file VOP_ScriptOperator.h.

Constructor & Destructor Documentation

VOP_ScriptOperator::VOP_ScriptOperator ( const char *  path,
const char *  name,
const char *  label,
int  minInputs,
int  maxInputs,
const char *  vopnetMask,
OP_Constructor  construct,
const char *  child_table_name,
PRM_Template *  multiInputSetTemplates,
bool  is_subnet 
)
VOP_ScriptOperator::~VOP_ScriptOperator ( )
override

Member Function Documentation

bool VOP_ScriptOperator::addInput ( const UT_String &  intype,
const UT_String &  name,
const UT_String &  label 
)
protected
bool VOP_ScriptOperator::addOutput ( const UT_String &  outtype,
const UT_String &  name,
const UT_String &  label 
)
protected
static OP_ScriptOperator* VOP_ScriptOperator::createScriptOperator ( const OP_OTLDefinition &  )
static
bool VOP_ScriptOperator::forceCodeGenerationOfInputs ( const VOP_CodeGenContext &  ctx,
bool  check_shader_context 
) const
const char* VOP_ScriptOperator::getAddedDSIncludePath ( )
overrideprotectedvirtual

Reimplemented from PI_ScriptOperator.

void VOP_ScriptOperator::getAllowedInputTypeInfos ( unsigned  idx,
VOP_VopTypeInfoArray &  voptypes 
)
void VOP_ScriptOperator::getAllowedInputTypes ( unsigned  idx,
VOP_VopTypeArray &  voptypes 
)
const PRM_Template* VOP_ScriptOperator::getBaseParmTemplates ( )
overridevirtual

Exists only for script/HDA operators. Returns the parm templates that are base to the HDA parameters.

Reimplemented from OP_Operator.

const UT_String& VOP_ScriptOperator::getCode ( ) const
const UT_StringHolder& VOP_ScriptOperator::getInputLabel ( int  idx)
const UT_StringHolder& VOP_ScriptOperator::getInputName ( int  idx)
int VOP_ScriptOperator::getInputSetIndex ( const char *  name) const

Methods for querying the input sets (ie, operator signatures). A VOP HDA may support inputs of different types (ints, floats), and it can do it by defining a new input set (type signature) for each such input type. On HDA it's done in Input/Output tab.

UT_StringHolder VOP_ScriptOperator::getInputSetLabel ( int  index) const

Methods for querying the input sets (ie, operator signatures). A VOP HDA may support inputs of different types (ints, floats), and it can do it by defining a new input set (type signature) for each such input type. On HDA it's done in Input/Output tab.

UT_StringHolder VOP_ScriptOperator::getInputSetName ( int  index) const

Methods for querying the input sets (ie, operator signatures). A VOP HDA may support inputs of different types (ints, floats), and it can do it by defining a new input set (type signature) for each such input type. On HDA it's done in Input/Output tab.

UT_StringHolder VOP_ScriptOperator::getInputSetScriptName ( int  index) const

Methods for querying the input sets (ie, operator signatures). A VOP HDA may support inputs of different types (ints, floats), and it can do it by defining a new input set (type signature) for each such input type. On HDA it's done in Input/Output tab.

const VOP_TypeInfo& VOP_ScriptOperator::getInputTypeInfo ( int  idx,
int  inputset 
)
bool VOP_ScriptOperator::getIsInputVisible ( int  idx)
int VOP_ScriptOperator::getNumInputSets ( ) const

Methods for querying the input sets (ie, operator signatures). A VOP HDA may support inputs of different types (ints, floats), and it can do it by defining a new input set (type signature) for each such input type. On HDA it's done in Input/Output tab.

OP_SpecificData* VOP_ScriptOperator::getOpSpecificData ( )
inlineoverridevirtual

Reimplemented from OP_Operator.

Definition at line 45 of file VOP_ScriptOperator.h.

const OP_SpecificData* VOP_ScriptOperator::getOpSpecificData ( ) const
inlineoverridevirtual

Reimplemented from OP_Operator.

Definition at line 47 of file VOP_ScriptOperator.h.

const UT_String& VOP_ScriptOperator::getOuterCode ( ) const
const UT_StringHolder& VOP_ScriptOperator::getOutputLabel ( int  idx)
const UT_StringHolder& VOP_ScriptOperator::getOutputName ( int  idx)
const VOP_TypeInfo& VOP_ScriptOperator::getOutputTypeInfo ( int  idx,
int  inputset 
)
UT_StringArray VOP_ScriptOperator::getScriptSignatureFunctions ( ) const
overridevirtual

An operator may have several signatures for a shader, and use separate shader function name for each of them. This method returns such shader function names.

Reimplemented from OP_ScriptOperator.

VOP_OperatorInfo* VOP_ScriptOperator::getVopOperatorInfo ( )
inline

Definition at line 49 of file VOP_ScriptOperator.h.

const VOP_OperatorInfo* VOP_ScriptOperator::getVopOperatorInfo ( ) const
inline

Definition at line 51 of file VOP_ScriptOperator.h.

int VOP_ScriptOperator::handleUnknownToken ( DS_Stream &  ds,
UT_String &  token 
)
overrideprotectedvirtual

Reimplemented from OP_ScriptOperator.

static bool VOP_ScriptOperator::isMaterialOperator ( const OP_OTLDefinition &  )
static
PRM_Template* VOP_ScriptOperator::loadParmTemplates ( UT_IStream &  is,
const char *  filename,
UT_String &  scriptName,
PRM_ScriptImports *&  imports 
)
overrideprotectedvirtual

Reimplemented from PI_ScriptOperator.

unsigned VOP_ScriptOperator::maxOutputs ( )
overridevirtual

Reimplemented from OP_Operator.

unsigned VOP_ScriptOperator::maxScriptOutputs ( )
int VOP_ScriptOperator::updateParmTemplates ( )
overridevirtual

Reimplemented from OP_ScriptOperator.

bool VOP_ScriptOperator::wantsInputEditor ( ) const
overridevirtual

Reimplemented from OP_Operator.

bool VOP_ScriptOperator::wantsParametersAnimatable ( ) const
overridevirtual

Reimplemented from OP_Operator.

bool VOP_ScriptOperator::wantsParentInputs ( ) const
overridevirtual

Reimplemented from OP_Operator.

Member Data Documentation

const UT_StringHolder VOP_ScriptOperator::kHideInputUsingParameterVisibleState
static

Definition at line 101 of file VOP_ScriptOperator.h.

const UT_StringHolder VOP_ScriptOperator::kPragmaHideInputUsingParameterVisibleState
static

Definition at line 102 of file VOP_ScriptOperator.h.

const UT_StringHolder VOP_ScriptOperator::kPragmaShaderExtraParameter
static

Definition at line 99 of file VOP_ScriptOperator.h.

const UT_StringHolder VOP_ScriptOperator::kShaderExtraParameter
static

Definition at line 98 of file VOP_ScriptOperator.h.


The documentation for this class was generated from the following file: