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