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