HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  }
88  bool operator!=(const SOP_VolumeSliceParms &src) const
89  {
90  return !operator==(src);
91  }
95 
96 
97 
98  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
99  {
100  if (true)
101  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
102  else myGroup = ""_sh;
103  if (true)
104  OP_Utils::evalOpParm(myMethod, node, "method", time, 0);
105  else myMethod = 1;
106  if (true)
107  OP_Utils::evalOpParm(myPlane, node, "plane", time, 0);
108  else myPlane = 0;
109  if (true)
110  OP_Utils::evalOpParm(myPlaneoffset, node, "planeoffset", time, 0);
111  else myPlaneoffset = 0;
112  if (true && ( (!(((int64(getMethod())==0)))) ) )
113  OP_Utils::evalOpParm(myAttrib, node, "attrib", time, 0);
114  else myAttrib = "density"_sh;
115  if (true && ( (!(((int64(getMethod())==0)))) ) )
116  OP_Utils::evalOpParm(myCreatevarmap, node, "createvarmap", time, 0);
117  else myCreatevarmap = false;
118  if (true && ( (!(((int64(getMethod())==0))||((getCreatevarmap()==0)))) ) )
119  OP_Utils::evalOpParm(myLvar, node, "lvar", time, 0);
120  else myLvar = ""_sh;
121  if (true && ( (!(((int64(getMethod())==0)))) ) )
122  OP_Utils::evalOpParm(myVisualize, node, "visualize", time, 0);
123  else myVisualize = false;
124  if (true && ( (!(((int64(getMethod())==0))||((getVisualize()==0)))) ) )
125  OP_Utils::evalOpParm(myVismode, node, "vismode", time, 0);
126  else myVismode = 1;
127  if (true && ( (!(((int64(getMethod())==0))||((getVisualize()==0)))) ) )
128  OP_Utils::evalOpParm(myVisrange, node, "visrange", time, 0);
129  else myVisrange = UT_Vector2D(0,1);
130  if (true)
131  OP_Utils::evalOpParm(myKeep, node, "keep", time, 0);
132  else myKeep = false;
133 
134  }
135 
136 
137  virtual void loadFromOpSubclass(const LoadParms &loadparms)
138  {
139  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
140  }
141 
142 
143  virtual void copyFrom(const SOP_NodeParms *src)
144  {
145  *this = *((const SOP_VolumeSliceParms *)src);
146  }
147 
148  template <typename T>
149  void
150  doGetParmValue(exint idx, T &value) const
151  {
152  switch (idx)
153  {
154  case 0:
155  coerceValue(value, myGroup);
156  break;
157  case 1:
158  coerceValue(value, myMethod);
159  break;
160  case 2:
161  coerceValue(value, myPlane);
162  break;
163  case 3:
164  coerceValue(value, myPlaneoffset);
165  break;
166  case 4:
167  coerceValue(value, myAttrib);
168  break;
169  case 5:
170  coerceValue(value, myCreatevarmap);
171  break;
172  case 6:
173  coerceValue(value, myLvar);
174  break;
175  case 7:
176  coerceValue(value, myVisualize);
177  break;
178  case 8:
179  coerceValue(value, myVismode);
180  break;
181  case 9:
182  coerceValue(value, myVisrange);
183  break;
184  case 10:
185  coerceValue(value, myKeep);
186  break;
187 
188  }
189  }
190 
191  void getParmValue(exint idx, exint &value) const
192  { doGetParmValue(idx, value); }
193  void getParmValue(exint idx, fpreal &value) const
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); }
210  { doGetParmValue(idx, value); }
212  { doGetParmValue(idx, value); }
213 
214  template <typename T>
215  void
216  doSetParmValue(exint idx, const T &value)
217  {
218  switch (idx)
219  {
220  case 0:
221  coerceValue(myGroup, value);
222  break;
223  case 1:
224  coerceValue(myMethod, value);
225  break;
226  case 2:
227  coerceValue(myPlane, value);
228  break;
229  case 3:
230  coerceValue(myPlaneoffset, value);
231  break;
232  case 4:
233  coerceValue(myAttrib, value);
234  break;
235  case 5:
236  coerceValue(myCreatevarmap, value);
237  break;
238  case 6:
239  coerceValue(myLvar, value);
240  break;
241  case 7:
242  coerceValue(myVisualize, value);
243  break;
244  case 8:
245  coerceValue(myVismode, value);
246  break;
247  case 9:
248  coerceValue(myVisrange, value);
249  break;
250  case 10:
251  coerceValue(myKeep, value);
252  break;
253 
254  }
255  }
256 
257  void setParmValue(exint idx, const exint &value)
258  { doSetParmValue(idx, value); }
259  void setParmValue(exint idx, const fpreal &value)
260  { doSetParmValue(idx, value); }
261  void setParmValue(exint idx, const UT_Vector2D &value)
262  { doSetParmValue(idx, value); }
263  void setParmValue(exint idx, const UT_Vector3D &value)
264  { doSetParmValue(idx, value); }
265  void setParmValue(exint idx, const UT_Vector4D &value)
266  { doSetParmValue(idx, value); }
267  void setParmValue(exint idx, const UT_Matrix2D &value)
268  { doSetParmValue(idx, value); }
269  void setParmValue(exint idx, const UT_Matrix3D &value)
270  { doSetParmValue(idx, value); }
271  void setParmValue(exint idx, const UT_Matrix4D &value)
272  { doSetParmValue(idx, value); }
274  { doSetParmValue(idx, value); }
276  { doSetParmValue(idx, value); }
278  { doSetParmValue(idx, value); }
279 
280  virtual exint getNumParms() const
281  {
282  return 11;
283  }
284 
285  virtual const char *getParmName(exint fieldnum) const
286  {
287  switch (fieldnum)
288  {
289  case 0:
290  return "group";
291  case 1:
292  return "method";
293  case 2:
294  return "plane";
295  case 3:
296  return "planeoffset";
297  case 4:
298  return "attrib";
299  case 5:
300  return "createvarmap";
301  case 6:
302  return "lvar";
303  case 7:
304  return "visualize";
305  case 8:
306  return "vismode";
307  case 9:
308  return "visrange";
309  case 10:
310  return "keep";
311 
312  }
313  return 0;
314  }
315 
316  virtual ParmType getParmType(exint fieldnum) const
317  {
318  switch (fieldnum)
319  {
320  case 0:
321  return PARM_STRING;
322  case 1:
323  return PARM_INTEGER;
324  case 2:
325  return PARM_INTEGER;
326  case 3:
327  return PARM_FLOAT;
328  case 4:
329  return PARM_STRING;
330  case 5:
331  return PARM_INTEGER;
332  case 6:
333  return PARM_STRING;
334  case 7:
335  return PARM_INTEGER;
336  case 8:
337  return PARM_INTEGER;
338  case 9:
339  return PARM_VECTOR2;
340  case 10:
341  return PARM_INTEGER;
342 
343  }
344  return PARM_UNSUPPORTED;
345  }
346 
347  // Boiler plate to load individual types.
348  static void loadData(UT_IStream &is, int64 &v)
349  { is.bread(&v, 1); }
350  static void loadData(UT_IStream &is, bool &v)
351  { int64 iv; is.bread(&iv, 1); v = iv; }
352  static void loadData(UT_IStream &is, fpreal64 &v)
353  { is.bread<fpreal64>(&v, 1); }
354  static void loadData(UT_IStream &is, UT_Vector2D &v)
355  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector3D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); }
359  static void loadData(UT_IStream &is, UT_Vector4D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
361  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
362  static void loadData(UT_IStream &is, UT_Matrix2D &v)
363  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
364  static void loadData(UT_IStream &is, UT_Matrix3D &v)
365  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
366  static void loadData(UT_IStream &is, UT_Matrix4D &v)
367  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
368  static void loadData(UT_IStream &is, UT_Vector2I &v)
369  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector3I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector4I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
375  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
377  { is.bread(v); }
379  { UT_StringHolder rampdata;
380  loadData(is, rampdata);
381  if (rampdata.isstring())
382  {
383  v.reset(new UT_Ramp());
384  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
385  v->load(istr);
386  }
387  else v.reset();
388  }
391  loadData(is, data);
392  if (data.isstring())
393  {
394  // Find the data type.
395  char *colon = UT_StringWrap(data).findChar(':');
396  if (colon)
397  {
398  int typelen = colon - data.buffer();
400  type.strncpy(data.buffer(), typelen);
401  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
402 
403  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
404  }
405  }
406  else v.reset();
407  }
408 
409  static void saveData(std::ostream &os, int64 v)
410  { UTwrite(os, &v); }
411  static void saveData(std::ostream &os, bool v)
412  { int64 iv = v; UTwrite(os, &iv); }
413  static void saveData(std::ostream &os, fpreal64 v)
414  { UTwrite<fpreal64>(os, &v); }
415  static void saveData(std::ostream &os, UT_Vector2D v)
416  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
417  static void saveData(std::ostream &os, UT_Vector3D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); }
420  static void saveData(std::ostream &os, UT_Vector4D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
422  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
423  static void saveData(std::ostream &os, UT_Matrix2D v)
425  static void saveData(std::ostream &os, UT_Matrix3D v)
427  static void saveData(std::ostream &os, UT_Matrix4D v)
429  static void saveData(std::ostream &os, UT_StringHolder s)
430  { UT_StringWrap(s).saveBinary(os); }
431  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
432  { UT_StringHolder result;
433  UT_OStringStream ostr;
434  if (s) s->save(ostr);
435  result = ostr.str();
436  saveData(os, result);
437  }
438  static void saveData(std::ostream &os, PRM_DataItemHandle s)
439  { UT_StringHolder result;
440  UT_OStringStream ostr;
441  if (s)
442  {
443  ostr << s->getDataTypeToken();
444  ostr << ":";
445  s->saveBinary(ostr);
446  }
447  result = ostr.str();
448  saveData(os, result);
449  }
450 
451 
452  void save(std::ostream &os) const
453  {
454  int32 v = version();
455  UTwrite(os, &v);
456  saveData(os, myGroup);
457  saveData(os, myMethod);
458  saveData(os, myPlane);
459  saveData(os, myPlaneoffset);
460  saveData(os, myAttrib);
461  saveData(os, myCreatevarmap);
462  saveData(os, myLvar);
463  saveData(os, myVisualize);
464  saveData(os, myVismode);
465  saveData(os, myVisrange);
466  saveData(os, myKeep);
467 
468  }
469 
470  bool load(UT_IStream &is)
471  {
472  int32 v;
473  is.bread(&v, 1);
474  if (version() != v)
475  {
476  // Fail incompatible versions
477  return false;
478  }
479  loadData(is, myGroup);
480  loadData(is, myMethod);
481  loadData(is, myPlane);
482  loadData(is, myPlaneoffset);
483  loadData(is, myAttrib);
484  loadData(is, myCreatevarmap);
485  loadData(is, myLvar);
486  loadData(is, myVisualize);
487  loadData(is, myVismode);
488  loadData(is, myVisrange);
489  loadData(is, myKeep);
490 
491  return true;
492  }
493 
494  const UT_StringHolder & getGroup() const { return myGroup; }
495  void setGroup(const UT_StringHolder & val) { myGroup = val; }
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getGroup();
500  UT_StringHolder result;
501  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
502  return result;
503  }
504  Method getMethod() const { return Method(myMethod); }
505  void setMethod(Method val) { myMethod = int64(val); }
506  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
507  {
508  SOP_Node *thissop = cookparms.getNode();
509  if (!thissop) return getMethod();
510  int64 result;
511  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
512  return Method(result);
513  }
514  Plane getPlane() const { return Plane(myPlane); }
515  void setPlane(Plane val) { myPlane = int64(val); }
516  Plane opPlane(const SOP_NodeVerb::CookParms &cookparms) const
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getPlane();
520  int64 result;
521  OP_Utils::evalOpParm(result, thissop, "plane", cookparms.getCookTime(), 0);
522  return Plane(result);
523  }
524  fpreal64 getPlaneoffset() const { return myPlaneoffset; }
525  void setPlaneoffset(fpreal64 val) { myPlaneoffset = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getPlaneoffset();
530  fpreal64 result;
531  OP_Utils::evalOpParm(result, thissop, "planeoffset", cookparms.getCookTime(), 0);
532  return result;
533  }
534  const UT_StringHolder & getAttrib() const { return myAttrib; }
535  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getAttrib();
540  UT_StringHolder result;
541  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
542  return result;
543  }
544  bool getCreatevarmap() const { return myCreatevarmap; }
545  void setCreatevarmap(bool val) { myCreatevarmap = val; }
546  bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getCreatevarmap();
550  bool result;
551  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
552  return result;
553  }
554  const UT_StringHolder & getLvar() const { return myLvar; }
555  void setLvar(const UT_StringHolder & val) { myLvar = val; }
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getLvar();
560  UT_StringHolder result;
561  OP_Utils::evalOpParm(result, thissop, "lvar", cookparms.getCookTime(), 0);
562  return result;
563  }
564  bool getVisualize() const { return myVisualize; }
565  void setVisualize(bool val) { myVisualize = val; }
566  bool opVisualize(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getVisualize();
570  bool result;
571  OP_Utils::evalOpParm(result, thissop, "visualize", cookparms.getCookTime(), 0);
572  return result;
573  }
574  Vismode getVismode() const { return Vismode(myVismode); }
575  void setVismode(Vismode val) { myVismode = int64(val); }
576  Vismode opVismode(const SOP_NodeVerb::CookParms &cookparms) const
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getVismode();
580  int64 result;
581  OP_Utils::evalOpParm(result, thissop, "vismode", cookparms.getCookTime(), 0);
582  return Vismode(result);
583  }
584  UT_Vector2D getVisrange() const { return myVisrange; }
585  void setVisrange(UT_Vector2D val) { myVisrange = val; }
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getVisrange();
590  UT_Vector2D result;
591  OP_Utils::evalOpParm(result, thissop, "visrange", cookparms.getCookTime(), 0);
592  return result;
593  }
594  bool getKeep() const { return myKeep; }
595  void setKeep(bool val) { myKeep = val; }
596  bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getKeep();
600  bool result;
601  OP_Utils::evalOpParm(result, thissop, "keep", cookparms.getCookTime(), 0);
602  return result;
603  }
604 
605 private:
606  UT_StringHolder myGroup;
607  int64 myMethod;
608  int64 myPlane;
609  fpreal64 myPlaneoffset;
610  UT_StringHolder myAttrib;
611  bool myCreatevarmap;
612  UT_StringHolder myLvar;
613  bool myVisualize;
614  int64 myVismode;
615  UT_Vector2D myVisrange;
616  bool myKeep;
617 
618 };
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
bool operator!=(const SOP_VolumeSliceParms &src) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
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)
GT_API const UT_StringHolder time
static void saveData(std::ostream &os, UT_Vector2D v)
fpreal getTime() const
Definition: OP_Context.h:60
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
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
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:498
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:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Vector4D v)
bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:107
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
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
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:35
T & y(void)
Definition: UT_Vector4.h:377
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
GT_API const UT_StringHolder version
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:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
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
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
void getParmValue(exint idx, UT_Vector2D &value) const
static void saveData(std::ostream &os, bool v)
T & y(void)
Definition: UT_Vector2.h:287
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:381
const UT_StringHolder & getLvar() const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
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
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setParmValue(exint idx, const UT_Matrix3D &value)
fpreal64 opPlaneoffset(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1792