HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PRM_SpareData.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: PRM_SpareData.h ( PRM Library, C++)
7  *
8  * COMMENTS: This class is used to add additional token/value pairs to a
9  * parameter.
10  */
11 
12 #ifndef __PRM_SpareData__
13 #define __PRM_SpareData__
14 
15 #include "PRM_API.h"
16 #include "PRM_Type.h"
17 
18 #include <CH/CH_ExprLanguage.h>
19 #include <SYS/SYS_Types.h>
20 #include <UT/UT_Color.h>
21 #include <UT/UT_Pair.h>
22 #include <UT/UT_StringMap.h>
23 #include <UT/UT_Variadic.h>
24 
25 // Namespace to use for built-in parameter tags.
26 // Note that we cannot add the namespace to old built-in tags
27 // for compatibility reasons.
28 #define PRM_SPARE_BUILTIN_NAMESPACE "sidefx::"
29 
30 //
31 // Declarations of built-in parm spare data tokens (tag names).
32 // The entries in this list must be included in `theBuiltInTokenMap`
33 // (see PRM_SpareData.C).
34 //
35 // NOTE: You *must* include the SideFX namespace in the token
36 // when adding a new spare data token.
37 //
38 #define PRM_SPARE_KEY_VALUE_DICT_KEY_LABEL_TOKEN \
39  PRM_SPARE_BUILTIN_NAMESPACE "key_value_dict_key_label"
40 #define PRM_SPARE_KEY_VALUE_DICT_VALUE_LABEL_TOKEN \
41  PRM_SPARE_BUILTIN_NAMESPACE "key_value_dict_value_label"
42 #define PRM_SPARE_KEY_VALUE_DICT_USE_CHOOSER_TOKEN \
43  PRM_SPARE_BUILTIN_NAMESPACE "key_value_dict_use_chooser"
44 #define PRM_SPARE_KEY_VALUE_DICT_CHOOSER_LABEL_TOKEN \
45  PRM_SPARE_BUILTIN_NAMESPACE "key_value_dict_chooser_label"
46 #define PRM_SPARE_KEY_VALUE_DICT_CHOOSER_CALLBACK_TOKEN \
47  PRM_SPARE_BUILTIN_NAMESPACE "key_value_dict_chooser_callback"
48 #define PRM_SPARE_ATTRIB_ACCESS_TOKEN \
49  PRM_SPARE_BUILTIN_NAMESPACE "attrib_access"
50 
51 //
52 // Declarations of *old*, built-in parm spare data tokens (tag names).
53 // WARNING: Do not add new spare data tokens to this list!!!
54 // Add the tokens to the new list above and include the SideFX
55 // namespace in the tokens.
56 //
57 #define PRM_SPARE_AUTOSCOPE_TOKEN "autoscope"
58 #define PRM_SPARE_BUTTON_ICON_TOKEN "button_icon"
59 #define PRM_SPARE_CODE_GENERATION_TOKEN "code_generation"
60 #define PRM_SPARE_COLOR_DYN_TOKEN "colordyn"
61 #define PRM_SPARE_COLOR_TYPE_TOKEN "colortype"
62 #define PRM_SPARE_COLOR_WHEEL_TOKEN "colorwheel"
63 #define PRM_SPARE_COOK_DEPENDENT_TOKEN "cook_dependent"
64 #define PRM_SPARE_EDITOR_LANG_TOKEN "editorlang"
65 #define PRM_SPARE_EDITOR_LINES_TOKEN "editorlines"
66 #define PRM_SPARE_EDITOR_TOKEN "editor"
67 #define PRM_SPARE_FILE_CHOOSER_MODE_TOKEN "filechooser_mode"
68 #define PRM_SPARE_FILE_CHOOSER_PATTERN_TOKEN "filechooser_pattern"
69 #define PRM_SPARE_GROUP_TYPE_TOKEN "group_type"
70 #define PRM_SPARE_MULTI_START_OFFSET_TOKEN "multistartoffset"
71 #define PRM_SPARE_NETREF_TOKEN "netref"
72 #define PRM_SPARE_OPFILTER_TOKEN "opfilter"
73 #define PRM_SPARE_OPPATH_KEYWORDS_TOKEN "oppathkeywords"
74 #define PRM_SPARE_OPRELATIVE_TOKEN "oprelative"
75 #define PRM_SPARE_PARM_VOP_TOKEN "parmvop"
76 #define PRM_SPARE_RAMP_BASIS_DEFAULT_TOKEN "rampbasisdefault"
77 #define PRM_SPARE_RAMP_BASIS_TOKEN "rampbasis"
78 #define PRM_SPARE_RAMP_BASIS_VAR_TOKEN "rampbasis_var"
79 #define PRM_SPARE_RAMP_COLOR_DEFAULT_TOKEN "rampcolordefault"
80 #define PRM_SPARE_RAMP_COLOR_TYPE_TOKEN "rampcolortype"
81 #define PRM_SPARE_RAMP_FLOAT_DEFAULT_TOKEN "rampfloatdefault"
82 #define PRM_SPARE_RAMP_KEYS_TOKEN "rampkeys"
83 #define PRM_SPARE_RAMP_KEYS_VAR_TOKEN "rampkeys_var"
84 #define PRM_SPARE_RAMP_SHOW_CONTROLS_DEFAULT_TOKEN "rampshowcontrolsdefault"
85 #define PRM_SPARE_RAMP_VALUES_TOKEN "rampvalues"
86 #define PRM_SPARE_RAMP_VALUES_VAR_TOKEN "rampvalues_var"
87 #define PRM_SPARE_SCRIPT_ACTION_HELP_TOKEN "script_action_help"
88 #define PRM_SPARE_SCRIPT_ACTION_ICON_TOKEN "script_action_icon"
89 #define PRM_SPARE_SCRIPT_ACTION_TOKEN "script_action"
90 #define PRM_SPARE_SCRIPT_CALLBACK_TOKEN "script_callback"
91 #define PRM_SPARE_SCRIPT_RITYPE_TOKEN "script_ritype"
92 #define PRM_SPARE_SCRIPT_UNQUOTED_TOKEN "script_unquoted"
93 #define PRM_SPARE_SHADER_PARM_CONTEXTS_TOKEN "shaderparmcontexts"
94 #define PRM_SPARE_UNITS_TOKEN "units"
95 #define PRM_SPARE_XCF_MODE_TOKEN "xcfmode"
96 #define PRM_SPARE_VARYING_DEFAULT_TOKEN "varying_default"
97 
98 class UT_BitArray;
99 class PRM_Parm;
100 class prm_SharedString;
101 
102 typedef int (*PRM_SpareCallback)(const char *token, const char *value);
103 typedef int (*PRM_SpareCallbackWithData)(const char *token,
104  const char *value, void *data);
105 
108 
109 
111 {
112 public:
113  /// The constructor for the PRM_SpareData should takes a variadic number of
114  /// token/value pairs. For example:
115  /// static PRM_SpareData(PRM_SpareArgs()
116  /// << PRM_SpareToken("token1", "value1")
117  /// << PRM_SpareToken("token2", "value2")
118  /// ...);
119  explicit PRM_SpareData(const PRM_SpareArgs &args);
120 
121  /// A single token value pair
122  explicit PRM_SpareData(const PRM_SpareToken &pair);
123  PRM_SpareData();
124  ~PRM_SpareData();
125 
126  PRM_SpareData(const PRM_SpareData &copy);
127  PRM_SpareData &operator=(const PRM_SpareData &copy);
128 
129  uint entries() const;
130 
131  void clear();
132  void mergeFrom(const PRM_SpareData &ref);
133  void copyFrom(const PRM_SpareData &ref);
134 
135  bool containsAny(const PRM_SpareData &ref) const;
136  bool containsAll(const PRM_SpareData &ref) const;
137 
138  // The the value associated with a particular token.
139  const char *getValue(const char *token) const;
140 
141  // Because these are traverseConst functions, we can't remove any items
142  // from the table in the traversal functions.
143  void traverseConst(PRM_SpareCallback f) const;
144  void traverseConst(PRM_SpareCallbackWithData f, void *data) const;
145 
146 
147  // NOTE: When addTokenValue is called with a null pointer for the value,
148  // the token is deleted from the spare data.
149  void addTokenValue(const char *token, const char *value);
150  void deleteTokenValue(const char *token)
151  { addTokenValue(token, 0); }
152 
153  // For backward compatibility with the ScriptParmSpareData class, we have
154  // these functions.
155  void setCallbackData(const char *str)
156  { addTokenValue(PRM_SPARE_SCRIPT_CALLBACK_TOKEN, str); }
157  const char *getCallbackData() const
158  { return getValue(PRM_SPARE_SCRIPT_CALLBACK_TOKEN); }
159 
160  void setCallbackLanguage(CH_ScriptLanguage language);
161  CH_ScriptLanguage getCallbackLanguage() const;
162 
163  void setRenderManType(const char *str)
164  { addTokenValue(PRM_SPARE_SCRIPT_RITYPE_TOKEN, str); }
165  const char *getRenderManType() const
166  { return getValue(PRM_SPARE_SCRIPT_RITYPE_TOKEN); }
167 
168  void setOpFilter(const char *str)
169  { addTokenValue(PRM_SPARE_OPFILTER_TOKEN, str); }
170  const char *getOpFilter() const
171  { return getValue(PRM_SPARE_OPFILTER_TOKEN); }
172 
173  void setOpRelative(const char *str)
174  { addTokenValue(PRM_SPARE_OPRELATIVE_TOKEN, str); }
175  const char *getOpRelative() const
176  { return getValue(PRM_SPARE_OPRELATIVE_TOKEN); }
177 
178  static const char * getUnquotedStateToken()
181  { addTokenValue(getUnquotedStateToken(), "1"); }
182  bool getUnquotedState() const
183  { return getValue(getUnquotedStateToken()) != 0; }
184 
185  void setMultiStartOffset(int value);
186  int getMultiStartOffset() const;
187 
188  void setVisibleTabs(const UT_BitArray &values);
189  void getVisibleTabs(UT_BitArray &values) const;
190  bool getVisibleTab(int tabidx) const;
191 
192  // Ramp
193  static const char * getRampBasisDefaultToken()
195  void setRampBasisDefault(const char *value)
196  { addTokenValue(getRampBasisDefaultToken(),value); }
197  const char * getRampBasisDefault() const
198  { return getValue(getRampBasisDefaultToken()); }
199 
200  static const char * getRampShowControlsDefaultToken()
202  void setRampShowControlsDefault(bool value)
203  {
204  addTokenValue(getRampShowControlsDefaultToken(),
205  value ? "1" : "0");
206  }
208  {
209  const char *n, *v;
210  n = getRampShowControlsDefaultToken();
211  v = getValue(n);
212  if (!v)
213  return true;
214  else
215  return *v != '0';
216  }
217 
218  static const char * getRampColorTypeToken()
220  static const char * getRampColorTypeValueToken(UT_ColorType color_type);
221  void setRampColorType(UT_ColorType color_type);
222  UT_ColorType getRampColorType() const;
223 
224  static const char * getRampBasisVarToken()
226  static const char * getRampKeysVarToken()
228  static const char * getRampValuesVarToken()
230 
231  void setRampBasisVar(const char *value)
232  { addTokenValue(getRampBasisVarToken(), value); }
233  const char * getRampBasisVar() const
234  { return getValue(getRampBasisVarToken()); }
235  void setRampKeysVar(const char *value)
236  { addTokenValue(getRampKeysVarToken(), value); }
237  const char * getRampKeysVar() const
238  { return getValue(getRampKeysVarToken()); }
239  void setRampValuesVar(const char *value)
240  { addTokenValue(getRampValuesVarToken(), value); }
241  const char * getRampValuesVar() const
242  { return getValue(getRampValuesVarToken()); }
243 
244  static const char * getColorRampDefaultToken()
246  const char * getColorRampDefaultValue() const
247  { return getValue(getColorRampDefaultToken()); }
248  static const char * getFloatRampDefaultToken()
250  const char * getFloatRampDefaultValue() const
251  { return getValue(getFloatRampDefaultToken()); }
252  void setRampDefaultFromParm(const PRM_Parm &ramp_parm);
253  void getRampDefaultToParm(PRM_Parm &ramp_parm) const;
254 
255  // Color UI Mode, Wheel flag and Dynamic flag
256  static const char * getColorTypeToken()
257  { return PRM_SPARE_COLOR_TYPE_TOKEN; }
258  static const char * getColorTypeValueToken(PRM_ColorType color_type);
259  void setColorType(PRM_ColorType color_type);
260  PRM_ColorType getColorType() const;
261 
262  static const char * getColorWheelToken()
263  { return PRM_SPARE_COLOR_WHEEL_TOKEN; }
264  void setColorWheel(bool value);
265  bool getColorWheel() const;
266 
267  static const char * getColorDynamicToken()
268  { return PRM_SPARE_COLOR_DYN_TOKEN; }
269  void setColorDynamic(bool value);
270  bool getColorDynamic() const;
271 
272  static const char * getKeyValueDictKeyLabelToken()
274  void setKeyValueDictKeyLabel(const char *label);
275  const char *getKeyValueDictKeyLabel() const;
276  static const char * getKeyValueDictValueLabelToken()
278  void setKeyValueDictValueLabel(const char *label);
279  const char *getKeyValueDictValueLabel() const;
280  static const char * getKeyValueDictUseChooserToken()
282  void setKeyValueDictUseChooser(bool use_chooser);
283  bool getKeyValueDictUseChooser() const;
284  static const char * getKeyValueDictChooserLabelToken()
286  void setKeyValueDictChooserLabel(const char *label);
287  const char *getKeyValueDictChooserLabel() const;
290  void setKeyValueDictChooserCallback(const char *label);
291  const char *getKeyValueDictChooserCallback() const;
292 
293  void setXCFMode(const char *value)
294  { return addTokenValue(PRM_SPARE_XCF_MODE_TOKEN, value); }
295  const char *getXCFMode() const
296  { return getValue(PRM_SPARE_XCF_MODE_TOKEN); }
297 
298  const char *getScriptAction() const;
299  const char *getScriptActionHelp() const;
300  const char *getScriptActionIcon() const;
301  const char *getButtonIcon() const;
302 
303  bool getUseEditor() const;
304  const char *getEditorLanguage() const
305  { return getValue(PRM_SPARE_EDITOR_LANG_TOKEN); }
306  void getEditorLinesRange(int &lines_min, int &lines_max) const;
307  static inline int getEditorLinesRangeDefaultMin() { return 8; }
308  static inline int getEditorLinesRangeDefaultMax() { return 40; }
309 
310  static const char *getXCFModeFloatValToken() { return "float"; }
311 
312  // Token for whether the template will be used for cooking
313  static const char * getCookDependentToken()
315  // Get state of cook_dependent flag.
316  // This is only used for SPARE parameters, which if this tag doesn't exist,
317  // the spare parm defaults to false for cook dependent.
318  bool getCookDependent() const;
319  // Set state of cook_dependent flag.
320  // This is only used for SPARE parameters, which if this tag doesn't exist,
321  // the spare parm defaults to false for cook dependent.
322  void setCookDependent(bool flag);
323 
324  // Token for whether the parm on the VOP should regenerate code
325  static const char *getCodeGenDependentToken()
327  // Get the state of the code_generation flag
328  // This is only used for SPARE parameters, which if this tag doesn't exist,
329  // the spare parm defaults to true for code generation
330  bool getCodeGenDependent() const;
331  // Set state of code_generation flag.
332  // This is only used for SPARE parameters, which if this tag doesn't exist,
333  // the spare parm defaults to true for code generation
334  void setCodeGenDependent(bool flag);
335 
336  int64 getMemoryUsage(bool inclusive) const;
337 
338  static const char *getOpFilterKeyFromName(const char *name);
339  static const char *getOpFilterKeyFromLabel(const char *name);
340  static const char *getOpFilterNameFromKey(const char *key);
341  static const char *getOpFilterLabelFromKey(const char *key);
342  // End of backward compatibility
343 
344  // Convenience spare data you might want to use
345  static PRM_SpareData objNetRef; // /obj
346  static PRM_SpareData chNetRef; // /ch
347  static PRM_SpareData ropNetRef; // /out
348 
349  static PRM_SpareData objPath; // !!OBJ!!
350  static PRM_SpareData objGeometryPath; // !!OBJ/GEOMETRY!!
351  static PRM_SpareData objLightPath; // !!OBJ/LIGHT!!
352  static PRM_SpareData objBonePath; // !!OBJ/BONE!!
353  static PRM_SpareData objMusclePath; // !!OBJ/MUSCLE!!
354  static PRM_SpareData objCameraPath; // !!OBJ/CAMERA!!
355  static PRM_SpareData dopPath; // !!DOP!!
356  static PRM_SpareData sopPath; // !!SOP!!
357  static PRM_SpareData popPath; // !!POP!!
358  static PRM_SpareData ropPath; // !!ROP!!
359  static PRM_SpareData cop2Path; // !!COP2!!
360  static PRM_SpareData chopPath; // !!CHOP!!
361  static PRM_SpareData constraintsPath; // !!CHOP!!
362  static PRM_SpareData shopPath; // !!SHOP!!
363  static PRM_SpareData shopProperties; // !!SHOP/PROPERTIES!!
364  static PRM_SpareData shopMaterial; // !!SHOP/MATERIAL!!
365  static PRM_SpareData shopSurface; // !!SHOP/SURFACE!!
366  static PRM_SpareData shopDisplacement; // !!SHOP/DISPLACEMENT!!
367  static PRM_SpareData shopSurfaceShadow; // !!SHOP/SURFACE_SHADOW!!
368  static PRM_SpareData shopBackground; // !!SHOP/BACKGROUND!!
369  static PRM_SpareData shopGeometry; // !!SHOP/GEOMETRY!!
370  static PRM_SpareData shopAtmosphere; // !!SHOP/ATMOSPHERE!!
371  static PRM_SpareData shopPhoton; // !!SHOP/PHOTON!!
372  static PRM_SpareData shopPhotonVolume; // !!SHOP/PHOTONVOLUME!!
373  static PRM_SpareData shopContour; // !!SHOP/CONTOUR!!
374  static PRM_SpareData shopLight; // !!SHOP/LIGHT!!
375  static PRM_SpareData shopEmitter; // !!SHOP/EMITTER!!
376  static PRM_SpareData shopLightShadow; // !!SHOP/LIGHT_SHADOW!!
377  static PRM_SpareData shopLens; // !!SHOP/LENS!!
378  static PRM_SpareData shopOutput; // !!SHOP/OUTPUT!!
379  static PRM_SpareData shopContourStore; // !!SHOP/CONTOUR_STORE!!
380  static PRM_SpareData shopContourContrast; // !!SHOP/CONTOUR_CONTRAST!!
381  static PRM_SpareData shopImage3d; // !!SHOP/IMAGE3D!!
382  static PRM_SpareData shopCVEX; // !!SHOP/CVEX!!
383  static PRM_SpareData shopCoShader; // !!SHOP/COSHADER!!
384  static PRM_SpareData vopPath; // !!VOP!!
385  static PRM_SpareData filterMaterial; // !!CUSTOM/MATERIAL!!
386 
387  static PRM_SpareData autoScope; // autoscope
388 
389  static PRM_SpareData multiStartOffsetZero; // multistart offset of zero
390  static PRM_SpareData multiStartOffsetOne; // multistart offset of one
391 
395  static PRM_SpareData unitsMass; // kg1
396  static PRM_SpareData unitsPerMass; // kg-1
397  static PRM_SpareData unitsTime; // s1
400  static PRM_SpareData unitsVelocity; // m1s-1
404  static PRM_SpareData unitsForce; // kg1m1s-2
405  static PRM_SpareData unitsForceDensity; // kg1m-2s-2
406  static PRM_SpareData unitsImpulse; // kg1m1s-1
407  static PRM_SpareData unitsTorque; // kg1m2s-2
408  static PRM_SpareData unitsDrag; // kg1s-1
409  static PRM_SpareData unitsAngDrag; // kg1m2s-1
410  static PRM_SpareData unitsPressure; // kg1m-1s-2
415  static PRM_SpareData unitsAreaDensity; // kg1m-2
418  static PRM_SpareData unitsDensity; // kg1m-3
419  static PRM_SpareData unitsDensityPerTime; // kg1m-3s-1
421  static PRM_SpareData unitsNone; // ""
422 
423  static PRM_SpareData rampBasisDefault; // rampbasis "ramp_basis"
424  static PRM_SpareData rampKeysDefault; // rampkeys "ramp_keys"
425  static PRM_SpareData rampValuesDefault; // rampvalues "ramp_values"
426 
427  static PRM_SpareData attribAccessR; // "sidefx::attrib_access" "read"
428  static PRM_SpareData attribAccessW; // "sidefx::attrib_access" "write"
429  static PRM_SpareData attribAccessRW; // "sidefx::attrib_access" "readwrite"
430 
431  /// Used to set a space- or comma-separated list of globs to use as
432  /// file filter for parameters of type @c PRM_FILE (e.g. "*.txt *.log").
433  static const char *getFileChooserPatternToken()
435 
436  static const char *getFileChooserModeToken()
438  static const char *getFileChooserModeValRead()
439  { return "read"; }
440  static const char *getFileChooserModeValWrite()
441  { return "write"; }
442  static const char *getFileChooserModeValReadAndWrite()
443  { return "read_and_write"; }
444 
445  static PRM_SpareData fileChooserModeRead; // filechooser_mode "read"
446  static PRM_SpareData fileChooserModeWrite; // filechooser_mode "write"
447  static PRM_SpareData fileChooserModeReadAndWrite; // ... "read_and_write"
448 
449  static PRM_SpareData stringFloatXCF; // float XCF in string field
450 
451  static const char *getScriptActionToken()
453  static const char *getScriptActionHelpToken()
455  static const char *getScriptActionIconToken()
457  static const char *getButtonIconToken()
458  { return PRM_SPARE_BUTTON_ICON_TOKEN; }
459 
460  static const char *getEditorToken()
461  { return PRM_SPARE_EDITOR_TOKEN; }
462  static PRM_SpareData stringEditor; // Use a text editor for strings
463 
464  static const char *getEditorLanguageToken() { return PRM_SPARE_EDITOR_LANG_TOKEN; }
469 
470  /// Number of lines to show by default. This value can be set as either
471  /// a single number or a range, e.g. '10-50'. The minimum number is what
472  /// the editor will originally show up as, but will attempt to expand up to
473  /// the maximum.
474  static const char *getEditorLinesRangeToken()
475  { return PRM_SPARE_EDITOR_LINES_TOKEN; }
476 
477  // token indicating the parameter comes from a Parameter VOP (ie it is a
478  // shader parameter)
479  static const char * getParmVopVarToken()
480  { return PRM_SPARE_PARM_VOP_TOKEN; }
481 
482  // space-separated list of shading contexts, which a material parameter
483  // belongs to, ie, shaders for each of these contexts actually have
484  // this parameter as an argument, since material may contain other shaders
485  // for other contexts to which a parameter does not apply
486  static const char * getShaderParmContextsToken()
488 
489  // token specifying special keywords that are legal in an oppath parameter
490  // (in addition to the node path itself)
491  static const char * getOpPathKeywordsToken()
493 
494  // token for unit specification
495  static const char * getUnitsToken()
496  { return PRM_SPARE_UNITS_TOKEN; }
497 
498  // token for group specialization (simple/collapsible/toggle groups).
499  static const char *getGroupTypeToken()
500  { return PRM_SPARE_GROUP_TYPE_TOKEN; }
503 
504  // Marks parameter has having varying default values
505  // Defaults to "0"
506  static const char *getVaryingDefaultToken()
509  bool getHasVaryingDefault() const;
510  void setHasVaryingDefault(bool f);
511 
512  /// Return true if the given token is a built-in (internally used) spare
513  /// data token.
514  static bool isBuiltInToken(const char *token);
515 
516  /// Return a range of the built-in tags names.
517  static void builtInTokens(UT_StringArray &tokens);
518 private:
520 };
521 
522 #endif
static PRM_SpareData objLightPath
static PRM_SpareData objMusclePath
static PRM_SpareData shopOutput
static const char * getVaryingDefaultToken()
static PRM_SpareData shopEmitter
static PRM_SpareData stringEditorLangPython
static const char * getColorWheelToken()
static PRM_SpareData rampValuesDefault
#define PRM_SPARE_OPRELATIVE_TOKEN
Definition: PRM_SpareData.h:74
static PRM_SpareData unitsTime
const char * getXCFMode() const
#define PRM_SPARE_SCRIPT_ACTION_HELP_TOKEN
Definition: PRM_SpareData.h:87
static PRM_SpareData shopCVEX
#define PRM_SPARE_COLOR_TYPE_TOKEN
Definition: PRM_SpareData.h:61
#define PRM_SPARE_CODE_GENERATION_TOKEN
Definition: PRM_SpareData.h:59
static PRM_SpareData unitsLinearDensity
static const char * getEditorLanguageToken()
static const char * getRampColorTypeToken()
static const char * getXCFModeFloatValToken()
static PRM_SpareData vopPath
static PRM_SpareData ropPath
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
const char * getEditorLanguage() const
const char * getOpFilter() const
void setCallbackData(const char *str)
static PRM_SpareData shopPath
static PRM_SpareData dopPath
static PRM_SpareData unitsImpulse
static PRM_SpareData shopDisplacement
static PRM_SpareData fileChooserModeReadAndWrite
static const char * getCookDependentToken()
#define PRM_SPARE_XCF_MODE_TOKEN
Definition: PRM_SpareData.h:95
const GLdouble * v
Definition: glcorearb.h:836
void setXCFMode(const char *value)
#define PRM_SPARE_RAMP_BASIS_DEFAULT_TOKEN
Definition: PRM_SpareData.h:76
static const char * getRampKeysVarToken()
#define PRM_SPARE_RAMP_BASIS_VAR_TOKEN
Definition: PRM_SpareData.h:78
static const char * getParmVopVarToken()
#define PRM_SPARE_SCRIPT_ACTION_ICON_TOKEN
Definition: PRM_SpareData.h:88
static PRM_SpareData stringFloatXCF
static PRM_SpareData unitsPerMass
static PRM_SpareData stringEditorLangExpr
static const char * getButtonIconToken()
static PRM_SpareData shopSurface
static PRM_SpareData objGeometryPath
bool getUnquotedState() const
static const char * getRampBasisDefaultToken()
static PRM_SpareData unitsPressure
#define PRM_SPARE_SCRIPT_RITYPE_TOKEN
Definition: PRM_SpareData.h:91
#define PRM_SPARE_RAMP_FLOAT_DEFAULT_TOKEN
Definition: PRM_SpareData.h:81
const char * getRampBasisDefault() const
static const char * getKeyValueDictChooserLabelToken()
static const char * getGroupTypeToken()
#define PRM_SPARE_KEY_VALUE_DICT_CHOOSER_CALLBACK_TOKEN
Definition: PRM_SpareData.h:46
static PRM_SpareData stringEditor
static PRM_SpareData shopPhoton
static PRM_SpareData unitsPerSquareTime
void setUnquotedState()
UT_VariadicT< PRM_SpareToken > PRM_SpareArgs
static const char * getFileChooserPatternToken()
static PRM_SpareData unitsPerLength
static PRM_SpareData attribAccessW
#define PRM_SPARE_RAMP_VALUES_VAR_TOKEN
Definition: PRM_SpareData.h:86
static PRM_SpareData shopContourContrast
static PRM_SpareData attribAccessRW
#define PRM_SPARE_UNITS_TOKEN
Definition: PRM_SpareData.h:94
#define PRM_SPARE_OPPATH_KEYWORDS_TOKEN
Definition: PRM_SpareData.h:73
static PRM_SpareData multiStartOffsetOne
static PRM_SpareData unitsAngVelocity
static PRM_SpareData cop2Path
#define PRM_SPARE_KEY_VALUE_DICT_USE_CHOOSER_TOKEN
Definition: PRM_SpareData.h:42
static const char * getKeyValueDictUseChooserToken()
static PRM_SpareData groupTypeCollapsible
long long int64
Definition: SYS_Types.h:100
#define PRM_SPARE_SCRIPT_CALLBACK_TOKEN
Definition: PRM_SpareData.h:90
static PRM_SpareData shopAtmosphere
#define PRM_SPARE_KEY_VALUE_DICT_VALUE_LABEL_TOKEN
Definition: PRM_SpareData.h:40
static PRM_SpareData unitsAreaDensity
static PRM_SpareData unitsLinearDensityPerSquareTime
GLdouble n
Definition: glcorearb.h:2007
GLfloat f
Definition: glcorearb.h:1925
static const char * getUnitsToken()
#define PRM_SPARE_FILE_CHOOSER_MODE_TOKEN
Definition: PRM_SpareData.h:67
static PRM_SpareData chNetRef
const char * getCallbackData() const
static int getEditorLinesRangeDefaultMin()
static PRM_SpareData unitsMass
static PRM_SpareData rampBasisDefault
static PRM_SpareData unitsDrag
static PRM_SpareData objNetRef
static const char * getKeyValueDictKeyLabelToken()
GLint ref
Definition: glcorearb.h:123
#define PRM_SPARE_EDITOR_LINES_TOKEN
Definition: PRM_SpareData.h:65
static PRM_SpareData sopPath
static const char * getScriptActionIconToken()
static PRM_SpareData filterMaterial
static PRM_SpareData varyingDefault
static PRM_SpareData unitsLength
const char * getFloatRampDefaultValue() const
static const char * getOpPathKeywordsToken()
static PRM_SpareData unitsAngDrag
#define PRM_SPARE_COLOR_WHEEL_TOKEN
Definition: PRM_SpareData.h:62
#define PRM_SPARE_VARYING_DEFAULT_TOKEN
Definition: PRM_SpareData.h:96
static PRM_SpareData shopContour
const char * getOpRelative() const
static const char * getKeyValueDictChooserCallbackToken()
static PRM_SpareData unitsTorque
static const char * getEditorLinesRangeToken()
#define PRM_SPARE_RAMP_COLOR_DEFAULT_TOKEN
Definition: PRM_SpareData.h:79
static const char * getCodeGenDependentToken()
static PRM_SpareData unitsLinearDensityPerTime
static PRM_SpareData rampKeysDefault
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1601
bool getRampShowControlsDefault() const
static PRM_SpareData shopBackground
static const char * getKeyValueDictValueLabelToken()
static PRM_SpareData shopContourStore
static const char * getColorDynamicToken()
static PRM_SpareData unitsForce
GLboolean * data
Definition: glcorearb.h:130
static const char * getColorRampDefaultToken()
GLuint const GLchar * name
Definition: glcorearb.h:785
UT_Pair< const char *, const char * > PRM_SpareToken
static PRM_SpareData multiStartOffsetZero
static PRM_SpareData shopProperties
const char * getRampBasisVar() const
static PRM_SpareData constraintsPath
unsigned int uint
Definition: SYS_Types.h:33
static const char * getRampValuesVarToken()
#define PRM_SPARE_COOK_DEPENDENT_TOKEN
Definition: PRM_SpareData.h:63
static PRM_SpareData unitsNone
static const char * getRampShowControlsDefaultToken()
void setOpFilter(const char *str)
#define PRM_SPARE_KEY_VALUE_DICT_CHOOSER_LABEL_TOKEN
Definition: PRM_SpareData.h:44
static const char * getShaderParmContextsToken()
#define PRM_SPARE_RAMP_COLOR_TYPE_TOKEN
Definition: PRM_SpareData.h:80
static PRM_SpareData ropNetRef
#define PRM_SPARE_KEY_VALUE_DICT_KEY_LABEL_TOKEN
Definition: PRM_SpareData.h:38
static PRM_SpareData unitsAcceleration
static PRM_SpareData shopGeometry
static const char * getFileChooserModeToken()
PRM_ColorType
Definition: PRM_Type.h:434
GLsizei const GLfloat * value
Definition: glcorearb.h:823
static PRM_SpareData unitsAreaDensityPerSquareTime
png_infop png_sPLT_tpp entries
Definition: png.h:2481
static PRM_SpareData shopMaterial
static PRM_SpareData chopPath
UT_ColorType
Definition: UT_Color.h:24
const char * getColorRampDefaultValue() const
void setRampBasisDefault(const char *value)
#define PRM_SPARE_PARM_VOP_TOKEN
Definition: PRM_SpareData.h:75
typedef int
Definition: png.h:1175
#define PRM_SPARE_SCRIPT_ACTION_TOKEN
Definition: PRM_SpareData.h:89
#define PRM_SPARE_SCRIPT_UNQUOTED_TOKEN
Definition: PRM_SpareData.h:92
void setRampKeysVar(const char *value)
static PRM_SpareData objCameraPath
static PRM_SpareData groupTypeSimple
void setRenderManType(const char *str)
#define PRM_SPARE_OPFILTER_TOKEN
Definition: PRM_SpareData.h:72
static PRM_SpareData shopLightShadow
static PRM_SpareData fileChooserModeWrite
#define PRM_SPARE_RAMP_SHOW_CONTROLS_DEFAULT_TOKEN
Definition: PRM_SpareData.h:84
const char * getRampValuesVar() const
png_infop png_uint_32 png_uint_32 int int * color_type
Definition: png.h:2394
const char * getRampKeysVar() const
static PRM_SpareData stringEditorLangHScript
static const char * getFloatRampDefaultToken()
static PRM_SpareData unitsDensityPerSquareTime
#define PRM_SPARE_EDITOR_LANG_TOKEN
Definition: PRM_SpareData.h:64
static PRM_SpareData unitsAngAcceleration
static PRM_SpareData shopImage3d
static PRM_SpareData stringEditorLangVex
static int getEditorLinesRangeDefaultMax()
const char * getRenderManType() const
#define PRM_SPARE_BUTTON_ICON_TOKEN
Definition: PRM_SpareData.h:58
static const char * getColorTypeToken()
#define PRM_SPARE_RAMP_KEYS_VAR_TOKEN
Definition: PRM_SpareData.h:83
static const char * getFileChooserModeValRead()
static PRM_SpareData objBonePath
void setRampShowControlsDefault(bool value)
static PRM_SpareData shopPhotonVolume
static PRM_SpareData unitsDensity
static const char * getScriptActionHelpToken()
static PRM_SpareData autoScope
static PRM_SpareData shopLens
static const char * getUnquotedStateToken()
static PRM_SpareData shopLight
static PRM_SpareData unitsPerArea
static const char * getEditorToken()
static PRM_SpareData unitsSpringConstant
void setOpRelative(const char *str)
static PRM_SpareData unitsDensityPerTime
void deleteTokenValue(const char *token)
static PRM_SpareData unitsForceDensity
#define PRM_SPARE_SHADER_PARM_CONTEXTS_TOKEN
Definition: PRM_SpareData.h:93
static const char * getScriptActionToken()
png_infop png_uint_32 flag
Definition: png.h:2242
static const char * getRampBasisVarToken()
static PRM_SpareData shopSurfaceShadow
static const char * getFileChooserModeValWrite()
void setRampBasisVar(const char *value)
#define PRM_API
Definition: PRM_API.h:10
static PRM_SpareData unitsAreaDensityPerTime
#define PRM_SPARE_COLOR_DYN_TOKEN
Definition: PRM_SpareData.h:60
static PRM_SpareData shopCoShader
int(* PRM_SpareCallbackWithData)(const char *token, const char *value, void *data)
void setRampValuesVar(const char *value)
static PRM_SpareData popPath
static PRM_SpareData unitsPerTime
static PRM_SpareData objPath
CH_ScriptLanguage
#define PRM_SPARE_GROUP_TYPE_TOKEN
Definition: PRM_SpareData.h:69
static PRM_SpareData unitsVelocity
static PRM_SpareData attribAccessR
int(* PRM_SpareCallback)(const char *token, const char *value)
#define PRM_SPARE_FILE_CHOOSER_PATTERN_TOKEN
Definition: PRM_SpareData.h:68
static PRM_SpareData fileChooserModeRead
static const char * getFileChooserModeValReadAndWrite()
#define PRM_SPARE_EDITOR_TOKEN
Definition: PRM_SpareData.h:66