HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_ExtractTransform.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_ExtractTransformEnums
24 {
25  enum class PieceAttribClass
26  {
27  PRIMITIVE = 0,
28  POINT
29  };
30  enum class ExtractionMethod
31  {
32  RIGID = 0,
35  };
36  enum class OutputAttribs
37  {
38  INSTANCEATTRS = 0,
39  MATRIX3,
40  MATRIX4
41  };
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myUsePieceAttrib = false;
53  myPieceAttrib = "name"_sh;
54  myPieceAttribClass = 0;
55  myExtractionMethod = 0;
56  myOutputAttribs = 0;
57  myComputeDistortion = false;
58  myDistortionAttrib = "distortion"_sh;
59 
60  }
61 
62  explicit SOP_ExtractTransformParms(const SOP_ExtractTransformParms &) = default;
63 
65 
67  {
68  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
69  if (myPieceAttrib != src.myPieceAttrib) return false;
70  if (myPieceAttribClass != src.myPieceAttribClass) return false;
71  if (myExtractionMethod != src.myExtractionMethod) return false;
72  if (myOutputAttribs != src.myOutputAttribs) return false;
73  if (myComputeDistortion != src.myComputeDistortion) return false;
74  if (myDistortionAttrib != src.myDistortionAttrib) return false;
75 
76  return true;
77  }
79  {
80  return !operator==(src);
81  }
85 
86 
87 
88  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
89  {
90  myUsePieceAttrib = false;
91  if (true)
92  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
93  myPieceAttrib = "name"_sh;
94  if (true && ( (!(((getUsePieceAttrib()==0)))) ) )
95  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
96  myPieceAttribClass = 0;
97  if (true && ( (!(((getUsePieceAttrib()==0)))) ) )
98  graph->evalOpParm(myPieceAttribClass, nodeidx, "pieceattribclass", time, 0);
99  myExtractionMethod = 0;
100  if (true)
101  graph->evalOpParm(myExtractionMethod, nodeidx, "extractionmethod", time, 0);
102  myOutputAttribs = 0;
103  if (true)
104  graph->evalOpParm(myOutputAttribs, nodeidx, "outputattribs", time, 0);
105  myComputeDistortion = false;
106  if (true)
107  graph->evalOpParm(myComputeDistortion, nodeidx, "computedistortion", time, 0);
108  myDistortionAttrib = "distortion"_sh;
109  if (true && ( (!(((getComputeDistortion()==0)))) ) )
110  graph->evalOpParm(myDistortionAttrib, nodeidx, "distortionattrib", time, 0);
111 
112  }
113 
114 
115  void loadFromOpSubclass(const LoadParms &loadparms) override
116  {
117  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
118  }
119 
120 
121  void copyFrom(const SOP_NodeParms *src) override
122  {
123  *this = *((const SOP_ExtractTransformParms *)src);
124  }
125 
126  template <typename T>
127  void
128  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
129  {
130  if (idx.size() < 1)
131  return;
132  UT_ASSERT(idx.size() == instance.size()+1);
133  if (idx.size() != instance.size()+1)
134  return;
135  switch (idx[0])
136  {
137  case 0:
138  coerceValue(value, myUsePieceAttrib);
139  break;
140  case 1:
141  coerceValue(value, myPieceAttrib);
142  break;
143  case 2:
144  coerceValue(value, myPieceAttribClass);
145  break;
146  case 3:
147  coerceValue(value, myExtractionMethod);
148  break;
149  case 4:
150  coerceValue(value, myOutputAttribs);
151  break;
152  case 5:
153  coerceValue(value, myComputeDistortion);
154  break;
155  case 6:
156  coerceValue(value, myDistortionAttrib);
157  break;
158 
159  }
160  }
161 
162  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
183  { doGetParmValue(idx, instance, value); }
184 
185  template <typename T>
186  void
187  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
188  {
189  if (idx.size() < 1)
190  return;
191  UT_ASSERT(idx.size() == instance.size()+1);
192  if (idx.size() != instance.size()+1)
193  return;
194  switch (idx[0])
195  {
196  case 0:
197  coerceValue(myUsePieceAttrib, value);
198  break;
199  case 1:
200  coerceValue(myPieceAttrib, value);
201  break;
202  case 2:
203  coerceValue(myPieceAttribClass, value);
204  break;
205  case 3:
206  coerceValue(myExtractionMethod, value);
207  break;
208  case 4:
209  coerceValue(myOutputAttribs, value);
210  break;
211  case 5:
212  coerceValue(myComputeDistortion, value);
213  break;
214  case 6:
215  coerceValue(myDistortionAttrib, value);
216  break;
217 
218  }
219  }
220 
221  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
242  { doSetParmValue(idx, instance, value); }
243 
244  exint getNestNumParms(TempIndex idx) const override
245  {
246  if (idx.size() == 0)
247  return 7;
248  switch (idx[0])
249  {
250 
251  }
252  // Invalid
253  return 0;
254  }
255 
256  const char *getNestParmName(TempIndex fieldnum) const override
257  {
258  if (fieldnum.size() < 1)
259  return 0;
260  switch (fieldnum[0])
261  {
262  case 0:
263  return "usepieceattrib";
264  case 1:
265  return "pieceattrib";
266  case 2:
267  return "pieceattribclass";
268  case 3:
269  return "extractionmethod";
270  case 4:
271  return "outputattribs";
272  case 5:
273  return "computedistortion";
274  case 6:
275  return "distortionattrib";
276 
277  }
278  return 0;
279  }
280 
281  ParmType getNestParmType(TempIndex fieldnum) const override
282  {
283  if (fieldnum.size() < 1)
284  return PARM_UNSUPPORTED;
285  switch (fieldnum[0])
286  {
287  case 0:
288  return PARM_INTEGER;
289  case 1:
290  return PARM_STRING;
291  case 2:
292  return PARM_INTEGER;
293  case 3:
294  return PARM_INTEGER;
295  case 4:
296  return PARM_INTEGER;
297  case 5:
298  return PARM_INTEGER;
299  case 6:
300  return PARM_STRING;
301 
302  }
303  return PARM_UNSUPPORTED;
304  }
305 
306  // Boiler plate to load individual types.
307  static void loadData(UT_IStream &is, int64 &v)
308  { is.bread(&v, 1); }
309  static void loadData(UT_IStream &is, bool &v)
310  { int64 iv; is.bread(&iv, 1); v = iv; }
311  static void loadData(UT_IStream &is, fpreal64 &v)
312  { is.bread<fpreal64>(&v, 1); }
313  static void loadData(UT_IStream &is, UT_Vector2D &v)
314  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector3D &v)
316  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
317  is.bread<fpreal64>(&v.z(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector4D &v)
319  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
320  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
321  static void loadData(UT_IStream &is, UT_Matrix2D &v)
322  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
323  static void loadData(UT_IStream &is, UT_Matrix3D &v)
324  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
325  static void loadData(UT_IStream &is, UT_Matrix4D &v)
326  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
327  static void loadData(UT_IStream &is, UT_Vector2I &v)
328  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
329  static void loadData(UT_IStream &is, UT_Vector3I &v)
330  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
331  is.bread<int64>(&v.z(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector4I &v)
333  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
334  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
336  { is.bread(v); }
338  { UT_StringHolder rampdata;
339  loadData(is, rampdata);
340  if (rampdata.isstring())
341  {
342  v.reset(new UT_Ramp());
343  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
344  v->load(istr);
345  }
346  else v.reset();
347  }
350  loadData(is, data);
351  if (data.isstring())
352  {
353  // Find the data type.
354  const char *colon = UT_StringWrap(data).findChar(':');
355  if (colon)
356  {
357  int typelen = colon - data.buffer();
359  type.strncpy(data.buffer(), typelen);
360  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
361 
362  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
363  }
364  }
365  else v.reset();
366  }
367 
368  static void saveData(std::ostream &os, int64 v)
369  { UTwrite(os, &v); }
370  static void saveData(std::ostream &os, bool v)
371  { int64 iv = v; UTwrite(os, &iv); }
372  static void saveData(std::ostream &os, fpreal64 v)
373  { UTwrite<fpreal64>(os, &v); }
374  static void saveData(std::ostream &os, UT_Vector2D v)
375  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
376  static void saveData(std::ostream &os, UT_Vector3D v)
377  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
378  UTwrite<fpreal64>(os, &v.z()); }
379  static void saveData(std::ostream &os, UT_Vector4D v)
380  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
381  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
382  static void saveData(std::ostream &os, UT_Matrix2D v)
384  static void saveData(std::ostream &os, UT_Matrix3D v)
386  static void saveData(std::ostream &os, UT_Matrix4D v)
388  static void saveData(std::ostream &os, UT_StringHolder s)
389  { UT_StringWrap(s).saveBinary(os); }
390  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
392  UT_OStringStream ostr;
393  if (s) s->save(ostr);
394  result = ostr.str();
395  saveData(os, result);
396  }
397  static void saveData(std::ostream &os, PRM_DataItemHandle s)
399  UT_OStringStream ostr;
400  if (s)
401  {
402  ostr << s->getDataTypeToken();
403  ostr << ":";
404  s->saveBinary(ostr);
405  }
406  result = ostr.str();
407  saveData(os, result);
408  }
409 
410 
411  void save(std::ostream &os) const
412  {
413  int32 v = version();
414  UTwrite(os, &v);
415  saveData(os, myUsePieceAttrib);
416  saveData(os, myPieceAttrib);
417  saveData(os, myPieceAttribClass);
418  saveData(os, myExtractionMethod);
419  saveData(os, myOutputAttribs);
420  saveData(os, myComputeDistortion);
421  saveData(os, myDistortionAttrib);
422 
423  }
424 
425  bool load(UT_IStream &is)
426  {
427  int32 v;
428  is.bread(&v, 1);
429  if (version() != v)
430  {
431  // Fail incompatible versions
432  return false;
433  }
434  loadData(is, myUsePieceAttrib);
435  loadData(is, myPieceAttrib);
436  loadData(is, myPieceAttribClass);
437  loadData(is, myExtractionMethod);
438  loadData(is, myOutputAttribs);
439  loadData(is, myComputeDistortion);
440  loadData(is, myDistortionAttrib);
441 
442  return true;
443  }
444 
445  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
446  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
447  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
448  {
449  SOP_Node *thissop = cookparms.getNode();
450  if (!thissop) return getUsePieceAttrib();
451  bool result;
452  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
453  return result;
454  }
455  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
456  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
458  {
459  SOP_Node *thissop = cookparms.getNode();
460  if (!thissop) return getPieceAttrib();
462  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
463  return result;
464  }
465  PieceAttribClass getPieceAttribClass() const { return PieceAttribClass(myPieceAttribClass); }
466  void setPieceAttribClass(PieceAttribClass val) { myPieceAttribClass = int64(val); }
468  {
469  SOP_Node *thissop = cookparms.getNode();
470  if (!thissop) return getPieceAttribClass();
471  int64 result;
472  OP_Utils::evalOpParm(result, thissop, "pieceattribclass", cookparms.getCookTime(), 0);
473  return PieceAttribClass(result);
474  }
475  ExtractionMethod getExtractionMethod() const { return ExtractionMethod(myExtractionMethod); }
476  void setExtractionMethod(ExtractionMethod val) { myExtractionMethod = int64(val); }
478  {
479  SOP_Node *thissop = cookparms.getNode();
480  if (!thissop) return getExtractionMethod();
481  int64 result;
482  OP_Utils::evalOpParm(result, thissop, "extractionmethod", cookparms.getCookTime(), 0);
483  return ExtractionMethod(result);
484  }
485  OutputAttribs getOutputAttribs() const { return OutputAttribs(myOutputAttribs); }
486  void setOutputAttribs(OutputAttribs val) { myOutputAttribs = int64(val); }
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getOutputAttribs();
491  int64 result;
492  OP_Utils::evalOpParm(result, thissop, "outputattribs", cookparms.getCookTime(), 0);
493  return OutputAttribs(result);
494  }
495  bool getComputeDistortion() const { return myComputeDistortion; }
496  void setComputeDistortion(bool val) { myComputeDistortion = val; }
497  bool opComputeDistortion(const SOP_NodeVerb::CookParms &cookparms) const
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getComputeDistortion();
501  bool result;
502  OP_Utils::evalOpParm(result, thissop, "computedistortion", cookparms.getCookTime(), 0);
503  return result;
504  }
505  const UT_StringHolder & getDistortionAttrib() const { return myDistortionAttrib; }
506  void setDistortionAttrib(const UT_StringHolder & val) { myDistortionAttrib = val; }
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getDistortionAttrib();
512  OP_Utils::evalOpParm(result, thissop, "distortionattrib", cookparms.getCookTime(), 0);
513  return result;
514  }
515 
516 private:
517  bool myUsePieceAttrib;
518  UT_StringHolder myPieceAttrib;
519  int64 myPieceAttribClass;
520  int64 myExtractionMethod;
521  int64 myOutputAttribs;
522  bool myComputeDistortion;
523  UT_StringHolder myDistortionAttrib;
524 
525 };
GLdouble s
Definition: glew.h:1390
bool operator==(const SOP_ExtractTransformParms &src) const
void setExtractionMethod(ExtractionMethod val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector2I &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
void copyFrom(const SOP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
ExtractionMethod opExtractionMethod(const SOP_NodeVerb::CookParms &cookparms) const
GLuint const GLfloat * val
Definition: glew.h:2794
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
PieceAttribClass getPieceAttribClass() const
int64 exint
Definition: SYS_Types.h:125
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const GLdouble * v
Definition: glew.h:1391
static void saveData(std::ostream &os, UT_Matrix4D v)
PieceAttribClass opPieceAttribClass(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
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, int64 &v)
static void loadData(UT_IStream &is, bool &v)
OutputAttribs getOutputAttribs() const
UT_StringHolder opDistortionAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void setPieceAttrib(const UT_StringHolder &val)
OutputAttribs opOutputAttribs(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getDistortionAttrib() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
double fpreal64
Definition: SYS_Types.h:201
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setOutputAttribs(OutputAttribs val)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
static void saveData(std::ostream &os, int64 v)
void setPieceAttribClass(PieceAttribClass val)
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
const GLfloat * c
Definition: glew.h:16296
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_Vector3D v)
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool opComputeDistortion(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opPieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, UT_Vector2D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
bool operator!=(const SOP_ExtractTransformParms &src) const
fpreal64 fpreal
Definition: SYS_Types.h:277
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, fpreal64 &v)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
ExtractionMethod getExtractionMethod() const
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const UT_StringHolder & getPieceAttrib() const
void setDistortionAttrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
const char * getNestParmName(TempIndex fieldnum) const override