HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeResample.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_VolumeResampleEnums
24 {
25  enum class Uniformsamples
26  {
27  NONSQUARE = 0,
28  X,
29  Y,
30  Z,
31  MAX,
32  SIZE
33  };
34 
36  getToken(Uniformsamples enum_value)
37  {
38  using namespace UT::Literal;
39  switch (enum_value) {
40  case Uniformsamples::NONSQUARE: return "nonsquare"_sh;
41  case Uniformsamples::X: return "x"_sh;
42  case Uniformsamples::Y: return "y"_sh;
43  case Uniformsamples::Z: return "z"_sh;
44  case Uniformsamples::MAX: return "max"_sh;
45  case Uniformsamples::SIZE: return "size"_sh;
46  default: UT_ASSERT(false); return ""_sh;
47  }
48  }
49 
50 }
51 
52 
54 {
55 public:
56  static int version() { return 1; }
57 
59  {
60  myGroup = ""_UTsh;
61  myFilter = "box"_UTsh;
62  myFilterscale = 1;
63  myFixedresample = false;
64  myUniformsamples = 4;
65  mySamplediv = 10;
66  myDivs = UT_Vector3I(10,10,10);
67  myDivsize = 0.1;
68  myScale = 1;
69  myDetect2d = true;
70 
71  }
72 
73  explicit SOP_VolumeResampleParms(const SOP_VolumeResampleParms &) = default;
75  SOP_VolumeResampleParms(SOP_VolumeResampleParms &&) noexcept = default;
76  SOP_VolumeResampleParms &operator=(SOP_VolumeResampleParms &&) noexcept = default;
77 
78  ~SOP_VolumeResampleParms() override {}
79 
81  {
82  if (myGroup != src.myGroup) return false;
83  if (myFilter != src.myFilter) return false;
84  if (myFilterscale != src.myFilterscale) return false;
85  if (myFixedresample != src.myFixedresample) return false;
86  if (myUniformsamples != src.myUniformsamples) return false;
87  if (mySamplediv != src.mySamplediv) return false;
88  if (myDivs != src.myDivs) return false;
89  if (myDivsize != src.myDivsize) return false;
90  if (myScale != src.myScale) return false;
91  if (myDetect2d != src.myDetect2d) return false;
92 
93  return true;
94  }
96  {
97  return !operator==(src);
98  }
100 
101 
102 
103  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
104  {
105  myGroup = ""_UTsh;
106  if (true)
107  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
108  myFilter = "box"_UTsh;
109  if (true)
110  graph->evalOpParm(myFilter, nodeidx, "filter", time, 0);
111  myFilterscale = 1;
112  if (true)
113  graph->evalOpParm(myFilterscale, nodeidx, "filterscale", time, 0);
114  myFixedresample = false;
115  if (true)
116  graph->evalOpParm(myFixedresample, nodeidx, "fixedresample", time, 0);
117  myUniformsamples = 4;
118  if (true && ( (true&&!(((getFixedresample()==0)))) ) )
119  graph->evalOpParm(myUniformsamples, nodeidx, "uniformsamples", time, 0);
120  mySamplediv = 10;
121  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())==0))||((int64(getUniformsamples())==5)))) ) )
122  graph->evalOpParm(mySamplediv, nodeidx, "samplediv", time, 0);
123  myDivs = UT_Vector3I(10,10,10);
124  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())!=0)))) ) )
125  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
126  myDivsize = 0.1;
127  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())!=5)))) ) )
128  graph->evalOpParm(myDivsize, nodeidx, "divsize", time, 0);
129  myScale = 1;
130  if (true && ( (true&&!(((getFixedresample()==1)))) ) )
131  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
132  myDetect2d = true;
133  if (true)
134  graph->evalOpParm(myDetect2d, nodeidx, "detect2d", time, 0);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const OP_NodeParms *src) override
146  {
147  *this = *((const SOP_VolumeResampleParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myGroup);
163  break;
164  case 1:
165  coerceValue(value, myFilter);
166  break;
167  case 2:
168  coerceValue(value, myFilterscale);
169  break;
170  case 3:
171  coerceValue(value, myFixedresample);
172  break;
173  case 4:
174  coerceValue(value, myUniformsamples);
175  break;
176  case 5:
177  coerceValue(value, mySamplediv);
178  break;
179  case 6:
180  coerceValue(value, myDivs);
181  break;
182  case 7:
183  coerceValue(value, myDivsize);
184  break;
185  case 8:
186  coerceValue(value, myScale);
187  break;
188  case 9:
189  coerceValue(value, myDetect2d);
190  break;
191 
192  }
193  }
194 
195  bool isParmColorRamp(exint idx) const override
196  {
197  switch (idx)
198  {
199 
200  }
201  return false;
202  }
203 
204  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
225  { doGetParmValue(idx, instance, value); }
226 
227  template <typename T>
228  void
229  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
230  {
231  if (idx.size() < 1)
232  return;
233  UT_ASSERT(idx.size() == instance.size()+1);
234  if (idx.size() != instance.size()+1)
235  return;
236  switch (idx[0])
237  {
238  case 0:
239  coerceValue(myGroup, ( ( value ) ));
240  break;
241  case 1:
242  coerceValue(myFilter, ( ( value ) ));
243  break;
244  case 2:
245  coerceValue(myFilterscale, clampMinValue(0, ( value ) ));
246  break;
247  case 3:
248  coerceValue(myFixedresample, ( ( value ) ));
249  break;
250  case 4:
251  coerceValue(myUniformsamples, clampMinValue(0, clampMaxValue(5, value ) ));
252  break;
253  case 5:
254  coerceValue(mySamplediv, clampMinValue(1, ( value ) ));
255  break;
256  case 6:
257  coerceValue(myDivs, clampMinValue(1, ( value ) ));
258  break;
259  case 7:
260  coerceValue(myDivsize, clampMinValue(0, ( value ) ));
261  break;
262  case 8:
263  coerceValue(myScale, clampMinValue(0, ( value ) ));
264  break;
265  case 9:
266  coerceValue(myDetect2d, ( ( value ) ));
267  break;
268 
269  }
270  }
271 
272  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
293  { doSetParmValue(idx, instance, value); }
294 
295  exint getNestNumParms(TempIndex idx) const override
296  {
297  if (idx.size() == 0)
298  return 10;
299  switch (idx[0])
300  {
301 
302  }
303  // Invalid
304  return 0;
305  }
306 
307  const char *getNestParmName(TempIndex fieldnum) const override
308  {
309  if (fieldnum.size() < 1)
310  return 0;
311  switch (fieldnum[0])
312  {
313  case 0:
314  return "group";
315  case 1:
316  return "filter";
317  case 2:
318  return "filterscale";
319  case 3:
320  return "fixedresample";
321  case 4:
322  return "uniformsamples";
323  case 5:
324  return "samplediv";
325  case 6:
326  return "divs";
327  case 7:
328  return "divsize";
329  case 8:
330  return "scale";
331  case 9:
332  return "detect2d";
333 
334  }
335  return 0;
336  }
337 
338  ParmType getNestParmType(TempIndex fieldnum) const override
339  {
340  if (fieldnum.size() < 1)
341  return PARM_UNSUPPORTED;
342  switch (fieldnum[0])
343  {
344  case 0:
345  return PARM_STRING;
346  case 1:
347  return PARM_STRING;
348  case 2:
349  return PARM_FLOAT;
350  case 3:
351  return PARM_INTEGER;
352  case 4:
353  return PARM_INTEGER;
354  case 5:
355  return PARM_INTEGER;
356  case 6:
357  return PARM_VECTOR3;
358  case 7:
359  return PARM_FLOAT;
360  case 8:
361  return PARM_FLOAT;
362  case 9:
363  return PARM_INTEGER;
364 
365  }
366  return PARM_UNSUPPORTED;
367  }
368 
369  // Boiler plate to load individual types.
370  static void loadData(UT_IStream &is, int64 &v)
371  { is.bread(&v, 1); }
372  static void loadData(UT_IStream &is, bool &v)
373  { int64 iv; is.bread(&iv, 1); v = iv; }
374  static void loadData(UT_IStream &is, fpreal64 &v)
375  { is.bread<fpreal64>(&v, 1); }
376  static void loadData(UT_IStream &is, UT_Vector2D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector3D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
380  is.bread<fpreal64>(&v.z(), 1); }
381  static void loadData(UT_IStream &is, UT_Vector4D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
383  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
384  static void loadData(UT_IStream &is, UT_Matrix2D &v)
385  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
386  static void loadData(UT_IStream &is, UT_Matrix3D &v)
387  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
388  static void loadData(UT_IStream &is, UT_Matrix4D &v)
389  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
390  static void loadData(UT_IStream &is, UT_Vector2I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector3I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
394  is.bread<int64>(&v.z(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector4I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
397  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
399  { is.bread(v); }
401  { UT_StringHolder rampdata;
402  loadData(is, rampdata);
403  if (rampdata.isstring())
404  {
405  v.reset(new UT_Ramp());
406  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
407  v->load(istr);
408  }
409  else v.reset();
410  }
413  loadData(is, data);
414  if (data.isstring())
415  {
416  // Find the data type.
417  const char *colon = UT_StringWrap(data).findChar(':');
418  if (colon)
419  {
420  int typelen = colon - data.buffer();
422  type.strncpy(data.buffer(), typelen);
423  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
424 
425  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
426  }
427  }
428  else v.reset();
429  }
430 
431  static void saveData(std::ostream &os, int64 v)
432  { UTwrite(os, &v); }
433  static void saveData(std::ostream &os, bool v)
434  { int64 iv = v; UTwrite(os, &iv); }
435  static void saveData(std::ostream &os, fpreal64 v)
436  { UTwrite<fpreal64>(os, &v); }
437  static void saveData(std::ostream &os, UT_Vector2D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
439  static void saveData(std::ostream &os, UT_Vector3D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
441  UTwrite<fpreal64>(os, &v.z()); }
442  static void saveData(std::ostream &os, UT_Vector4D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
444  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
445  static void saveData(std::ostream &os, UT_Matrix2D v)
447  static void saveData(std::ostream &os, UT_Matrix3D v)
449  static void saveData(std::ostream &os, UT_Matrix4D v)
451  static void saveData(std::ostream &os, UT_StringHolder s)
452  { UT_StringWrap(s).saveBinary(os); }
453  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
455  UT_OStringStream ostr;
456  if (s) s->save(ostr);
457  result = ostr.str();
458  saveData(os, result);
459  }
460  static void saveData(std::ostream &os, PRM_DataItemHandle s)
462  UT_OStringStream ostr;
463  if (s)
464  {
465  ostr << s->getDataTypeToken();
466  ostr << ":";
467  s->saveBinary(ostr);
468  }
469  result = ostr.str();
470  saveData(os, result);
471  }
472 
473 
474  void save(std::ostream &os) const
475  {
476  int32 v = version();
477  UTwrite(os, &v);
478  saveData(os, myGroup);
479  saveData(os, myFilter);
480  saveData(os, myFilterscale);
481  saveData(os, myFixedresample);
482  saveData(os, myUniformsamples);
483  saveData(os, mySamplediv);
484  saveData(os, myDivs);
485  saveData(os, myDivsize);
486  saveData(os, myScale);
487  saveData(os, myDetect2d);
488 
489  }
490 
491  bool load(UT_IStream &is)
492  {
493  int32 v;
494  is.bread(&v, 1);
495  if (version() != v)
496  {
497  // Fail incompatible versions
498  return false;
499  }
500  loadData(is, myGroup);
501  loadData(is, myFilter);
502  loadData(is, myFilterscale);
503  loadData(is, myFixedresample);
504  loadData(is, myUniformsamples);
505  loadData(is, mySamplediv);
506  loadData(is, myDivs);
507  loadData(is, myDivsize);
508  loadData(is, myScale);
509  loadData(is, myDetect2d);
510 
511  return true;
512  }
513 
514  const UT_StringHolder & getGroup() const { return myGroup; }
515  void setGroup(const UT_StringHolder & val) { myGroup = val; }
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getGroup();
521  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
522  return result;
523  }
524  const UT_StringHolder & getFilter() const { return myFilter; }
525  void setFilter(const UT_StringHolder & val) { myFilter = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getFilter();
531  OP_Utils::evalOpParm(result, thissop, "filter", cookparms.getCookTime(), 0);
532  return result;
533  }
534  fpreal64 getFilterscale() const { return myFilterscale; }
535  void setFilterscale(fpreal64 val) { myFilterscale = val; }
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getFilterscale();
541  OP_Utils::evalOpParm(result, thissop, "filterscale", cookparms.getCookTime(), 0);
542  return result;
543  }
544  bool getFixedresample() const { return myFixedresample; }
545  void setFixedresample(bool val) { myFixedresample = val; }
546  bool opFixedresample(const SOP_NodeVerb::CookParms &cookparms) const
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getFixedresample();
550  bool result;
551  OP_Utils::evalOpParm(result, thissop, "fixedresample", cookparms.getCookTime(), 0);
552  return result;
553  }
554  Uniformsamples getUniformsamples() const { return Uniformsamples(myUniformsamples); }
555  void setUniformsamples(Uniformsamples val) { myUniformsamples = int64(val); }
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getUniformsamples();
560  int64 result;
561  OP_Utils::evalOpParm(result, thissop, "uniformsamples", cookparms.getCookTime(), 0);
562  return Uniformsamples(result);
563  }
564  int64 getSamplediv() const { return mySamplediv; }
565  void setSamplediv(int64 val) { mySamplediv = val; }
566  int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getSamplediv();
570  int64 result;
571  OP_Utils::evalOpParm(result, thissop, "samplediv", cookparms.getCookTime(), 0);
572  return result;
573  }
574  UT_Vector3I getDivs() const { return myDivs; }
575  void setDivs(UT_Vector3I val) { myDivs = val; }
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getDivs();
581  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
582  return result;
583  }
584  fpreal64 getDivsize() const { return myDivsize; }
585  void setDivsize(fpreal64 val) { myDivsize = val; }
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getDivsize();
591  OP_Utils::evalOpParm(result, thissop, "divsize", cookparms.getCookTime(), 0);
592  return result;
593  }
594  fpreal64 getScale() const { return myScale; }
595  void setScale(fpreal64 val) { myScale = val; }
596  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getScale();
601  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
602  return result;
603  }
604  bool getDetect2d() const { return myDetect2d; }
605  void setDetect2d(bool val) { myDetect2d = val; }
606  bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
607  {
608  SOP_Node *thissop = cookparms.getNode();
609  if (!thissop) return getDetect2d();
610  bool result;
611  OP_Utils::evalOpParm(result, thissop, "detect2d", cookparms.getCookTime(), 0);
612  return result;
613  }
614 
615 private:
616  UT_StringHolder myGroup;
617  UT_StringHolder myFilter;
618  fpreal64 myFilterscale;
619  bool myFixedresample;
620  int64 myUniformsamples;
621  int64 mySamplediv;
622  UT_Vector3I myDivs;
623  fpreal64 myDivsize;
624  fpreal64 myScale;
625  bool myDetect2d;
626 
627 };
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, bool &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool opFixedresample(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
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
fpreal getTime() const
Definition: OP_Context.h:62
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool isParmColorRamp(exint idx) const override
Uniformsamples opUniformsamples(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE UT_StringHolder getToken(Uniformsamples enum_value)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void loadFromOpSubclass(const LoadParms &loadparms) override
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
UT_StringHolder opFilter(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
**But if you need a result
Definition: thread.h:613
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
UT_Vector3T< int64 > UT_Vector3I
bool operator!=(const SOP_VolumeResampleParms &src) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
Uniformsamples getUniformsamples() const
bool operator==(const SOP_VolumeResampleParms &src) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void saveData(std::ostream &os, bool v)
void setUniformsamples(Uniformsamples val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const UT_StringHolder & getFilter() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
fpreal64 opDivsize(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, fpreal64 v)
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint length() const
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
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
UT_Vector3I opDivs(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void saveData(std::ostream &os, UT_Vector4D v)
long long int64
Definition: SYS_Types.h:116
fpreal64 opFilterscale(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Vector2D v)
bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
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_StringHolder &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, int64 &v)
int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
Definition: Mat.h:633
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Matrix2D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setFilter(const UT_StringHolder &val)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663