HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeBin.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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_VolumeBinEnums
24 {
25  enum class Rangemode
26  {
27  AUTO = 0,
28  SPEC
29  };
30 
32  getToken(Rangemode enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Rangemode::AUTO: return "auto"_sh;
37  case Rangemode::SPEC: return "spec"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myVolume = "density"_UTsh;
53  myStencil = "active"_UTsh;
54  myDoignore = true;
55  myIgnore = 0;
56  myBins = 50;
57  myRangemode = 0;
58  myMinmax = UT_Vector2D(0,1);
59  myKeepall = true;
60  myKeeprange = UT_Vector2D(0,1);
61 
62  }
63 
64  explicit SOP_VolumeBinParms(const SOP_VolumeBinParms &) = default;
66  SOP_VolumeBinParms(SOP_VolumeBinParms &&) noexcept = default;
67  SOP_VolumeBinParms &operator=(SOP_VolumeBinParms &&) noexcept = default;
68 
69  ~SOP_VolumeBinParms() override {}
70 
71  bool operator==(const SOP_VolumeBinParms &src) const
72  {
73  if (myVolume != src.myVolume) return false;
74  if (myStencil != src.myStencil) return false;
75  if (myDoignore != src.myDoignore) return false;
76  if (myIgnore != src.myIgnore) return false;
77  if (myBins != src.myBins) return false;
78  if (myRangemode != src.myRangemode) return false;
79  if (myMinmax != src.myMinmax) return false;
80  if (myKeepall != src.myKeepall) return false;
81  if (myKeeprange != src.myKeeprange) return false;
82 
83  return true;
84  }
85  bool operator!=(const SOP_VolumeBinParms &src) const
86  {
87  return !operator==(src);
88  }
90 
91 
92 
93  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
94  {
95  myVolume = "density"_UTsh;
96  if (true)
97  graph->evalOpParm(myVolume, nodeidx, "volume", time, 0);
98  myStencil = "active"_UTsh;
99  if (true)
100  graph->evalOpParm(myStencil, nodeidx, "stencil", time, 0);
101  myDoignore = true;
102  if (true)
103  graph->evalOpParm(myDoignore, nodeidx, "doignore", time, 0);
104  myIgnore = 0;
105  if (true && ( (true&&!(((getDoignore()==0)))) ) )
106  graph->evalOpParm(myIgnore, nodeidx, "ignore", time, 0);
107  myBins = 50;
108  if (true)
109  graph->evalOpParm(myBins, nodeidx, "bins", time, 0);
110  myRangemode = 0;
111  if (true)
112  graph->evalOpParm(myRangemode, nodeidx, "rangemode", time, 0);
113  myMinmax = UT_Vector2D(0,1);
114  if (true && ( (true&&!(((int64(getRangemode())==0)))) ) )
115  graph->evalOpParm(myMinmax, nodeidx, "minmax", time, 0);
116  myKeepall = true;
117  if (true)
118  graph->evalOpParm(myKeepall, nodeidx, "keepall", time, 0);
119  myKeeprange = UT_Vector2D(0,1);
120  if (true && ( (true&&!(((getKeepall()==1)))) ) )
121  graph->evalOpParm(myKeeprange, nodeidx, "keeprange", time, 0);
122 
123  }
124 
125 
126  void loadFromOpSubclass(const LoadParms &loadparms) override
127  {
128  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
129  }
130 
131 
132  void copyFrom(const OP_NodeParms *src) override
133  {
134  *this = *((const SOP_VolumeBinParms *)src);
135  }
136 
137  template <typename T>
138  void
139  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
140  {
141  if (idx.size() < 1)
142  return;
143  UT_ASSERT(idx.size() == instance.size()+1);
144  if (idx.size() != instance.size()+1)
145  return;
146  switch (idx[0])
147  {
148  case 0:
149  coerceValue(value, myVolume);
150  break;
151  case 1:
152  coerceValue(value, myStencil);
153  break;
154  case 2:
155  coerceValue(value, myDoignore);
156  break;
157  case 3:
158  coerceValue(value, myIgnore);
159  break;
160  case 4:
161  coerceValue(value, myBins);
162  break;
163  case 5:
164  coerceValue(value, myRangemode);
165  break;
166  case 6:
167  coerceValue(value, myMinmax);
168  break;
169  case 7:
170  coerceValue(value, myKeepall);
171  break;
172  case 8:
173  coerceValue(value, myKeeprange);
174  break;
175 
176  }
177  }
178 
179  bool isParmColorRamp(exint idx) const override
180  {
181  switch (idx)
182  {
183 
184  }
185  return false;
186  }
187 
188  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
209  { doGetParmValue(idx, instance, value); }
210 
211  template <typename T>
212  void
213  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
214  {
215  if (idx.size() < 1)
216  return;
217  UT_ASSERT(idx.size() == instance.size()+1);
218  if (idx.size() != instance.size()+1)
219  return;
220  switch (idx[0])
221  {
222  case 0:
223  coerceValue(myVolume, ( ( value ) ));
224  break;
225  case 1:
226  coerceValue(myStencil, ( ( value ) ));
227  break;
228  case 2:
229  coerceValue(myDoignore, ( ( value ) ));
230  break;
231  case 3:
232  coerceValue(myIgnore, ( ( value ) ));
233  break;
234  case 4:
235  coerceValue(myBins, clampMinValue(1, ( value ) ));
236  break;
237  case 5:
238  coerceValue(myRangemode, clampMinValue(0, clampMaxValue(1, value ) ));
239  break;
240  case 6:
241  coerceValue(myMinmax, ( ( value ) ));
242  break;
243  case 7:
244  coerceValue(myKeepall, ( ( value ) ));
245  break;
246  case 8:
247  coerceValue(myKeeprange, clampMinValue(0, clampMaxValue(1, value ) ));
248  break;
249 
250  }
251  }
252 
253  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
274  { doSetParmValue(idx, instance, value); }
275 
276  exint getNestNumParms(TempIndex idx) const override
277  {
278  if (idx.size() == 0)
279  return 9;
280  switch (idx[0])
281  {
282 
283  }
284  // Invalid
285  return 0;
286  }
287 
288  const char *getNestParmName(TempIndex fieldnum) const override
289  {
290  if (fieldnum.size() < 1)
291  return 0;
292  switch (fieldnum[0])
293  {
294  case 0:
295  return "volume";
296  case 1:
297  return "stencil";
298  case 2:
299  return "doignore";
300  case 3:
301  return "ignore";
302  case 4:
303  return "bins";
304  case 5:
305  return "rangemode";
306  case 6:
307  return "minmax";
308  case 7:
309  return "keepall";
310  case 8:
311  return "keeprange";
312 
313  }
314  return 0;
315  }
316 
317  ParmType getNestParmType(TempIndex fieldnum) const override
318  {
319  if (fieldnum.size() < 1)
320  return PARM_UNSUPPORTED;
321  switch (fieldnum[0])
322  {
323  case 0:
324  return PARM_STRING;
325  case 1:
326  return PARM_STRING;
327  case 2:
328  return PARM_INTEGER;
329  case 3:
330  return PARM_FLOAT;
331  case 4:
332  return PARM_INTEGER;
333  case 5:
334  return PARM_INTEGER;
335  case 6:
336  return PARM_VECTOR2;
337  case 7:
338  return PARM_INTEGER;
339  case 8:
340  return PARM_VECTOR2;
341 
342  }
343  return PARM_UNSUPPORTED;
344  }
345 
346  // Boiler plate to load individual types.
347  static void loadData(UT_IStream &is, int64 &v)
348  { is.bread(&v, 1); }
349  static void loadData(UT_IStream &is, bool &v)
350  { int64 iv; is.bread(&iv, 1); v = iv; }
351  static void loadData(UT_IStream &is, fpreal64 &v)
352  { is.bread<fpreal64>(&v, 1); }
353  static void loadData(UT_IStream &is, UT_Vector2D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
355  static void loadData(UT_IStream &is, UT_Vector3D &v)
356  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
357  is.bread<fpreal64>(&v.z(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector4D &v)
359  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
360  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
361  static void loadData(UT_IStream &is, UT_Matrix2D &v)
362  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix3D &v)
364  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Matrix4D &v)
366  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
367  static void loadData(UT_IStream &is, UT_Vector2I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector3I &v)
370  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
371  is.bread<int64>(&v.z(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector4I &v)
373  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
374  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
376  { is.bread(v); }
378  { UT_StringHolder rampdata;
379  loadData(is, rampdata);
380  if (rampdata.isstring())
381  {
382  v.reset(new UT_Ramp());
383  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
384  v->load(istr);
385  }
386  else v.reset();
387  }
390  loadData(is, data);
391  if (data.isstring())
392  {
393  // Find the data type.
394  const char *colon = UT_StringWrap(data).findChar(':');
395  if (colon)
396  {
397  int typelen = colon - data.buffer();
399  type.strncpy(data.buffer(), typelen);
400  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
401 
402  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
403  }
404  }
405  else v.reset();
406  }
407 
408  static void saveData(std::ostream &os, int64 v)
409  { UTwrite(os, &v); }
410  static void saveData(std::ostream &os, bool v)
411  { int64 iv = v; UTwrite(os, &iv); }
412  static void saveData(std::ostream &os, fpreal64 v)
413  { UTwrite<fpreal64>(os, &v); }
414  static void saveData(std::ostream &os, UT_Vector2D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
416  static void saveData(std::ostream &os, UT_Vector3D v)
417  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
418  UTwrite<fpreal64>(os, &v.z()); }
419  static void saveData(std::ostream &os, UT_Vector4D v)
420  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
421  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
422  static void saveData(std::ostream &os, UT_Matrix2D v)
424  static void saveData(std::ostream &os, UT_Matrix3D v)
426  static void saveData(std::ostream &os, UT_Matrix4D v)
428  static void saveData(std::ostream &os, UT_StringHolder s)
429  { UT_StringWrap(s).saveBinary(os); }
430  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
432  UT_OStringStream ostr;
433  if (s) s->save(ostr);
434  result = ostr.str();
435  saveData(os, result);
436  }
437  static void saveData(std::ostream &os, PRM_DataItemHandle s)
439  UT_OStringStream ostr;
440  if (s)
441  {
442  ostr << s->getDataTypeToken();
443  ostr << ":";
444  s->saveBinary(ostr);
445  }
446  result = ostr.str();
447  saveData(os, result);
448  }
449 
450 
451  void save(std::ostream &os) const
452  {
453  int32 v = version();
454  UTwrite(os, &v);
455  saveData(os, myVolume);
456  saveData(os, myStencil);
457  saveData(os, myDoignore);
458  saveData(os, myIgnore);
459  saveData(os, myBins);
460  saveData(os, myRangemode);
461  saveData(os, myMinmax);
462  saveData(os, myKeepall);
463  saveData(os, myKeeprange);
464 
465  }
466 
467  bool load(UT_IStream &is)
468  {
469  int32 v;
470  is.bread(&v, 1);
471  if (version() != v)
472  {
473  // Fail incompatible versions
474  return false;
475  }
476  loadData(is, myVolume);
477  loadData(is, myStencil);
478  loadData(is, myDoignore);
479  loadData(is, myIgnore);
480  loadData(is, myBins);
481  loadData(is, myRangemode);
482  loadData(is, myMinmax);
483  loadData(is, myKeepall);
484  loadData(is, myKeeprange);
485 
486  return true;
487  }
488 
489  const UT_StringHolder & getVolume() const { return myVolume; }
490  void setVolume(const UT_StringHolder & val) { myVolume = val; }
492  {
493  SOP_Node *thissop = cookparms.getNode();
494  if (!thissop) return getVolume();
496  OP_Utils::evalOpParm(result, thissop, "volume", cookparms.getCookTime(), 0);
497  return result;
498  }
499  const UT_StringHolder & getStencil() const { return myStencil; }
500  void setStencil(const UT_StringHolder & val) { myStencil = val; }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getStencil();
506  OP_Utils::evalOpParm(result, thissop, "stencil", cookparms.getCookTime(), 0);
507  return result;
508  }
509  bool getDoignore() const { return myDoignore; }
510  void setDoignore(bool val) { myDoignore = val; }
511  bool opDoignore(const SOP_NodeVerb::CookParms &cookparms) const
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return getDoignore();
515  bool result;
516  OP_Utils::evalOpParm(result, thissop, "doignore", cookparms.getCookTime(), 0);
517  return result;
518  }
519  fpreal64 getIgnore() const { return myIgnore; }
520  void setIgnore(fpreal64 val) { myIgnore = val; }
521  fpreal64 opIgnore(const SOP_NodeVerb::CookParms &cookparms) const
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getIgnore();
526  OP_Utils::evalOpParm(result, thissop, "ignore", cookparms.getCookTime(), 0);
527  return result;
528  }
529  int64 getBins() const { return myBins; }
530  void setBins(int64 val) { myBins = val; }
531  int64 opBins(const SOP_NodeVerb::CookParms &cookparms) const
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return getBins();
535  int64 result;
536  OP_Utils::evalOpParm(result, thissop, "bins", cookparms.getCookTime(), 0);
537  return result;
538  }
539  Rangemode getRangemode() const { return Rangemode(myRangemode); }
540  void setRangemode(Rangemode val) { myRangemode = int64(val); }
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return getRangemode();
545  int64 result;
546  OP_Utils::evalOpParm(result, thissop, "rangemode", cookparms.getCookTime(), 0);
547  return Rangemode(result);
548  }
549  UT_Vector2D getMinmax() const { return myMinmax; }
550  void setMinmax(UT_Vector2D val) { myMinmax = val; }
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getMinmax();
556  OP_Utils::evalOpParm(result, thissop, "minmax", cookparms.getCookTime(), 0);
557  return result;
558  }
559  bool getKeepall() const { return myKeepall; }
560  void setKeepall(bool val) { myKeepall = val; }
561  bool opKeepall(const SOP_NodeVerb::CookParms &cookparms) const
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getKeepall();
565  bool result;
566  OP_Utils::evalOpParm(result, thissop, "keepall", cookparms.getCookTime(), 0);
567  return result;
568  }
569  UT_Vector2D getKeeprange() const { return myKeeprange; }
570  void setKeeprange(UT_Vector2D val) { myKeeprange = val; }
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getKeeprange();
576  OP_Utils::evalOpParm(result, thissop, "keeprange", cookparms.getCookTime(), 0);
577  return result;
578  }
579 
580 private:
581  UT_StringHolder myVolume;
582  UT_StringHolder myStencil;
583  bool myDoignore;
584  fpreal64 myIgnore;
585  int64 myBins;
586  int64 myRangemode;
587  UT_Vector2D myMinmax;
588  bool myKeepall;
589  UT_Vector2D myKeeprange;
590 
591 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
UT_Vector2D opKeeprange(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal getTime() const
Definition: OP_Context.h:62
UT_Vector2T< fpreal64 > UT_Vector2D
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
Rangemode opRangemode(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
UT_StringHolder opVolume(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
GLdouble s
Definition: glad.h:3009
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, fpreal64 v)
const UT_StringHolder & getStencil() const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setStencil(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setRangemode(Rangemode val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
Rangemode getRangemode() const
static void saveData(std::ostream &os, UT_Vector2D v)
bool opDoignore(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, bool &v)
long long int64
Definition: SYS_Types.h:116
bool operator!=(const SOP_VolumeBinParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
UT_Vector2D getKeeprange() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setBins(int64 val)
fpreal64 opIgnore(const SOP_NodeVerb::CookParms &cookparms) const
void setDoignore(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
int64 opBins(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, int64 &v)
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
UT_Vector2D opMinmax(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setMinmax(UT_Vector2D val)
fpreal64 fpreal
Definition: SYS_Types.h:277
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
SYS_FORCE_INLINE UT_StringHolder getToken(Rangemode enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void setKeepall(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setIgnore(fpreal64 val)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Vector3D v)
UT_StringHolder opStencil(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const UT_StringHolder & getVolume() const
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void loadFromOpSubclass(const LoadParms &loadparms) override
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
float getVolume(int speaker) override
void setVolume(const UT_StringHolder &val)
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
void setKeeprange(UT_Vector2D val)
static void saveData(std::ostream &os, bool v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
type
Definition: core.h:1059
bool operator==(const SOP_VolumeBinParms &src) const
bool load(UT_IStream &is)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool opKeepall(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
bool isParmColorRamp(exint idx) const override
SYS_FORCE_INLINE bool isstring() const
UT_Vector2D getMinmax() const
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLenum src
Definition: glcorearb.h:1793
fpreal64 getIgnore() const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663