HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_VolumeSlice.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_NodeVerb.h>
7 #include <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_VolumeSliceEnums
22 {
23  enum class Method
24  {
25  VOLUME = 0,
26  MESH,
27  POINTS
28  };
29  enum class Plane
30  {
31  XY = 0,
32  YZ,
33  ZX
34  };
35  enum class Vismode
36  {
37  NONE = 0,
38  _FALSE,
39  PINK,
40  MONO,
41  BLACKBODY,
42  BIPARTITE
43  };
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myGroup = ""_sh;
55  myMethod = 1;
56  myPlane = 0;
57  myPlaneoffset = 0;
58  myAttrib = "density"_sh;
59  myCreatevarmap = false;
60  myLvar = ""_sh;
61  myVisualize = false;
62  myVismode = 1;
63  myVisrange = UT_Vector2D(0,1);
64  myKeep = false;
65 
66  }
67 
68  explicit SOP_VolumeSliceParms(const SOP_VolumeSliceParms &) = default;
69 
70  virtual ~SOP_VolumeSliceParms() {}
71 
72  bool operator==(const SOP_VolumeSliceParms &src) const
73  {
74  if (myGroup != src.myGroup) return false;
75  if (myMethod != src.myMethod) return false;
76  if (myPlane != src.myPlane) return false;
77  if (myPlaneoffset != src.myPlaneoffset) return false;
78  if (myAttrib != src.myAttrib) return false;
79  if (myCreatevarmap != src.myCreatevarmap) return false;
80  if (myLvar != src.myLvar) return false;
81  if (myVisualize != src.myVisualize) return false;
82  if (myVismode != src.myVismode) return false;
83  if (myVisrange != src.myVisrange) return false;
84  if (myKeep != src.myKeep) return false;
85 
86  return true;
87  }
91 
92 
93 
94  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
95  {
96  if (true)
97  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
98  else myGroup = ""_sh;
99  if (true)
100  OP_Utils::evalOpParm(myMethod, node, "method", time, 0);
101  else myMethod = 1;
102  if (true)
103  OP_Utils::evalOpParm(myPlane, node, "plane", time, 0);
104  else myPlane = 0;
105  if (true)
106  OP_Utils::evalOpParm(myPlaneoffset, node, "planeoffset", time, 0);
107  else myPlaneoffset = 0;
108  if (true && ( (!(((int64(getMethod())==0)))) ) )
109  OP_Utils::evalOpParm(myAttrib, node, "attrib", time, 0);
110  else myAttrib = "density"_sh;
111  if (true && ( (!(((int64(getMethod())==0)))) ) )
112  OP_Utils::evalOpParm(myCreatevarmap, node, "createvarmap", time, 0);
113  else myCreatevarmap = false;
114  if (true && ( (!(((int64(getMethod())==0))||((getCreatevarmap()==0)))) ) )
115  OP_Utils::evalOpParm(myLvar, node, "lvar", time, 0);
116  else myLvar = ""_sh;
117  if (true && ( (!(((int64(getMethod())==0)))) ) )
118  OP_Utils::evalOpParm(myVisualize, node, "visualize", time, 0);
119  else myVisualize = false;
120  if (true && ( (!(((int64(getMethod())==0))||((getVisualize()==0)))) ) )
121  OP_Utils::evalOpParm(myVismode, node, "vismode", time, 0);
122  else myVismode = 1;
123  if (true && ( (!(((int64(getMethod())==0))||((getVisualize()==0)))) ) )
124  OP_Utils::evalOpParm(myVisrange, node, "visrange", time, 0);
125  else myVisrange = UT_Vector2D(0,1);
126  if (true)
127  OP_Utils::evalOpParm(myKeep, node, "keep", time, 0);
128  else myKeep = false;
129 
130  }
131 
132 
133  virtual void loadFromOpSubclass(const LoadParms &loadparms)
134  {
135  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
136  }
137 
138 
139  virtual void copyFrom(const SOP_NodeParms *src)
140  {
141  *this = *((const SOP_VolumeSliceParms *)src);
142  }
143 
144  template <typename T>
145  void
146  doGetParmValue(exint idx, T &value) const
147  {
148  switch (idx)
149  {
150  case 0:
151  coerceValue(value, myGroup);
152  break;
153  case 1:
154  coerceValue(value, myMethod);
155  break;
156  case 2:
157  coerceValue(value, myPlane);
158  break;
159  case 3:
160  coerceValue(value, myPlaneoffset);
161  break;
162  case 4:
163  coerceValue(value, myAttrib);
164  break;
165  case 5:
166  coerceValue(value, myCreatevarmap);
167  break;
168  case 6:
169  coerceValue(value, myLvar);
170  break;
171  case 7:
172  coerceValue(value, myVisualize);
173  break;
174  case 8:
175  coerceValue(value, myVismode);
176  break;
177  case 9:
178  coerceValue(value, myVisrange);
179  break;
180  case 10:
181  coerceValue(value, myKeep);
182  break;
183 
184  }
185  }
186 
187  void getParmValue(exint idx, exint &value) const
188  { doGetParmValue(idx, value); }
189  void getParmValue(exint idx, fpreal &value) const
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
204  { doGetParmValue(idx, value); }
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
209 
210  template <typename T>
211  void
212  doSetParmValue(exint idx, const T &value)
213  {
214  switch (idx)
215  {
216  case 0:
217  coerceValue(myGroup, value);
218  break;
219  case 1:
220  coerceValue(myMethod, value);
221  break;
222  case 2:
223  coerceValue(myPlane, value);
224  break;
225  case 3:
226  coerceValue(myPlaneoffset, value);
227  break;
228  case 4:
229  coerceValue(myAttrib, value);
230  break;
231  case 5:
232  coerceValue(myCreatevarmap, value);
233  break;
234  case 6:
235  coerceValue(myLvar, value);
236  break;
237  case 7:
238  coerceValue(myVisualize, value);
239  break;
240  case 8:
241  coerceValue(myVismode, value);
242  break;
243  case 9:
244  coerceValue(myVisrange, value);
245  break;
246  case 10:
247  coerceValue(myKeep, value);
248  break;
249 
250  }
251  }
252 
253  void setParmValue(exint idx, const exint &value)
254  { doSetParmValue(idx, value); }
255  void setParmValue(exint idx, const fpreal &value)
256  { doSetParmValue(idx, value); }
257  void setParmValue(exint idx, const UT_Vector2D &value)
258  { doSetParmValue(idx, value); }
259  void setParmValue(exint idx, const UT_Vector3D &value)
260  { doSetParmValue(idx, value); }
261  void setParmValue(exint idx, const UT_Vector4D &value)
262  { doSetParmValue(idx, value); }
263  void setParmValue(exint idx, const UT_Matrix2D &value)
264  { doSetParmValue(idx, value); }
265  void setParmValue(exint idx, const UT_Matrix3D &value)
266  { doSetParmValue(idx, value); }
267  void setParmValue(exint idx, const UT_Matrix4D &value)
268  { doSetParmValue(idx, value); }
270  { doSetParmValue(idx, value); }
272  { doSetParmValue(idx, value); }
274  { doSetParmValue(idx, value); }
275 
276  virtual exint getNumParms() const
277  {
278  return 11;
279  }
280 
281  virtual const char *getParmName(exint fieldnum) const
282  {
283  switch (fieldnum)
284  {
285  case 0:
286  return "group";
287  case 1:
288  return "method";
289  case 2:
290  return "plane";
291  case 3:
292  return "planeoffset";
293  case 4:
294  return "attrib";
295  case 5:
296  return "createvarmap";
297  case 6:
298  return "lvar";
299  case 7:
300  return "visualize";
301  case 8:
302  return "vismode";
303  case 9:
304  return "visrange";
305  case 10:
306  return "keep";
307 
308  }
309  return 0;
310  }
311 
312  virtual ParmType getParmType(exint fieldnum) const
313  {
314  switch (fieldnum)
315  {
316  case 0:
317  return PARM_STRING;
318  case 1:
319  return PARM_INTEGER;
320  case 2:
321  return PARM_INTEGER;
322  case 3:
323  return PARM_FLOAT;
324  case 4:
325  return PARM_STRING;
326  case 5:
327  return PARM_INTEGER;
328  case 6:
329  return PARM_STRING;
330  case 7:
331  return PARM_INTEGER;
332  case 8:
333  return PARM_INTEGER;
334  case 9:
335  return PARM_VECTOR2;
336  case 10:
337  return PARM_INTEGER;
338 
339  }
340  return PARM_UNSUPPORTED;
341  }
342 
343  // Boiler plate to load individual types.
344  static void loadData(UT_IStream &is, int64 &v)
345  { is.bread(&v, 1); }
346  static void loadData(UT_IStream &is, bool &v)
347  { int64 iv; is.bread(&iv, 1); v = iv; }
348  static void loadData(UT_IStream &is, fpreal64 &v)
349  { is.bread<fpreal64>(&v, 1); }
350  static void loadData(UT_IStream &is, UT_Vector2D &v)
351  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
352  static void loadData(UT_IStream &is, UT_Vector3D &v)
353  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
354  is.bread<fpreal64>(&v.z(), 1); }
355  static void loadData(UT_IStream &is, UT_Vector4D &v)
356  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
357  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
358  static void loadData(UT_IStream &is, UT_Matrix2D &v)
359  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
360  static void loadData(UT_IStream &is, UT_Matrix3D &v)
361  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
362  static void loadData(UT_IStream &is, UT_Matrix4D &v)
363  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
364  static void loadData(UT_IStream &is, UT_Vector2I &v)
365  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
366  static void loadData(UT_IStream &is, UT_Vector3I &v)
367  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
368  is.bread<int64>(&v.z(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector4I &v)
370  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
371  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
373  { is.bread(v); }
375  { UT_StringHolder rampdata;
376  loadData(is, rampdata);
377  if (rampdata.isstring())
378  {
379  v.reset(new UT_Ramp());
380  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
381  v->load(istr);
382  }
383  else v.reset();
384  }
387  loadData(is, data);
388  if (data.isstring())
389  {
390  // Find the data type.
391  char *colon = UT_StringWrap(data).findChar(':');
392  if (colon)
393  {
394  int typelen = colon - data.buffer();
396  type.strncpy(data.buffer(), typelen);
397  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
398 
399  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
400  }
401  }
402  else v.reset();
403  }
404 
405  static void saveData(std::ostream &os, int64 v)
406  { UTwrite(os, &v); }
407  static void saveData(std::ostream &os, bool v)
408  { int64 iv = v; UTwrite(os, &iv); }
409  static void saveData(std::ostream &os, fpreal64 v)
410  { UTwrite<fpreal64>(os, &v); }
411  static void saveData(std::ostream &os, UT_Vector2D v)
412  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
413  static void saveData(std::ostream &os, UT_Vector3D v)
414  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
415  UTwrite<fpreal64>(os, &v.z()); }
416  static void saveData(std::ostream &os, UT_Vector4D v)
417  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
418  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
419  static void saveData(std::ostream &os, UT_Matrix2D v)
421  static void saveData(std::ostream &os, UT_Matrix3D v)
423  static void saveData(std::ostream &os, UT_Matrix4D v)
425  static void saveData(std::ostream &os, UT_StringHolder s)
426  { UT_StringWrap(s).saveBinary(os); }
427  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
428  { UT_StringHolder result;
429  UT_OStringStream ostr;
430  if (s) s->save(ostr);
431  result = ostr.str();
432  saveData(os, result);
433  }
434  static void saveData(std::ostream &os, PRM_DataItemHandle s)
435  { UT_StringHolder result;
436  UT_OStringStream ostr;
437  if (s)
438  {
439  ostr << s->getDataTypeToken();
440  ostr << ":";
441  s->saveBinary(ostr);
442  }
443  result = ostr.str();
444  saveData(os, result);
445  }
446 
447 
448  void save(std::ostream &os) const
449  {
450  int32 v = version();
451  UTwrite(os, &v);
452  saveData(os, myGroup);
453  saveData(os, myMethod);
454  saveData(os, myPlane);
455  saveData(os, myPlaneoffset);
456  saveData(os, myAttrib);
457  saveData(os, myCreatevarmap);
458  saveData(os, myLvar);
459  saveData(os, myVisualize);
460  saveData(os, myVismode);
461  saveData(os, myVisrange);
462  saveData(os, myKeep);
463 
464  }
465 
466  bool load(UT_IStream &is)
467  {
468  int32 v;
469  is.bread(&v, 1);
470  if (version() != v)
471  {
472  // Fail incompatible versions
473  return false;
474  }
475  loadData(is, myGroup);
476  loadData(is, myMethod);
477  loadData(is, myPlane);
478  loadData(is, myPlaneoffset);
479  loadData(is, myAttrib);
480  loadData(is, myCreatevarmap);
481  loadData(is, myLvar);
482  loadData(is, myVisualize);
483  loadData(is, myVismode);
484  loadData(is, myVisrange);
485  loadData(is, myKeep);
486 
487  return true;
488  }
489 
490  const UT_StringHolder & getGroup() const { return myGroup; }
491  void setGroup(const UT_StringHolder & val) { myGroup = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getGroup();
496  UT_StringHolder result;
497  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
498  return result;
499  }
500  Method getMethod() const { return Method(myMethod); }
501  void setMethod(Method val) { myMethod = int64(val); }
502  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getMethod();
506  int64 result;
507  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
508  return Method(result);
509  }
510  Plane getPlane() const { return Plane(myPlane); }
511  void setPlane(Plane val) { myPlane = int64(val); }
512  Plane opPlane(const SOP_NodeVerb::CookParms &cookparms) const
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getPlane();
516  int64 result;
517  OP_Utils::evalOpParm(result, thissop, "plane", cookparms.getCookTime(), 0);
518  return Plane(result);
519  }
520  fpreal64 getPlaneoffset() const { return myPlaneoffset; }
521  void setPlaneoffset(fpreal64 val) { myPlaneoffset = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getPlaneoffset();
526  fpreal64 result;
527  OP_Utils::evalOpParm(result, thissop, "planeoffset", cookparms.getCookTime(), 0);
528  return result;
529  }
530  const UT_StringHolder & getAttrib() const { return myAttrib; }
531  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getAttrib();
536  UT_StringHolder result;
537  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
538  return result;
539  }
540  bool getCreatevarmap() const { return myCreatevarmap; }
541  void setCreatevarmap(bool val) { myCreatevarmap = val; }
542  bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getCreatevarmap();
546  bool result;
547  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
548  return result;
549  }
550  const UT_StringHolder & getLvar() const { return myLvar; }
551  void setLvar(const UT_StringHolder & val) { myLvar = val; }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getLvar();
556  UT_StringHolder result;
557  OP_Utils::evalOpParm(result, thissop, "lvar", cookparms.getCookTime(), 0);
558  return result;
559  }
560  bool getVisualize() const { return myVisualize; }
561  void setVisualize(bool val) { myVisualize = val; }
562  bool opVisualize(const SOP_NodeVerb::CookParms &cookparms) const
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getVisualize();
566  bool result;
567  OP_Utils::evalOpParm(result, thissop, "visualize", cookparms.getCookTime(), 0);
568  return result;
569  }
570  Vismode getVismode() const { return Vismode(myVismode); }
571  void setVismode(Vismode val) { myVismode = int64(val); }
572  Vismode opVismode(const SOP_NodeVerb::CookParms &cookparms) const
573  {
574  SOP_Node *thissop = cookparms.getNode();
575  if (!thissop) return getVismode();
576  int64 result;
577  OP_Utils::evalOpParm(result, thissop, "vismode", cookparms.getCookTime(), 0);
578  return Vismode(result);
579  }
580  UT_Vector2D getVisrange() const { return myVisrange; }
581  void setVisrange(UT_Vector2D val) { myVisrange = val; }
583  {
584  SOP_Node *thissop = cookparms.getNode();
585  if (!thissop) return getVisrange();
586  UT_Vector2D result;
587  OP_Utils::evalOpParm(result, thissop, "visrange", cookparms.getCookTime(), 0);
588  return result;
589  }
590  bool getKeep() const { return myKeep; }
591  void setKeep(bool val) { myKeep = val; }
592  bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
593  {
594  SOP_Node *thissop = cookparms.getNode();
595  if (!thissop) return getKeep();
596  bool result;
597  OP_Utils::evalOpParm(result, thissop, "keep", cookparms.getCookTime(), 0);
598  return result;
599  }
600 
601 private:
602  UT_StringHolder myGroup;
603  int64 myMethod;
604  int64 myPlane;
605  fpreal64 myPlaneoffset;
606  UT_StringHolder myAttrib;
607  bool myCreatevarmap;
608  UT_StringHolder myLvar;
609  bool myVisualize;
610  int64 myVismode;
611  UT_Vector2D myVisrange;
612  bool myKeep;
613 
614 };
void getParmValue(exint idx, UT_Vector3D &value) const
Plane opPlane(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_StringHolder &value) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
virtual exint getNumParms() const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
T & z(void)
Definition: UT_Vector4.h:372
void getParmValue(exint idx, UT_Matrix3D &value) const
void setParmValue(exint idx, const UT_Vector3D &value)
static void saveData(std::ostream &os, UT_Matrix3D v)
exint bread(int32 *buffer, exint asize=1)
void setParmValue(exint idx, const fpreal &value)
static void saveData(std::ostream &os, UT_Vector2D v)
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
UT_Vector2T< fpreal64 > UT_Vector2D
bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
Vismode opVismode(const SOP_NodeVerb::CookParms &cookparms) const
T & x(void)
Definition: UT_Vector2.h:284
static void saveData(std::ostream &os, fpreal64 v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
bool opVisualize(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
const UT_StringHolder & getAttrib() const
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
void setLvar(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Matrix2D &value) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setPlaneoffset(fpreal64 val)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getParmValue(exint idx, exint &value) const
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, UT_Vector2I &v)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
static void saveData(std::ostream &os, UT_Vector4D v)
bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:106
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
UT_Vector2D opVisrange(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setAttrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
bool operator==(const SOP_VolumeSliceParms &src) const
SYS_FORCE_INLINE const char * buffer() const
int64 exint
Definition: SYS_Types.h:115
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:191
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setVismode(Vismode val)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getParmValue(exint idx, UT_Matrix4D &value) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
void getParmValue(exint idx, PRM_DataItemHandle &value) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getParmValue(exint idx, fpreal &value) const
GLboolean * data
Definition: glcorearb.h:130
static void loadData(UT_IStream &is, UT_Vector2D &v)
virtual ParmType getParmType(exint fieldnum) const
void setGroup(const UT_StringHolder &val)
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
void setParmValue(exint idx, const UT_Matrix2D &value)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
fpreal64 getPlaneoffset() const
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void doSetParmValue(exint idx, const T &value)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, int64 &v)
void setVisrange(UT_Vector2D val)
void setParmValue(exint idx, const UT_Vector2D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
void strncpy(const char *src, exint maxlen)
UT_StringHolder opLvar(const SOP_NodeVerb::CookParms &cookparms) const
virtual const char * getParmName(exint fieldnum) const
void setParmValue(exint idx, const UT_Vector4D &value)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setParmValue(exint idx, const UT_StringHolder &value)
static void loadData(UT_IStream &is, UT_Vector3D &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setParmValue(exint idx, const UT_Matrix4D &value)
void setParmValue(exint idx, const exint &value)
GLuint GLfloat * val
Definition: glcorearb.h:1607
virtual void copyFrom(const SOP_NodeParms *src)
UT_Vector2D getVisrange() const
static void saveData(std::ostream &os, int64 v)
#define SOP_API
Definition: SOP_API.h:10
const char * buffer() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
T & x(void)
Definition: UT_Vector4.h:368
void getParmValue(exint idx, UT_Vector2D &value) const
static void saveData(std::ostream &os, bool v)
T & y(void)
Definition: UT_Vector2.h:286
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
const UT_StringHolder & getGroup() const
GLboolean r
Definition: glcorearb.h:1221
T & w(void)
Definition: UT_Vector4.h:374
const UT_StringHolder & getLvar() const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void doGetParmValue(exint idx, T &value) const
void getParmValue(exint idx, UT_Vector4D &value) const
static void loadData(UT_IStream &is, fpreal64 &v)
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const UT_Matrix3D &value)
fpreal64 opPlaneoffset(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1792