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