12 #ifndef __PI_ResourceTemplate_H__
13 #define __PI_ResourceTemplate_H__
72 void initialize(
const char *name,
const char *english,
93 const char *icon_name,
97 unsigned network_types,
98 int op_independent = 1,
99 const char *volatile_hotkey = 0,
105 const char *icon_name,
109 unsigned network_types,
110 int op_independent = 1,
111 const char *volatile_hotkey = 0,
112 bool hidden =
false);
121 void rebuildVolatileKeys(
127 {
return myTemplates; }
129 {
return myViewerType; }
131 {
return myNetworkTypes; }
133 {
return myIconName; }
135 {
return myOpIndependentFlag; }
137 {
return myVolatileKeys; }
139 {
return myVolatileKeysModifiers;}
141 {
return myHotkeyString; }
149 { mySupportsSelectionChange = supports_change; }
151 {
return mySupportsSelectionChange; }
155 { mySupportsMoveTool = supports_movetool; }
157 {
return mySupportsMoveTool; }
166 {
return myOpIndependentFlag > 0; }
172 myVolatileKeys = keys;
173 myVolatileKeysModifiers = modifiers;
182 unsigned myNetworkTypes;
183 int myOpIndependentFlag;
186 bool mySupportsSelectionChange;
187 bool mySupportsMoveTool;
219 namespace PI_PythonHandle
230 const char *icon_name,
233 unsigned viewmask = 0xFFFFFFFF,
234 bool display_always =
false);
238 {
return myParmNameTable; }
240 {
return myParmNameList; }
241 const char *
iconName()
const {
return myIconName; }
244 {
return myDisplayAlwaysFlag; }
247 bool supportsType(
const char *
type)
const;
251 const char *getHelp();
254 friend class PI_PythonHandle::PITemplate;
255 void addParmName(
char const* parm_name,
int index);
263 short myEtherealFlag;
264 unsigned myViewerMask;
265 bool myDisplayAlwaysFlag;
276 bool ordered =
false);
280 bool supportsType(
const char *
type)
const;
281 void data(
void *d) { myData = d; }
282 void *
data()
const {
return myData; }
const unsigned PI_NETMASK_DOP
const UT_String & name() const
virtual PRM_Template * templates()
virtual bool forceStateToEnter() const
OP_Operator * getOperator() const
const unsigned PI_NETMASK_SOP
int opIndependent() const
const UT_String & englishName() const
const unsigned PI_NETMASK_TOP
unsigned networkTypes() const
const char * getIconName() const
void setSupportsSelectionChange(bool supports_change)
const UT_Array< int > & volatileKeysModifiers()
const UT_StringArray & parmNameList() const
const unsigned PI_NETMASK_COP
const unsigned PI_NETMASK_COP2
const unsigned PI_NETMASK_CHOP
const char * iconName() const
const char * getHotkeyString() const
virtual PRM_Template * templates()
GLuint const GLchar * name
OPENVDB_API void initialize()
Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).
bool getSupportsSelectionChange() const
void constructor(void *c)
void * constructor() const
virtual const PRM_Template * templates() const
void setSupportsMoveTool(bool supports_movetool)
const unsigned PI_NETMASK_OBJ
const UT_Array< int > & volatileKeys()
void initialize(const char *name, const char *english, void *constructor)
bool isDisplayAlways() const
const PI_ParmNameIndexMap & parmNameTable() const
UT_SymbolMap< int > PI_ParmNameIndexMap
PI_ViewerType viewerType() const
unsigned getViewerMask() const
void setVolatileKeys(const UT_Array< int > &keys, const UT_Array< int > &modifiers)
GLsizei GLenum GLenum * types
bool getSupportsMoveTool() const
virtual const PRM_Template * templates() const
void setHidden(bool hide)
const unsigned PI_NETMASK_LOP