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 }
35 
36 
38 {
39 public:
40  static int version() { return 1; }
41 
43  {
44  myGroup = ""_UTsh;
45  myFilter = "box"_UTsh;
46  myFilterscale = 1;
47  myFixedresample = false;
48  myUniformsamples = 4;
49  mySamplediv = 10;
50  myDivs = UT_Vector3I(10,10,10);
51  myDivsize = 0.1;
52  myScale = 1;
53  myDetect2d = true;
54 
55  }
56 
57  explicit SOP_VolumeResampleParms(const SOP_VolumeResampleParms &) = default;
59  SOP_VolumeResampleParms(SOP_VolumeResampleParms &&) noexcept = default;
60  SOP_VolumeResampleParms &operator=(SOP_VolumeResampleParms &&) noexcept = default;
61 
62  ~SOP_VolumeResampleParms() override {}
63 
65  {
66  if (myGroup != src.myGroup) return false;
67  if (myFilter != src.myFilter) return false;
68  if (myFilterscale != src.myFilterscale) return false;
69  if (myFixedresample != src.myFixedresample) return false;
70  if (myUniformsamples != src.myUniformsamples) return false;
71  if (mySamplediv != src.mySamplediv) return false;
72  if (myDivs != src.myDivs) return false;
73  if (myDivsize != src.myDivsize) return false;
74  if (myScale != src.myScale) return false;
75  if (myDetect2d != src.myDetect2d) return false;
76 
77  return true;
78  }
80  {
81  return !operator==(src);
82  }
84 
85 
86 
87  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
88  {
89  myGroup = ""_UTsh;
90  if (true)
91  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
92  myFilter = "box"_UTsh;
93  if (true)
94  graph->evalOpParm(myFilter, nodeidx, "filter", time, 0);
95  myFilterscale = 1;
96  if (true)
97  graph->evalOpParm(myFilterscale, nodeidx, "filterscale", time, 0);
98  myFixedresample = false;
99  if (true)
100  graph->evalOpParm(myFixedresample, nodeidx, "fixedresample", time, 0);
101  myUniformsamples = 4;
102  if (true && ( (true&&!(((getFixedresample()==0)))) ) )
103  graph->evalOpParm(myUniformsamples, nodeidx, "uniformsamples", time, 0);
104  mySamplediv = 10;
105  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())==0))||((int64(getUniformsamples())==5)))) ) )
106  graph->evalOpParm(mySamplediv, nodeidx, "samplediv", time, 0);
107  myDivs = UT_Vector3I(10,10,10);
108  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())!=0)))) ) )
109  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
110  myDivsize = 0.1;
111  if (true && ( (true&&!(((getFixedresample()==0))||((int64(getUniformsamples())!=5)))) ) )
112  graph->evalOpParm(myDivsize, nodeidx, "divsize", time, 0);
113  myScale = 1;
114  if (true && ( (true&&!(((getFixedresample()==1)))) ) )
115  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
116  myDetect2d = true;
117  if (true)
118  graph->evalOpParm(myDetect2d, nodeidx, "detect2d", time, 0);
119 
120  }
121 
122 
123  void loadFromOpSubclass(const LoadParms &loadparms) override
124  {
125  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
126  }
127 
128 
129  void copyFrom(const OP_NodeParms *src) override
130  {
131  *this = *((const SOP_VolumeResampleParms *)src);
132  }
133 
134  template <typename T>
135  void
136  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
137  {
138  if (idx.size() < 1)
139  return;
140  UT_ASSERT(idx.size() == instance.size()+1);
141  if (idx.size() != instance.size()+1)
142  return;
143  switch (idx[0])
144  {
145  case 0:
146  coerceValue(value, myGroup);
147  break;
148  case 1:
149  coerceValue(value, myFilter);
150  break;
151  case 2:
152  coerceValue(value, myFilterscale);
153  break;
154  case 3:
155  coerceValue(value, myFixedresample);
156  break;
157  case 4:
158  coerceValue(value, myUniformsamples);
159  break;
160  case 5:
161  coerceValue(value, mySamplediv);
162  break;
163  case 6:
164  coerceValue(value, myDivs);
165  break;
166  case 7:
167  coerceValue(value, myDivsize);
168  break;
169  case 8:
170  coerceValue(value, myScale);
171  break;
172  case 9:
173  coerceValue(value, myDetect2d);
174  break;
175 
176  }
177  }
178 
179  bool isParmColorRamp(exint idx) const override
180  {
181  switch (idx)
182  {
183 
184  }
185  return false;
186  }
187 
188  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
209  { doGetParmValue(idx, instance, value); }
210 
211  template <typename T>
212  void
213  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
214  {
215  if (idx.size() < 1)
216  return;
217  UT_ASSERT(idx.size() == instance.size()+1);
218  if (idx.size() != instance.size()+1)
219  return;
220  switch (idx[0])
221  {
222  case 0:
223  coerceValue(myGroup, ( ( value ) ));
224  break;
225  case 1:
226  coerceValue(myFilter, ( ( value ) ));
227  break;
228  case 2:
229  coerceValue(myFilterscale, clampMinValue(0, ( value ) ));
230  break;
231  case 3:
232  coerceValue(myFixedresample, ( ( value ) ));
233  break;
234  case 4:
235  coerceValue(myUniformsamples, clampMinValue(0, clampMaxValue(5, value ) ));
236  break;
237  case 5:
238  coerceValue(mySamplediv, clampMinValue(1, ( value ) ));
239  break;
240  case 6:
241  coerceValue(myDivs, clampMinValue(1, ( value ) ));
242  break;
243  case 7:
244  coerceValue(myDivsize, clampMinValue(0, ( value ) ));
245  break;
246  case 8:
247  coerceValue(myScale, clampMinValue(0, ( value ) ));
248  break;
249  case 9:
250  coerceValue(myDetect2d, ( ( 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 10;
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 "group";
299  case 1:
300  return "filter";
301  case 2:
302  return "filterscale";
303  case 3:
304  return "fixedresample";
305  case 4:
306  return "uniformsamples";
307  case 5:
308  return "samplediv";
309  case 6:
310  return "divs";
311  case 7:
312  return "divsize";
313  case 8:
314  return "scale";
315  case 9:
316  return "detect2d";
317 
318  }
319  return 0;
320  }
321 
322  ParmType getNestParmType(TempIndex fieldnum) const override
323  {
324  if (fieldnum.size() < 1)
325  return PARM_UNSUPPORTED;
326  switch (fieldnum[0])
327  {
328  case 0:
329  return PARM_STRING;
330  case 1:
331  return PARM_STRING;
332  case 2:
333  return PARM_FLOAT;
334  case 3:
335  return PARM_INTEGER;
336  case 4:
337  return PARM_INTEGER;
338  case 5:
339  return PARM_INTEGER;
340  case 6:
341  return PARM_VECTOR3;
342  case 7:
343  return PARM_FLOAT;
344  case 8:
345  return PARM_FLOAT;
346  case 9:
347  return PARM_INTEGER;
348 
349  }
350  return PARM_UNSUPPORTED;
351  }
352 
353  // Boiler plate to load individual types.
354  static void loadData(UT_IStream &is, int64 &v)
355  { is.bread(&v, 1); }
356  static void loadData(UT_IStream &is, bool &v)
357  { int64 iv; is.bread(&iv, 1); v = iv; }
358  static void loadData(UT_IStream &is, fpreal64 &v)
359  { is.bread<fpreal64>(&v, 1); }
360  static void loadData(UT_IStream &is, UT_Vector2D &v)
361  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
362  static void loadData(UT_IStream &is, UT_Vector3D &v)
363  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
364  is.bread<fpreal64>(&v.z(), 1); }
365  static void loadData(UT_IStream &is, UT_Vector4D &v)
366  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
367  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
368  static void loadData(UT_IStream &is, UT_Matrix2D &v)
369  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
370  static void loadData(UT_IStream &is, UT_Matrix3D &v)
371  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
372  static void loadData(UT_IStream &is, UT_Matrix4D &v)
373  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
374  static void loadData(UT_IStream &is, UT_Vector2I &v)
375  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector3I &v)
377  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
378  is.bread<int64>(&v.z(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector4I &v)
380  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
381  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
383  { is.bread(v); }
385  { UT_StringHolder rampdata;
386  loadData(is, rampdata);
387  if (rampdata.isstring())
388  {
389  v.reset(new UT_Ramp());
390  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
391  v->load(istr);
392  }
393  else v.reset();
394  }
397  loadData(is, data);
398  if (data.isstring())
399  {
400  // Find the data type.
401  const char *colon = UT_StringWrap(data).findChar(':');
402  if (colon)
403  {
404  int typelen = colon - data.buffer();
406  type.strncpy(data.buffer(), typelen);
407  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
408 
409  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
410  }
411  }
412  else v.reset();
413  }
414 
415  static void saveData(std::ostream &os, int64 v)
416  { UTwrite(os, &v); }
417  static void saveData(std::ostream &os, bool v)
418  { int64 iv = v; UTwrite(os, &iv); }
419  static void saveData(std::ostream &os, fpreal64 v)
420  { UTwrite<fpreal64>(os, &v); }
421  static void saveData(std::ostream &os, UT_Vector2D v)
422  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
423  static void saveData(std::ostream &os, UT_Vector3D v)
424  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
425  UTwrite<fpreal64>(os, &v.z()); }
426  static void saveData(std::ostream &os, UT_Vector4D v)
427  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
428  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
429  static void saveData(std::ostream &os, UT_Matrix2D v)
431  static void saveData(std::ostream &os, UT_Matrix3D v)
433  static void saveData(std::ostream &os, UT_Matrix4D v)
435  static void saveData(std::ostream &os, UT_StringHolder s)
436  { UT_StringWrap(s).saveBinary(os); }
437  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
439  UT_OStringStream ostr;
440  if (s) s->save(ostr);
441  result = ostr.str();
442  saveData(os, result);
443  }
444  static void saveData(std::ostream &os, PRM_DataItemHandle s)
446  UT_OStringStream ostr;
447  if (s)
448  {
449  ostr << s->getDataTypeToken();
450  ostr << ":";
451  s->saveBinary(ostr);
452  }
453  result = ostr.str();
454  saveData(os, result);
455  }
456 
457 
458  void save(std::ostream &os) const
459  {
460  int32 v = version();
461  UTwrite(os, &v);
462  saveData(os, myGroup);
463  saveData(os, myFilter);
464  saveData(os, myFilterscale);
465  saveData(os, myFixedresample);
466  saveData(os, myUniformsamples);
467  saveData(os, mySamplediv);
468  saveData(os, myDivs);
469  saveData(os, myDivsize);
470  saveData(os, myScale);
471  saveData(os, myDetect2d);
472 
473  }
474 
475  bool load(UT_IStream &is)
476  {
477  int32 v;
478  is.bread(&v, 1);
479  if (version() != v)
480  {
481  // Fail incompatible versions
482  return false;
483  }
484  loadData(is, myGroup);
485  loadData(is, myFilter);
486  loadData(is, myFilterscale);
487  loadData(is, myFixedresample);
488  loadData(is, myUniformsamples);
489  loadData(is, mySamplediv);
490  loadData(is, myDivs);
491  loadData(is, myDivsize);
492  loadData(is, myScale);
493  loadData(is, myDetect2d);
494 
495  return true;
496  }
497 
498  const UT_StringHolder & getGroup() const { return myGroup; }
499  void setGroup(const UT_StringHolder & val) { myGroup = val; }
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getGroup();
505  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
506  return result;
507  }
508  const UT_StringHolder & getFilter() const { return myFilter; }
509  void setFilter(const UT_StringHolder & val) { myFilter = val; }
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getFilter();
515  OP_Utils::evalOpParm(result, thissop, "filter", cookparms.getCookTime(), 0);
516  return result;
517  }
518  fpreal64 getFilterscale() const { return myFilterscale; }
519  void setFilterscale(fpreal64 val) { myFilterscale = val; }
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getFilterscale();
525  OP_Utils::evalOpParm(result, thissop, "filterscale", cookparms.getCookTime(), 0);
526  return result;
527  }
528  bool getFixedresample() const { return myFixedresample; }
529  void setFixedresample(bool val) { myFixedresample = val; }
530  bool opFixedresample(const SOP_NodeVerb::CookParms &cookparms) const
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getFixedresample();
534  bool result;
535  OP_Utils::evalOpParm(result, thissop, "fixedresample", cookparms.getCookTime(), 0);
536  return result;
537  }
538  Uniformsamples getUniformsamples() const { return Uniformsamples(myUniformsamples); }
539  void setUniformsamples(Uniformsamples val) { myUniformsamples = int64(val); }
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getUniformsamples();
544  int64 result;
545  OP_Utils::evalOpParm(result, thissop, "uniformsamples", cookparms.getCookTime(), 0);
546  return Uniformsamples(result);
547  }
548  int64 getSamplediv() const { return mySamplediv; }
549  void setSamplediv(int64 val) { mySamplediv = val; }
550  int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getSamplediv();
554  int64 result;
555  OP_Utils::evalOpParm(result, thissop, "samplediv", cookparms.getCookTime(), 0);
556  return result;
557  }
558  UT_Vector3I getDivs() const { return myDivs; }
559  void setDivs(UT_Vector3I val) { myDivs = val; }
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getDivs();
565  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
566  return result;
567  }
568  fpreal64 getDivsize() const { return myDivsize; }
569  void setDivsize(fpreal64 val) { myDivsize = val; }
571  {
572  SOP_Node *thissop = cookparms.getNode();
573  if (!thissop) return getDivsize();
575  OP_Utils::evalOpParm(result, thissop, "divsize", cookparms.getCookTime(), 0);
576  return result;
577  }
578  fpreal64 getScale() const { return myScale; }
579  void setScale(fpreal64 val) { myScale = val; }
580  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getScale();
585  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
586  return result;
587  }
588  bool getDetect2d() const { return myDetect2d; }
589  void setDetect2d(bool val) { myDetect2d = val; }
590  bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return getDetect2d();
594  bool result;
595  OP_Utils::evalOpParm(result, thissop, "detect2d", cookparms.getCookTime(), 0);
596  return result;
597  }
598 
599 private:
600  UT_StringHolder myGroup;
601  UT_StringHolder myFilter;
602  fpreal64 myFilterscale;
603  bool myFixedresample;
604  int64 myUniformsamples;
605  int64 mySamplediv;
606  UT_Vector3I myDivs;
607  fpreal64 myDivsize;
608  fpreal64 myScale;
609  bool myDetect2d;
610 
611 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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