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 }
31 
32 
34 {
35 public:
36  static int version() { return 1; }
37 
39  {
40  myVolume = "density"_UTsh;
41  myStencil = "active"_UTsh;
42  myDoignore = true;
43  myIgnore = 0;
44  myBins = 50;
45  myRangemode = 0;
46  myMinmax = UT_Vector2D(0,1);
47  myKeepall = true;
48  myKeeprange = UT_Vector2D(0,1);
49 
50  }
51 
52  explicit SOP_VolumeBinParms(const SOP_VolumeBinParms &) = default;
54  SOP_VolumeBinParms(SOP_VolumeBinParms &&) noexcept = default;
55  SOP_VolumeBinParms &operator=(SOP_VolumeBinParms &&) noexcept = default;
56 
57  ~SOP_VolumeBinParms() override {}
58 
59  bool operator==(const SOP_VolumeBinParms &src) const
60  {
61  if (myVolume != src.myVolume) return false;
62  if (myStencil != src.myStencil) return false;
63  if (myDoignore != src.myDoignore) return false;
64  if (myIgnore != src.myIgnore) return false;
65  if (myBins != src.myBins) return false;
66  if (myRangemode != src.myRangemode) return false;
67  if (myMinmax != src.myMinmax) return false;
68  if (myKeepall != src.myKeepall) return false;
69  if (myKeeprange != src.myKeeprange) return false;
70 
71  return true;
72  }
73  bool operator!=(const SOP_VolumeBinParms &src) const
74  {
75  return !operator==(src);
76  }
78 
79 
80 
81  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
82  {
83  myVolume = "density"_UTsh;
84  if (true)
85  graph->evalOpParm(myVolume, nodeidx, "volume", time, 0);
86  myStencil = "active"_UTsh;
87  if (true)
88  graph->evalOpParm(myStencil, nodeidx, "stencil", time, 0);
89  myDoignore = true;
90  if (true)
91  graph->evalOpParm(myDoignore, nodeidx, "doignore", time, 0);
92  myIgnore = 0;
93  if (true && ( (true&&!(((getDoignore()==0)))) ) )
94  graph->evalOpParm(myIgnore, nodeidx, "ignore", time, 0);
95  myBins = 50;
96  if (true)
97  graph->evalOpParm(myBins, nodeidx, "bins", time, 0);
98  myRangemode = 0;
99  if (true)
100  graph->evalOpParm(myRangemode, nodeidx, "rangemode", time, 0);
101  myMinmax = UT_Vector2D(0,1);
102  if (true && ( (true&&!(((int64(getRangemode())==0)))) ) )
103  graph->evalOpParm(myMinmax, nodeidx, "minmax", time, 0);
104  myKeepall = true;
105  if (true)
106  graph->evalOpParm(myKeepall, nodeidx, "keepall", time, 0);
107  myKeeprange = UT_Vector2D(0,1);
108  if (true && ( (true&&!(((getKeepall()==1)))) ) )
109  graph->evalOpParm(myKeeprange, nodeidx, "keeprange", time, 0);
110 
111  }
112 
113 
114  void loadFromOpSubclass(const LoadParms &loadparms) override
115  {
116  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
117  }
118 
119 
120  void copyFrom(const OP_NodeParms *src) override
121  {
122  *this = *((const SOP_VolumeBinParms *)src);
123  }
124 
125  template <typename T>
126  void
127  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
128  {
129  if (idx.size() < 1)
130  return;
131  UT_ASSERT(idx.size() == instance.size()+1);
132  if (idx.size() != instance.size()+1)
133  return;
134  switch (idx[0])
135  {
136  case 0:
137  coerceValue(value, myVolume);
138  break;
139  case 1:
140  coerceValue(value, myStencil);
141  break;
142  case 2:
143  coerceValue(value, myDoignore);
144  break;
145  case 3:
146  coerceValue(value, myIgnore);
147  break;
148  case 4:
149  coerceValue(value, myBins);
150  break;
151  case 5:
152  coerceValue(value, myRangemode);
153  break;
154  case 6:
155  coerceValue(value, myMinmax);
156  break;
157  case 7:
158  coerceValue(value, myKeepall);
159  break;
160  case 8:
161  coerceValue(value, myKeeprange);
162  break;
163 
164  }
165  }
166 
167  bool isParmColorRamp(exint idx) const override
168  {
169  switch (idx)
170  {
171 
172  }
173  return false;
174  }
175 
176  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
197  { doGetParmValue(idx, instance, value); }
198 
199  template <typename T>
200  void
201  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
202  {
203  if (idx.size() < 1)
204  return;
205  UT_ASSERT(idx.size() == instance.size()+1);
206  if (idx.size() != instance.size()+1)
207  return;
208  switch (idx[0])
209  {
210  case 0:
211  coerceValue(myVolume, ( ( value ) ));
212  break;
213  case 1:
214  coerceValue(myStencil, ( ( value ) ));
215  break;
216  case 2:
217  coerceValue(myDoignore, ( ( value ) ));
218  break;
219  case 3:
220  coerceValue(myIgnore, ( ( value ) ));
221  break;
222  case 4:
223  coerceValue(myBins, clampMinValue(1, ( value ) ));
224  break;
225  case 5:
226  coerceValue(myRangemode, clampMinValue(0, clampMaxValue(1, value ) ));
227  break;
228  case 6:
229  coerceValue(myMinmax, ( ( value ) ));
230  break;
231  case 7:
232  coerceValue(myKeepall, ( ( value ) ));
233  break;
234  case 8:
235  coerceValue(myKeeprange, clampMinValue(0, clampMaxValue(1, value ) ));
236  break;
237 
238  }
239  }
240 
241  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
262  { doSetParmValue(idx, instance, value); }
263 
264  exint getNestNumParms(TempIndex idx) const override
265  {
266  if (idx.size() == 0)
267  return 9;
268  switch (idx[0])
269  {
270 
271  }
272  // Invalid
273  return 0;
274  }
275 
276  const char *getNestParmName(TempIndex fieldnum) const override
277  {
278  if (fieldnum.size() < 1)
279  return 0;
280  switch (fieldnum[0])
281  {
282  case 0:
283  return "volume";
284  case 1:
285  return "stencil";
286  case 2:
287  return "doignore";
288  case 3:
289  return "ignore";
290  case 4:
291  return "bins";
292  case 5:
293  return "rangemode";
294  case 6:
295  return "minmax";
296  case 7:
297  return "keepall";
298  case 8:
299  return "keeprange";
300 
301  }
302  return 0;
303  }
304 
305  ParmType getNestParmType(TempIndex fieldnum) const override
306  {
307  if (fieldnum.size() < 1)
308  return PARM_UNSUPPORTED;
309  switch (fieldnum[0])
310  {
311  case 0:
312  return PARM_STRING;
313  case 1:
314  return PARM_STRING;
315  case 2:
316  return PARM_INTEGER;
317  case 3:
318  return PARM_FLOAT;
319  case 4:
320  return PARM_INTEGER;
321  case 5:
322  return PARM_INTEGER;
323  case 6:
324  return PARM_VECTOR2;
325  case 7:
326  return PARM_INTEGER;
327  case 8:
328  return PARM_VECTOR2;
329 
330  }
331  return PARM_UNSUPPORTED;
332  }
333 
334  // Boiler plate to load individual types.
335  static void loadData(UT_IStream &is, int64 &v)
336  { is.bread(&v, 1); }
337  static void loadData(UT_IStream &is, bool &v)
338  { int64 iv; is.bread(&iv, 1); v = iv; }
339  static void loadData(UT_IStream &is, fpreal64 &v)
340  { is.bread<fpreal64>(&v, 1); }
341  static void loadData(UT_IStream &is, UT_Vector2D &v)
342  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
343  static void loadData(UT_IStream &is, UT_Vector3D &v)
344  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
345  is.bread<fpreal64>(&v.z(), 1); }
346  static void loadData(UT_IStream &is, UT_Vector4D &v)
347  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
348  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
349  static void loadData(UT_IStream &is, UT_Matrix2D &v)
350  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
351  static void loadData(UT_IStream &is, UT_Matrix3D &v)
352  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
353  static void loadData(UT_IStream &is, UT_Matrix4D &v)
354  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
355  static void loadData(UT_IStream &is, UT_Vector2I &v)
356  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
357  static void loadData(UT_IStream &is, UT_Vector3I &v)
358  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
359  is.bread<int64>(&v.z(), 1); }
360  static void loadData(UT_IStream &is, UT_Vector4I &v)
361  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
362  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
364  { is.bread(v); }
366  { UT_StringHolder rampdata;
367  loadData(is, rampdata);
368  if (rampdata.isstring())
369  {
370  v.reset(new UT_Ramp());
371  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
372  v->load(istr);
373  }
374  else v.reset();
375  }
378  loadData(is, data);
379  if (data.isstring())
380  {
381  // Find the data type.
382  const char *colon = UT_StringWrap(data).findChar(':');
383  if (colon)
384  {
385  int typelen = colon - data.buffer();
387  type.strncpy(data.buffer(), typelen);
388  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
389 
390  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
391  }
392  }
393  else v.reset();
394  }
395 
396  static void saveData(std::ostream &os, int64 v)
397  { UTwrite(os, &v); }
398  static void saveData(std::ostream &os, bool v)
399  { int64 iv = v; UTwrite(os, &iv); }
400  static void saveData(std::ostream &os, fpreal64 v)
401  { UTwrite<fpreal64>(os, &v); }
402  static void saveData(std::ostream &os, UT_Vector2D v)
403  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
404  static void saveData(std::ostream &os, UT_Vector3D v)
405  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
406  UTwrite<fpreal64>(os, &v.z()); }
407  static void saveData(std::ostream &os, UT_Vector4D v)
408  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
409  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
410  static void saveData(std::ostream &os, UT_Matrix2D v)
412  static void saveData(std::ostream &os, UT_Matrix3D v)
414  static void saveData(std::ostream &os, UT_Matrix4D v)
416  static void saveData(std::ostream &os, UT_StringHolder s)
417  { UT_StringWrap(s).saveBinary(os); }
418  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
420  UT_OStringStream ostr;
421  if (s) s->save(ostr);
422  result = ostr.str();
423  saveData(os, result);
424  }
425  static void saveData(std::ostream &os, PRM_DataItemHandle s)
427  UT_OStringStream ostr;
428  if (s)
429  {
430  ostr << s->getDataTypeToken();
431  ostr << ":";
432  s->saveBinary(ostr);
433  }
434  result = ostr.str();
435  saveData(os, result);
436  }
437 
438 
439  void save(std::ostream &os) const
440  {
441  int32 v = version();
442  UTwrite(os, &v);
443  saveData(os, myVolume);
444  saveData(os, myStencil);
445  saveData(os, myDoignore);
446  saveData(os, myIgnore);
447  saveData(os, myBins);
448  saveData(os, myRangemode);
449  saveData(os, myMinmax);
450  saveData(os, myKeepall);
451  saveData(os, myKeeprange);
452 
453  }
454 
455  bool load(UT_IStream &is)
456  {
457  int32 v;
458  is.bread(&v, 1);
459  if (version() != v)
460  {
461  // Fail incompatible versions
462  return false;
463  }
464  loadData(is, myVolume);
465  loadData(is, myStencil);
466  loadData(is, myDoignore);
467  loadData(is, myIgnore);
468  loadData(is, myBins);
469  loadData(is, myRangemode);
470  loadData(is, myMinmax);
471  loadData(is, myKeepall);
472  loadData(is, myKeeprange);
473 
474  return true;
475  }
476 
477  const UT_StringHolder & getVolume() const { return myVolume; }
478  void setVolume(const UT_StringHolder & val) { myVolume = val; }
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getVolume();
484  OP_Utils::evalOpParm(result, thissop, "volume", cookparms.getCookTime(), 0);
485  return result;
486  }
487  const UT_StringHolder & getStencil() const { return myStencil; }
488  void setStencil(const UT_StringHolder & val) { myStencil = val; }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getStencil();
494  OP_Utils::evalOpParm(result, thissop, "stencil", cookparms.getCookTime(), 0);
495  return result;
496  }
497  bool getDoignore() const { return myDoignore; }
498  void setDoignore(bool val) { myDoignore = val; }
499  bool opDoignore(const SOP_NodeVerb::CookParms &cookparms) const
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getDoignore();
503  bool result;
504  OP_Utils::evalOpParm(result, thissop, "doignore", cookparms.getCookTime(), 0);
505  return result;
506  }
507  fpreal64 getIgnore() const { return myIgnore; }
508  void setIgnore(fpreal64 val) { myIgnore = val; }
509  fpreal64 opIgnore(const SOP_NodeVerb::CookParms &cookparms) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getIgnore();
514  OP_Utils::evalOpParm(result, thissop, "ignore", cookparms.getCookTime(), 0);
515  return result;
516  }
517  int64 getBins() const { return myBins; }
518  void setBins(int64 val) { myBins = val; }
519  int64 opBins(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getBins();
523  int64 result;
524  OP_Utils::evalOpParm(result, thissop, "bins", cookparms.getCookTime(), 0);
525  return result;
526  }
527  Rangemode getRangemode() const { return Rangemode(myRangemode); }
528  void setRangemode(Rangemode val) { myRangemode = int64(val); }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getRangemode();
533  int64 result;
534  OP_Utils::evalOpParm(result, thissop, "rangemode", cookparms.getCookTime(), 0);
535  return Rangemode(result);
536  }
537  UT_Vector2D getMinmax() const { return myMinmax; }
538  void setMinmax(UT_Vector2D val) { myMinmax = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getMinmax();
544  OP_Utils::evalOpParm(result, thissop, "minmax", cookparms.getCookTime(), 0);
545  return result;
546  }
547  bool getKeepall() const { return myKeepall; }
548  void setKeepall(bool val) { myKeepall = val; }
549  bool opKeepall(const SOP_NodeVerb::CookParms &cookparms) const
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getKeepall();
553  bool result;
554  OP_Utils::evalOpParm(result, thissop, "keepall", cookparms.getCookTime(), 0);
555  return result;
556  }
557  UT_Vector2D getKeeprange() const { return myKeeprange; }
558  void setKeeprange(UT_Vector2D val) { myKeeprange = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getKeeprange();
564  OP_Utils::evalOpParm(result, thissop, "keeprange", cookparms.getCookTime(), 0);
565  return result;
566  }
567 
568 private:
569  UT_StringHolder myVolume;
570  UT_StringHolder myStencil;
571  bool myDoignore;
572  fpreal64 myIgnore;
573  int64 myBins;
574  int64 myRangemode;
575  UT_Vector2D myMinmax;
576  bool myKeepall;
577  UT_Vector2D myKeeprange;
578 
579 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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 coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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