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_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_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 = ""_sh;
45  myFilter = "box"_sh;
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;
58 
60 
62  {
63  if (myGroup != src.myGroup) return false;
64  if (myFilter != src.myFilter) return false;
65  if (myFilterscale != src.myFilterscale) return false;
66  if (myFixedresample != src.myFixedresample) return false;
67  if (myUniformsamples != src.myUniformsamples) return false;
68  if (mySamplediv != src.mySamplediv) return false;
69  if (myDivs != src.myDivs) return false;
70  if (myDivsize != src.myDivsize) return false;
71  if (myScale != src.myScale) return false;
72  if (myDetect2d != src.myDetect2d) return false;
73 
74  return true;
75  }
77  {
78  return !operator==(src);
79  }
81 
82 
83 
84  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
85  {
86  myGroup = ""_sh;
87  if (true)
88  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
89  myFilter = "box"_sh;
90  if (true)
91  graph->evalOpParm(myFilter, nodeidx, "filter", time, 0);
92  myFilterscale = 1;
93  if (true)
94  graph->evalOpParm(myFilterscale, nodeidx, "filterscale", time, 0);
95  myFixedresample = false;
96  if (true)
97  graph->evalOpParm(myFixedresample, nodeidx, "fixedresample", time, 0);
98  myUniformsamples = 4;
99  if (true && ( (!(((getFixedresample()==0)))) ) )
100  graph->evalOpParm(myUniformsamples, nodeidx, "uniformsamples", time, 0);
101  mySamplediv = 10;
102  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())==0))||((int64(getUniformsamples())==5)))) ) )
103  graph->evalOpParm(mySamplediv, nodeidx, "samplediv", time, 0);
104  myDivs = UT_Vector3I(10,10,10);
105  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())!=0)))) ) )
106  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
107  myDivsize = 0.1;
108  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())!=5)))) ) )
109  graph->evalOpParm(myDivsize, nodeidx, "divsize", time, 0);
110  myScale = 1;
111  if (true && ( (!(((getFixedresample()==1)))) ) )
112  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
113  myDetect2d = true;
114  if (true)
115  graph->evalOpParm(myDetect2d, nodeidx, "detect2d", time, 0);
116 
117  }
118 
119 
120  void loadFromOpSubclass(const LoadParms &loadparms) override
121  {
122  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
123  }
124 
125 
126  void copyFrom(const SOP_NodeParms *src) override
127  {
128  *this = *((const SOP_VolumeResampleParms *)src);
129  }
130 
131  template <typename T>
132  void
133  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
134  {
135  if (idx.size() < 1)
136  return;
137  UT_ASSERT(idx.size() == instance.size()+1);
138  if (idx.size() != instance.size()+1)
139  return;
140  switch (idx[0])
141  {
142  case 0:
143  coerceValue(value, myGroup);
144  break;
145  case 1:
146  coerceValue(value, myFilter);
147  break;
148  case 2:
149  coerceValue(value, myFilterscale);
150  break;
151  case 3:
152  coerceValue(value, myFixedresample);
153  break;
154  case 4:
155  coerceValue(value, myUniformsamples);
156  break;
157  case 5:
158  coerceValue(value, mySamplediv);
159  break;
160  case 6:
161  coerceValue(value, myDivs);
162  break;
163  case 7:
164  coerceValue(value, myDivsize);
165  break;
166  case 8:
167  coerceValue(value, myScale);
168  break;
169  case 9:
170  coerceValue(value, myDetect2d);
171  break;
172 
173  }
174  }
175 
176  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
197  { doGetParmValue(idx, instance, value); }
198 
199  template <typename T>
200  void
201  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
202  {
203  if (idx.size() < 1)
204  return;
205  UT_ASSERT(idx.size() == instance.size()+1);
206  if (idx.size() != instance.size()+1)
207  return;
208  switch (idx[0])
209  {
210  case 0:
211  coerceValue(myGroup, value);
212  break;
213  case 1:
214  coerceValue(myFilter, value);
215  break;
216  case 2:
217  coerceValue(myFilterscale, value);
218  break;
219  case 3:
220  coerceValue(myFixedresample, value);
221  break;
222  case 4:
223  coerceValue(myUniformsamples, value);
224  break;
225  case 5:
226  coerceValue(mySamplediv, value);
227  break;
228  case 6:
229  coerceValue(myDivs, value);
230  break;
231  case 7:
232  coerceValue(myDivsize, value);
233  break;
234  case 8:
235  coerceValue(myScale, value);
236  break;
237  case 9:
238  coerceValue(myDetect2d, value);
239  break;
240 
241  }
242  }
243 
244  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
265  { doSetParmValue(idx, instance, value); }
266 
267  exint getNestNumParms(TempIndex idx) const override
268  {
269  if (idx.size() == 0)
270  return 10;
271  switch (idx[0])
272  {
273 
274  }
275  // Invalid
276  return 0;
277  }
278 
279  const char *getNestParmName(TempIndex fieldnum) const override
280  {
281  if (fieldnum.size() < 1)
282  return 0;
283  switch (fieldnum[0])
284  {
285  case 0:
286  return "group";
287  case 1:
288  return "filter";
289  case 2:
290  return "filterscale";
291  case 3:
292  return "fixedresample";
293  case 4:
294  return "uniformsamples";
295  case 5:
296  return "samplediv";
297  case 6:
298  return "divs";
299  case 7:
300  return "divsize";
301  case 8:
302  return "scale";
303  case 9:
304  return "detect2d";
305 
306  }
307  return 0;
308  }
309 
310  ParmType getNestParmType(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return PARM_UNSUPPORTED;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return PARM_STRING;
318  case 1:
319  return PARM_STRING;
320  case 2:
321  return PARM_FLOAT;
322  case 3:
323  return PARM_INTEGER;
324  case 4:
325  return PARM_INTEGER;
326  case 5:
327  return PARM_INTEGER;
328  case 6:
329  return PARM_VECTOR3;
330  case 7:
331  return PARM_FLOAT;
332  case 8:
333  return PARM_FLOAT;
334  case 9:
335  return PARM_INTEGER;
336 
337  }
338  return PARM_UNSUPPORTED;
339  }
340 
341  // Boiler plate to load individual types.
342  static void loadData(UT_IStream &is, int64 &v)
343  { is.bread(&v, 1); }
344  static void loadData(UT_IStream &is, bool &v)
345  { int64 iv; is.bread(&iv, 1); v = iv; }
346  static void loadData(UT_IStream &is, fpreal64 &v)
347  { is.bread<fpreal64>(&v, 1); }
348  static void loadData(UT_IStream &is, UT_Vector2D &v)
349  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3D &v)
351  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
352  is.bread<fpreal64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
355  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
356  static void loadData(UT_IStream &is, UT_Matrix2D &v)
357  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
358  static void loadData(UT_IStream &is, UT_Matrix3D &v)
359  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
360  static void loadData(UT_IStream &is, UT_Matrix4D &v)
361  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
362  static void loadData(UT_IStream &is, UT_Vector2I &v)
363  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
364  static void loadData(UT_IStream &is, UT_Vector3I &v)
365  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
366  is.bread<int64>(&v.z(), 1); }
367  static void loadData(UT_IStream &is, UT_Vector4I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
369  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
371  { is.bread(v); }
373  { UT_StringHolder rampdata;
374  loadData(is, rampdata);
375  if (rampdata.isstring())
376  {
377  v.reset(new UT_Ramp());
378  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
379  v->load(istr);
380  }
381  else v.reset();
382  }
385  loadData(is, data);
386  if (data.isstring())
387  {
388  // Find the data type.
389  const char *colon = UT_StringWrap(data).findChar(':');
390  if (colon)
391  {
392  int typelen = colon - data.buffer();
394  type.strncpy(data.buffer(), typelen);
395  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
396 
397  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
398  }
399  }
400  else v.reset();
401  }
402 
403  static void saveData(std::ostream &os, int64 v)
404  { UTwrite(os, &v); }
405  static void saveData(std::ostream &os, bool v)
406  { int64 iv = v; UTwrite(os, &iv); }
407  static void saveData(std::ostream &os, fpreal64 v)
408  { UTwrite<fpreal64>(os, &v); }
409  static void saveData(std::ostream &os, UT_Vector2D v)
410  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
411  static void saveData(std::ostream &os, UT_Vector3D v)
412  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
413  UTwrite<fpreal64>(os, &v.z()); }
414  static void saveData(std::ostream &os, UT_Vector4D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
416  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
417  static void saveData(std::ostream &os, UT_Matrix2D v)
419  static void saveData(std::ostream &os, UT_Matrix3D v)
421  static void saveData(std::ostream &os, UT_Matrix4D v)
423  static void saveData(std::ostream &os, UT_StringHolder s)
424  { UT_StringWrap(s).saveBinary(os); }
425  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
427  UT_OStringStream ostr;
428  if (s) s->save(ostr);
429  result = ostr.str();
430  saveData(os, result);
431  }
432  static void saveData(std::ostream &os, PRM_DataItemHandle s)
434  UT_OStringStream ostr;
435  if (s)
436  {
437  ostr << s->getDataTypeToken();
438  ostr << ":";
439  s->saveBinary(ostr);
440  }
441  result = ostr.str();
442  saveData(os, result);
443  }
444 
445 
446  void save(std::ostream &os) const
447  {
448  int32 v = version();
449  UTwrite(os, &v);
450  saveData(os, myGroup);
451  saveData(os, myFilter);
452  saveData(os, myFilterscale);
453  saveData(os, myFixedresample);
454  saveData(os, myUniformsamples);
455  saveData(os, mySamplediv);
456  saveData(os, myDivs);
457  saveData(os, myDivsize);
458  saveData(os, myScale);
459  saveData(os, myDetect2d);
460 
461  }
462 
463  bool load(UT_IStream &is)
464  {
465  int32 v;
466  is.bread(&v, 1);
467  if (version() != v)
468  {
469  // Fail incompatible versions
470  return false;
471  }
472  loadData(is, myGroup);
473  loadData(is, myFilter);
474  loadData(is, myFilterscale);
475  loadData(is, myFixedresample);
476  loadData(is, myUniformsamples);
477  loadData(is, mySamplediv);
478  loadData(is, myDivs);
479  loadData(is, myDivsize);
480  loadData(is, myScale);
481  loadData(is, myDetect2d);
482 
483  return true;
484  }
485 
486  const UT_StringHolder & getGroup() const { return myGroup; }
487  void setGroup(const UT_StringHolder & val) { myGroup = val; }
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getGroup();
493  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
494  return result;
495  }
496  const UT_StringHolder & getFilter() const { return myFilter; }
497  void setFilter(const UT_StringHolder & val) { myFilter = val; }
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getFilter();
503  OP_Utils::evalOpParm(result, thissop, "filter", cookparms.getCookTime(), 0);
504  return result;
505  }
506  fpreal64 getFilterscale() const { return myFilterscale; }
507  void setFilterscale(fpreal64 val) { myFilterscale = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getFilterscale();
513  OP_Utils::evalOpParm(result, thissop, "filterscale", cookparms.getCookTime(), 0);
514  return result;
515  }
516  bool getFixedresample() const { return myFixedresample; }
517  void setFixedresample(bool val) { myFixedresample = val; }
518  bool opFixedresample(const SOP_NodeVerb::CookParms &cookparms) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getFixedresample();
522  bool result;
523  OP_Utils::evalOpParm(result, thissop, "fixedresample", cookparms.getCookTime(), 0);
524  return result;
525  }
526  Uniformsamples getUniformsamples() const { return Uniformsamples(myUniformsamples); }
527  void setUniformsamples(Uniformsamples val) { myUniformsamples = int64(val); }
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return getUniformsamples();
532  int64 result;
533  OP_Utils::evalOpParm(result, thissop, "uniformsamples", cookparms.getCookTime(), 0);
534  return Uniformsamples(result);
535  }
536  int64 getSamplediv() const { return mySamplediv; }
537  void setSamplediv(int64 val) { mySamplediv = val; }
538  int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
539  {
540  SOP_Node *thissop = cookparms.getNode();
541  if (!thissop) return getSamplediv();
542  int64 result;
543  OP_Utils::evalOpParm(result, thissop, "samplediv", cookparms.getCookTime(), 0);
544  return result;
545  }
546  UT_Vector3I getDivs() const { return myDivs; }
547  void setDivs(UT_Vector3I val) { myDivs = val; }
549  {
550  SOP_Node *thissop = cookparms.getNode();
551  if (!thissop) return getDivs();
553  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
554  return result;
555  }
556  fpreal64 getDivsize() const { return myDivsize; }
557  void setDivsize(fpreal64 val) { myDivsize = val; }
559  {
560  SOP_Node *thissop = cookparms.getNode();
561  if (!thissop) return getDivsize();
563  OP_Utils::evalOpParm(result, thissop, "divsize", cookparms.getCookTime(), 0);
564  return result;
565  }
566  fpreal64 getScale() const { return myScale; }
567  void setScale(fpreal64 val) { myScale = val; }
568  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
569  {
570  SOP_Node *thissop = cookparms.getNode();
571  if (!thissop) return getScale();
573  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
574  return result;
575  }
576  bool getDetect2d() const { return myDetect2d; }
577  void setDetect2d(bool val) { myDetect2d = val; }
578  bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
579  {
580  SOP_Node *thissop = cookparms.getNode();
581  if (!thissop) return getDetect2d();
582  bool result;
583  OP_Utils::evalOpParm(result, thissop, "detect2d", cookparms.getCookTime(), 0);
584  return result;
585  }
586 
587 private:
588  UT_StringHolder myGroup;
589  UT_StringHolder myFilter;
590  fpreal64 myFilterscale;
591  bool myFixedresample;
592  int64 myUniformsamples;
593  int64 mySamplediv;
594  UT_Vector3I myDivs;
595  fpreal64 myDivsize;
596  fpreal64 myScale;
597  bool myDetect2d;
598 
599 };
GLdouble s
Definition: glew.h:1390
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
static void loadData(UT_IStream &is, bool &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
Uniformsamples opUniformsamples(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:125
void loadFromOpSubclass(const LoadParms &loadparms) override
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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)
const GLdouble * v
Definition: glew.h:1391
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
UT_Vector3T< int64 > UT_Vector3I
bool operator!=(const SOP_VolumeResampleParms &src) const
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
double fpreal64
Definition: SYS_Types.h:201
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 copyFrom(const SOP_NodeParms *src) override
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
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
UT_Vector3I opDivs(const SOP_NodeVerb::CookParms &cookparms) const
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void saveData(std::ostream &os, UT_Vector4D v)
const GLfloat * c
Definition: glew.h:16296
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
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:294
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
static void loadData(UT_IStream &is, UT_StringHolder &v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
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:648
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, int64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, PRM_DataItemHandle s)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
#define SIZE
Definition: simple.C:40
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
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)
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
static void saveData(std::ostream &os, UT_Matrix2D v)
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void setFilter(const UT_StringHolder &val)