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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_VolumeResampleEnums
22 {
23  enum class Uniformsamples
24  {
25  NONSQUARE = 0,
26  X,
27  Y,
28  Z,
29  MAX,
30  SIZE
31  };
32 }
33 
34 
36 {
37 public:
38  static int version() { return 1; }
39 
41  {
42  myGroup = ""_sh;
43  myFilter = "box"_sh;
44  myFilterscale = 1;
45  myFixedresample = false;
46  myUniformsamples = 4;
47  mySamplediv = 10;
48  myDivs = UT_Vector3I(10,10,10);
49  myDivsize = 0.1;
50  myScale = 1;
51  myDetect2d = true;
52 
53  }
54 
55  explicit SOP_VolumeResampleParms(const SOP_VolumeResampleParms &) = default;
56 
58 
60  {
61  if (myGroup != src.myGroup) return false;
62  if (myFilter != src.myFilter) return false;
63  if (myFilterscale != src.myFilterscale) return false;
64  if (myFixedresample != src.myFixedresample) return false;
65  if (myUniformsamples != src.myUniformsamples) return false;
66  if (mySamplediv != src.mySamplediv) return false;
67  if (myDivs != src.myDivs) return false;
68  if (myDivsize != src.myDivsize) return false;
69  if (myScale != src.myScale) return false;
70  if (myDetect2d != src.myDetect2d) return false;
71 
72  return true;
73  }
75  {
76  return !operator==(src);
77  }
79 
80 
81 
82  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
83  {
84  if (true)
85  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
86  else myGroup = ""_sh;
87  if (true)
88  OP_Utils::evalOpParm(myFilter, node, "filter", time, 0);
89  else myFilter = "box"_sh;
90  if (true)
91  OP_Utils::evalOpParm(myFilterscale, node, "filterscale", time, 0);
92  else myFilterscale = 1;
93  if (true)
94  OP_Utils::evalOpParm(myFixedresample, node, "fixedresample", time, 0);
95  else myFixedresample = false;
96  if (true && ( (!(((getFixedresample()==0)))) ) )
97  OP_Utils::evalOpParm(myUniformsamples, node, "uniformsamples", time, 0);
98  else myUniformsamples = 4;
99  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())==0))||((int64(getUniformsamples())==5)))) ) )
100  OP_Utils::evalOpParm(mySamplediv, node, "samplediv", time, 0);
101  else mySamplediv = 10;
102  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())!=0)))) ) )
103  OP_Utils::evalOpParm(myDivs, node, "divs", time, 0);
104  else myDivs = UT_Vector3I(10,10,10);
105  if (true && ( (!(((getFixedresample()==0))||((int64(getUniformsamples())!=5)))) ) )
106  OP_Utils::evalOpParm(myDivsize, node, "divsize", time, 0);
107  else myDivsize = 0.1;
108  if (true && ( (!(((getFixedresample()==1)))) ) )
109  OP_Utils::evalOpParm(myScale, node, "scale", time, 0);
110  else myScale = 1;
111  if (true)
112  OP_Utils::evalOpParm(myDetect2d, node, "detect2d", time, 0);
113  else myDetect2d = true;
114 
115  }
116 
117 
118  virtual void loadFromOpSubclass(const LoadParms &loadparms)
119  {
120  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
121  }
122 
123 
124  virtual void copyFrom(const SOP_NodeParms *src)
125  {
126  *this = *((const SOP_VolumeResampleParms *)src);
127  }
128 
129  template <typename T>
130  void
131  doGetParmValue(exint idx, T &value) const
132  {
133  switch (idx)
134  {
135  case 0:
136  coerceValue(value, myGroup);
137  break;
138  case 1:
139  coerceValue(value, myFilter);
140  break;
141  case 2:
142  coerceValue(value, myFilterscale);
143  break;
144  case 3:
145  coerceValue(value, myFixedresample);
146  break;
147  case 4:
148  coerceValue(value, myUniformsamples);
149  break;
150  case 5:
151  coerceValue(value, mySamplediv);
152  break;
153  case 6:
154  coerceValue(value, myDivs);
155  break;
156  case 7:
157  coerceValue(value, myDivsize);
158  break;
159  case 8:
160  coerceValue(value, myScale);
161  break;
162  case 9:
163  coerceValue(value, myDetect2d);
164  break;
165 
166  }
167  }
168 
169  void getParmValue(exint idx, exint &value) const
170  { doGetParmValue(idx, value); }
171  void getParmValue(exint idx, fpreal &value) const
172  { doGetParmValue(idx, value); }
174  { doGetParmValue(idx, value); }
176  { doGetParmValue(idx, value); }
178  { doGetParmValue(idx, value); }
180  { doGetParmValue(idx, value); }
182  { doGetParmValue(idx, value); }
184  { doGetParmValue(idx, value); }
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
190  { doGetParmValue(idx, value); }
191 
192  template <typename T>
193  void
194  doSetParmValue(exint idx, const T &value)
195  {
196  switch (idx)
197  {
198  case 0:
199  coerceValue(myGroup, value);
200  break;
201  case 1:
202  coerceValue(myFilter, value);
203  break;
204  case 2:
205  coerceValue(myFilterscale, value);
206  break;
207  case 3:
208  coerceValue(myFixedresample, value);
209  break;
210  case 4:
211  coerceValue(myUniformsamples, value);
212  break;
213  case 5:
214  coerceValue(mySamplediv, value);
215  break;
216  case 6:
217  coerceValue(myDivs, value);
218  break;
219  case 7:
220  coerceValue(myDivsize, value);
221  break;
222  case 8:
223  coerceValue(myScale, value);
224  break;
225  case 9:
226  coerceValue(myDetect2d, value);
227  break;
228 
229  }
230  }
231 
232  void setParmValue(exint idx, const exint &value)
233  { doSetParmValue(idx, value); }
234  void setParmValue(exint idx, const fpreal &value)
235  { doSetParmValue(idx, value); }
236  void setParmValue(exint idx, const UT_Vector2D &value)
237  { doSetParmValue(idx, value); }
238  void setParmValue(exint idx, const UT_Vector3D &value)
239  { doSetParmValue(idx, value); }
240  void setParmValue(exint idx, const UT_Vector4D &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const UT_Matrix2D &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Matrix3D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Matrix4D &value)
247  { doSetParmValue(idx, value); }
249  { doSetParmValue(idx, value); }
251  { doSetParmValue(idx, value); }
253  { doSetParmValue(idx, value); }
254 
255  virtual exint getNumParms() const
256  {
257  return 10;
258  }
259 
260  virtual const char *getParmName(exint fieldnum) const
261  {
262  switch (fieldnum)
263  {
264  case 0:
265  return "group";
266  case 1:
267  return "filter";
268  case 2:
269  return "filterscale";
270  case 3:
271  return "fixedresample";
272  case 4:
273  return "uniformsamples";
274  case 5:
275  return "samplediv";
276  case 6:
277  return "divs";
278  case 7:
279  return "divsize";
280  case 8:
281  return "scale";
282  case 9:
283  return "detect2d";
284 
285  }
286  return 0;
287  }
288 
289  virtual ParmType getParmType(exint fieldnum) const
290  {
291  switch (fieldnum)
292  {
293  case 0:
294  return PARM_STRING;
295  case 1:
296  return PARM_STRING;
297  case 2:
298  return PARM_FLOAT;
299  case 3:
300  return PARM_INTEGER;
301  case 4:
302  return PARM_INTEGER;
303  case 5:
304  return PARM_INTEGER;
305  case 6:
306  return PARM_VECTOR3;
307  case 7:
308  return PARM_FLOAT;
309  case 8:
310  return PARM_FLOAT;
311  case 9:
312  return PARM_INTEGER;
313 
314  }
315  return PARM_UNSUPPORTED;
316  }
317 
318  // Boiler plate to load individual types.
319  static void loadData(UT_IStream &is, int64 &v)
320  { is.bread(&v, 1); }
321  static void loadData(UT_IStream &is, bool &v)
322  { int64 iv; is.bread(&iv, 1); v = iv; }
323  static void loadData(UT_IStream &is, fpreal64 &v)
324  { is.bread<fpreal64>(&v, 1); }
325  static void loadData(UT_IStream &is, UT_Vector2D &v)
326  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
327  static void loadData(UT_IStream &is, UT_Vector3D &v)
328  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
329  is.bread<fpreal64>(&v.z(), 1); }
330  static void loadData(UT_IStream &is, UT_Vector4D &v)
331  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
332  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
333  static void loadData(UT_IStream &is, UT_Matrix2D &v)
334  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
335  static void loadData(UT_IStream &is, UT_Matrix3D &v)
336  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
337  static void loadData(UT_IStream &is, UT_Matrix4D &v)
338  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
339  static void loadData(UT_IStream &is, UT_Vector2I &v)
340  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
341  static void loadData(UT_IStream &is, UT_Vector3I &v)
342  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
343  is.bread<int64>(&v.z(), 1); }
344  static void loadData(UT_IStream &is, UT_Vector4I &v)
345  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
346  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
348  { is.bread(v); }
350  { UT_StringHolder rampdata;
351  loadData(is, rampdata);
352  if (rampdata.isstring())
353  {
354  v.reset(new UT_Ramp());
355  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
356  v->load(istr);
357  }
358  else v.reset();
359  }
362  loadData(is, data);
363  if (data.isstring())
364  {
365  // Find the data type.
366  char *colon = UT_StringWrap(data).findChar(':');
367  if (colon)
368  {
369  int typelen = colon - data.buffer();
371  type.strncpy(data.buffer(), typelen);
372  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
373 
374  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
375  }
376  }
377  else v.reset();
378  }
379 
380  static void saveData(std::ostream &os, int64 v)
381  { UTwrite(os, &v); }
382  static void saveData(std::ostream &os, bool v)
383  { int64 iv = v; UTwrite(os, &iv); }
384  static void saveData(std::ostream &os, fpreal64 v)
385  { UTwrite<fpreal64>(os, &v); }
386  static void saveData(std::ostream &os, UT_Vector2D v)
387  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
388  static void saveData(std::ostream &os, UT_Vector3D v)
389  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
390  UTwrite<fpreal64>(os, &v.z()); }
391  static void saveData(std::ostream &os, UT_Vector4D v)
392  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
393  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
394  static void saveData(std::ostream &os, UT_Matrix2D v)
396  static void saveData(std::ostream &os, UT_Matrix3D v)
398  static void saveData(std::ostream &os, UT_Matrix4D v)
400  static void saveData(std::ostream &os, UT_StringHolder s)
401  { UT_StringWrap(s).saveBinary(os); }
402  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
403  { UT_StringHolder result;
404  UT_OStringStream ostr;
405  if (s) s->save(ostr);
406  result = ostr.str();
407  saveData(os, result);
408  }
409  static void saveData(std::ostream &os, PRM_DataItemHandle s)
410  { UT_StringHolder result;
411  UT_OStringStream ostr;
412  if (s)
413  {
414  ostr << s->getDataTypeToken();
415  ostr << ":";
416  s->saveBinary(ostr);
417  }
418  result = ostr.str();
419  saveData(os, result);
420  }
421 
422 
423  void save(std::ostream &os) const
424  {
425  int32 v = version();
426  UTwrite(os, &v);
427  saveData(os, myGroup);
428  saveData(os, myFilter);
429  saveData(os, myFilterscale);
430  saveData(os, myFixedresample);
431  saveData(os, myUniformsamples);
432  saveData(os, mySamplediv);
433  saveData(os, myDivs);
434  saveData(os, myDivsize);
435  saveData(os, myScale);
436  saveData(os, myDetect2d);
437 
438  }
439 
440  bool load(UT_IStream &is)
441  {
442  int32 v;
443  is.bread(&v, 1);
444  if (version() != v)
445  {
446  // Fail incompatible versions
447  return false;
448  }
449  loadData(is, myGroup);
450  loadData(is, myFilter);
451  loadData(is, myFilterscale);
452  loadData(is, myFixedresample);
453  loadData(is, myUniformsamples);
454  loadData(is, mySamplediv);
455  loadData(is, myDivs);
456  loadData(is, myDivsize);
457  loadData(is, myScale);
458  loadData(is, myDetect2d);
459 
460  return true;
461  }
462 
463  const UT_StringHolder & getGroup() const { return myGroup; }
464  void setGroup(const UT_StringHolder & val) { myGroup = val; }
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getGroup();
469  UT_StringHolder result;
470  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
471  return result;
472  }
473  const UT_StringHolder & getFilter() const { return myFilter; }
474  void setFilter(const UT_StringHolder & val) { myFilter = val; }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getFilter();
479  UT_StringHolder result;
480  OP_Utils::evalOpParm(result, thissop, "filter", cookparms.getCookTime(), 0);
481  return result;
482  }
483  fpreal64 getFilterscale() const { return myFilterscale; }
484  void setFilterscale(fpreal64 val) { myFilterscale = val; }
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getFilterscale();
489  fpreal64 result;
490  OP_Utils::evalOpParm(result, thissop, "filterscale", cookparms.getCookTime(), 0);
491  return result;
492  }
493  bool getFixedresample() const { return myFixedresample; }
494  void setFixedresample(bool val) { myFixedresample = val; }
495  bool opFixedresample(const SOP_NodeVerb::CookParms &cookparms) const
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getFixedresample();
499  bool result;
500  OP_Utils::evalOpParm(result, thissop, "fixedresample", cookparms.getCookTime(), 0);
501  return result;
502  }
503  Uniformsamples getUniformsamples() const { return Uniformsamples(myUniformsamples); }
504  void setUniformsamples(Uniformsamples val) { myUniformsamples = int64(val); }
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getUniformsamples();
509  int64 result;
510  OP_Utils::evalOpParm(result, thissop, "uniformsamples", cookparms.getCookTime(), 0);
511  return Uniformsamples(result);
512  }
513  int64 getSamplediv() const { return mySamplediv; }
514  void setSamplediv(int64 val) { mySamplediv = val; }
515  int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getSamplediv();
519  int64 result;
520  OP_Utils::evalOpParm(result, thissop, "samplediv", cookparms.getCookTime(), 0);
521  return result;
522  }
523  UT_Vector3I getDivs() const { return myDivs; }
524  void setDivs(UT_Vector3I val) { myDivs = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getDivs();
529  UT_Vector3I result;
530  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
531  return result;
532  }
533  fpreal64 getDivsize() const { return myDivsize; }
534  void setDivsize(fpreal64 val) { myDivsize = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getDivsize();
539  fpreal64 result;
540  OP_Utils::evalOpParm(result, thissop, "divsize", cookparms.getCookTime(), 0);
541  return result;
542  }
543  fpreal64 getScale() const { return myScale; }
544  void setScale(fpreal64 val) { myScale = val; }
545  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getScale();
549  fpreal64 result;
550  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
551  return result;
552  }
553  bool getDetect2d() const { return myDetect2d; }
554  void setDetect2d(bool val) { myDetect2d = val; }
555  bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getDetect2d();
559  bool result;
560  OP_Utils::evalOpParm(result, thissop, "detect2d", cookparms.getCookTime(), 0);
561  return result;
562  }
563 
564 private:
565  UT_StringHolder myGroup;
566  UT_StringHolder myFilter;
567  fpreal64 myFilterscale;
568  bool myFixedresample;
569  int64 myUniformsamples;
570  int64 mySamplediv;
571  UT_Vector3I myDivs;
572  fpreal64 myDivsize;
573  fpreal64 myScale;
574  bool myDetect2d;
575 
576 };
virtual ParmType getParmType(exint fieldnum) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void doSetParmValue(exint idx, const T &value)
static void loadData(UT_IStream &is, bool &v)
void setParmValue(exint idx, const UT_Vector2D &value)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
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
const GLdouble * v
Definition: glcorearb.h:836
void getParmValue(exint idx, UT_Matrix3D &value) const
virtual void copyFrom(const SOP_NodeParms *src)
Uniformsamples opUniformsamples(const SOP_NodeVerb::CookParms &cookparms) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
void setParmValue(exint idx, const fpreal &value)
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 setParmValue(exint idx, const UT_StringHolder &value)
static void loadData(UT_IStream &is, UT_Vector3D &v)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
virtual const char * getParmName(exint fieldnum) const
UT_Vector3T< int64 > UT_Vector3I
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
bool operator!=(const SOP_VolumeResampleParms &src) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector4I &v)
Uniformsamples getUniformsamples() const
void getParmValue(exint idx, UT_Matrix2D &value) const
bool operator==(const SOP_VolumeResampleParms &src) const
void getParmValue(exint idx, exint &value) const
void setParmValue(exint idx, const UT_Matrix2D &value)
static void saveData(std::ostream &os, bool v)
void setUniformsamples(Uniformsamples val)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
const UT_StringHolder & getFilter() const
void setParmValue(exint idx, const UT_Vector4D &value)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
fpreal64 opDivsize(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
void getParmValue(exint idx, fpreal &value) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
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
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
void getParmValue(exint idx, PRM_DataItemHandle &value) const
int64 exint
Definition: SYS_Types.h:116
UT_Vector3I opDivs(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
void setParmValue(exint idx, const UT_Vector3D &value)
static void saveData(std::ostream &os, UT_Vector4D v)
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)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
GLboolean * data
Definition: glcorearb.h:130
void getParmValue(exint idx, UT_Vector2D &value) const
bool opDetect2d(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
void doGetParmValue(exint idx, T &value) const
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:111
static void loadData(UT_IStream &is, UT_StringHolder &v)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void setParmValue(exint idx, const exint &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
static void saveData(std::ostream &os, UT_Matrix3D v)
double fpreal
Definition: SYS_Types.h:270
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, int64 &v)
int64 opSamplediv(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix4D &value) const
virtual exint getNumParms() const
void setParmValue(exint idx, const UT_Matrix3D &value)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, fpreal64 &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
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:665
#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)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
#define SIZE
Definition: simple.C:40
T & y(void)
Definition: UT_Vector2.h:287
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLboolean r
Definition: glcorearb.h:1221
void setParmValue(exint idx, const UT_Matrix4D &value)
T & w(void)
Definition: UT_Vector4.h:381
static void saveData(std::ostream &os, UT_Matrix2D v)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void getParmValue(exint idx, UT_StringHolder &value) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void getParmValue(exint idx, UT_Vector3D &value) const
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getParmValue(exint idx, UT_Vector4D &value) const
void setFilter(const UT_StringHolder &val)
GLenum src
Definition: glcorearb.h:1792