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