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 <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_ExtractTransformEnums
24 {
25  enum class PieceAttribClass
26  {
27  PRIMITIVE = 0,
28  POINT
29  };
30 
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case PieceAttribClass::PRIMITIVE: return "primitive"_sh;
37  case PieceAttribClass::POINT: return "point"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class ExtractionMethod
43  {
44  RIGID = 0,
47  FULL
48  };
49 
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case ExtractionMethod::RIGID: return "rigid"_sh;
56  case ExtractionMethod::UNIFORMSCALE: return "uniformscale"_sh;
57  case ExtractionMethod::NONUNIFORMSCALE: return "nonuniformscale"_sh;
58  case ExtractionMethod::FULL: return "full"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63  enum class OutputAttribs
64  {
65  INSTANCEATTRS = 0,
66  MATRIX3,
67  MATRIX4
68  };
69 
71  getToken(OutputAttribs enum_value)
72  {
73  using namespace UT::Literal;
74  switch (enum_value) {
75  case OutputAttribs::INSTANCEATTRS: return "instanceattrs"_sh;
76  case OutputAttribs::MATRIX3: return "matrix3"_sh;
77  case OutputAttribs::MATRIX4: return "matrix4"_sh;
78  default: UT_ASSERT(false); return ""_sh;
79  }
80  }
81 
82 }
83 
84 
86 {
87 public:
88  static int version() { return 1; }
89 
91  {
92  myUsePieceAttrib = false;
93  myPieceAttrib = "name"_UTsh;
94  myPieceAttribClass = 0;
95  myExtractionMethod = 0;
96  myOutputAttribs = 0;
97  myComputeDistortion = false;
98  myDistortionAttrib = "distortion"_UTsh;
99 
100  }
101 
102  explicit SOP_ExtractTransformParms(const SOP_ExtractTransformParms &) = default;
105  SOP_ExtractTransformParms &operator=(SOP_ExtractTransformParms &&) noexcept = default;
106 
108 
110  {
111  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
112  if (myPieceAttrib != src.myPieceAttrib) return false;
113  if (myPieceAttribClass != src.myPieceAttribClass) return false;
114  if (myExtractionMethod != src.myExtractionMethod) return false;
115  if (myOutputAttribs != src.myOutputAttribs) return false;
116  if (myComputeDistortion != src.myComputeDistortion) return false;
117  if (myDistortionAttrib != src.myDistortionAttrib) return false;
118 
119 
120  if (baseGetSignature() != src.baseGetSignature()) return false;
121 
122  return true;
123  }
125  {
126  return !operator==(src);
127  }
131 
132 
133 
134  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
135  {
136  myUsePieceAttrib = false;
137  if (true)
138  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, graph->isDirect()?nullptr:depnode);
139  myPieceAttrib = "name"_UTsh;
140  if (true && ( (true&&!(((getUsePieceAttrib()==0)))) ) )
141  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, graph->isDirect()?nullptr:depnode);
142  myPieceAttribClass = 0;
143  if (true && ( (true&&!(((getUsePieceAttrib()==0)))) ) )
144  graph->evalOpParm(myPieceAttribClass, nodeidx, "pieceattribclass", time, graph->isDirect()?nullptr:depnode);
145  myExtractionMethod = 0;
146  if (true)
147  graph->evalOpParm(myExtractionMethod, nodeidx, "extractionmethod", time, graph->isDirect()?nullptr:depnode);
148  myOutputAttribs = 0;
149  if (true)
150  graph->evalOpParm(myOutputAttribs, nodeidx, "outputattribs", time, graph->isDirect()?nullptr:depnode);
151  myComputeDistortion = false;
152  if (true)
153  graph->evalOpParm(myComputeDistortion, nodeidx, "computedistortion", time, graph->isDirect()?nullptr:depnode);
154  myDistortionAttrib = "distortion"_UTsh;
155  if (true && ( (true&&!(((getComputeDistortion()==0)))) ) )
156  graph->evalOpParm(myDistortionAttrib, nodeidx, "distortionattrib", time, graph->isDirect()?nullptr:depnode);
157 
158  }
159 
160 
161  void loadFromOpSubclass(const LoadParms &loadparms) override
162  {
163  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
164  }
165 
166 
167  void copyFrom(const OP_NodeParms *src) override
168  {
169  *this = *((const SOP_ExtractTransformParms *)src);
170  }
171 
172  template <typename T>
173  void
174  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
175  {
176  if (idx.size() < 1)
177  return;
178  UT_ASSERT(idx.size() == instance.size()+1);
179  if (idx.size() != instance.size()+1)
180  return;
181  switch (idx[0])
182  {
183  case 0:
184  coerceValue(value, myUsePieceAttrib);
185  break;
186  case 1:
187  coerceValue(value, myPieceAttrib);
188  break;
189  case 2:
190  coerceValue(value, myPieceAttribClass);
191  break;
192  case 3:
193  coerceValue(value, myExtractionMethod);
194  break;
195  case 4:
196  coerceValue(value, myOutputAttribs);
197  break;
198  case 5:
199  coerceValue(value, myComputeDistortion);
200  break;
201  case 6:
202  coerceValue(value, myDistortionAttrib);
203  break;
204 
205  }
206  }
207 
208  bool isParmColorRamp(exint idx) const override
209  {
210  switch (idx)
211  {
212 
213  }
214  return false;
215  }
216 
217  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
228  { doGetParmValue(idx, instance, value); }
229  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
230  { doGetParmValue(idx, instance, value); }
231  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
232  { doGetParmValue(idx, instance, value); }
233  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
234  { doGetParmValue(idx, instance, value); }
235  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
236  { doGetParmValue(idx, instance, value); }
237  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
238  { doGetParmValue(idx, instance, value); }
239 
240  template <typename T>
241  void
242  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
243  {
244  if (idx.size() < 1)
245  return;
246  UT_ASSERT(idx.size() == instance.size()+1);
247  if (idx.size() != instance.size()+1)
248  return;
249  switch (idx[0])
250  {
251  case 0:
252  coerceValue(myUsePieceAttrib, ( ( value ) ));
253  break;
254  case 1:
255  coerceValue(myPieceAttrib, ( ( value ) ));
256  break;
257  case 2:
258  coerceValue(myPieceAttribClass, clampMinValue(0, clampMaxValue(1, value ) ));
259  break;
260  case 3:
261  coerceValue(myExtractionMethod, clampMinValue(0, clampMaxValue(3, value ) ));
262  break;
263  case 4:
264  coerceValue(myOutputAttribs, clampMinValue(0, clampMaxValue(2, value ) ));
265  break;
266  case 5:
267  coerceValue(myComputeDistortion, ( ( value ) ));
268  break;
269  case 6:
270  coerceValue(myDistortionAttrib, ( ( value ) ));
271  break;
272 
273  }
274  }
275 
276  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
297  { doSetParmValue(idx, instance, value); }
298 
299  exint getNestNumParms(TempIndex idx) const override
300  {
301  if (idx.size() == 0)
302  return 7;
303  switch (idx[0])
304  {
305 
306  }
307  // Invalid
308  return 0;
309  }
310 
311  const char *getNestParmName(TempIndex fieldnum) const override
312  {
313  if (fieldnum.size() < 1)
314  return 0;
315  switch (fieldnum[0])
316  {
317  case 0:
318  return "usepieceattrib";
319  case 1:
320  return "pieceattrib";
321  case 2:
322  return "pieceattribclass";
323  case 3:
324  return "extractionmethod";
325  case 4:
326  return "outputattribs";
327  case 5:
328  return "computedistortion";
329  case 6:
330  return "distortionattrib";
331 
332  }
333  return 0;
334  }
335 
336  ParmType getNestParmType(TempIndex fieldnum) const override
337  {
338  if (fieldnum.size() < 1)
339  return PARM_UNSUPPORTED;
340  switch (fieldnum[0])
341  {
342  case 0:
343  return PARM_INTEGER;
344  case 1:
345  return PARM_STRING;
346  case 2:
347  return PARM_INTEGER;
348  case 3:
349  return PARM_INTEGER;
350  case 4:
351  return PARM_INTEGER;
352  case 5:
353  return PARM_INTEGER;
354  case 6:
355  return PARM_STRING;
356 
357  }
358  return PARM_UNSUPPORTED;
359  }
360 
361  // Boiler plate to load individual types.
362  static void loadData(UT_IStream &is, int64 &v)
363  { is.bread(&v, 1); }
364  static void loadData(UT_IStream &is, bool &v)
365  { int64 iv; is.bread(&iv, 1); v = iv; }
366  static void loadData(UT_IStream &is, fpreal64 &v)
367  { is.bread<fpreal64>(&v, 1); }
368  static void loadData(UT_IStream &is, UT_Vector2D &v)
369  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector3D &v)
371  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
372  is.bread<fpreal64>(&v.z(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector4D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
376  static void loadData(UT_IStream &is, UT_Matrix2D &v)
377  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
378  static void loadData(UT_IStream &is, UT_Matrix3D &v)
379  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
380  static void loadData(UT_IStream &is, UT_Matrix4D &v)
381  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
382  static void loadData(UT_IStream &is, UT_Vector2I &v)
383  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
384  static void loadData(UT_IStream &is, UT_Vector3I &v)
385  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
386  is.bread<int64>(&v.z(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector4I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
391  { is.bread(v); }
393  { UT_StringHolder rampdata;
394  loadData(is, rampdata);
395  if (rampdata.isstring())
396  {
397  v.reset(new UT_Ramp());
398  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
399  v->load(istr);
400  }
401  else v.reset();
402  }
405  loadData(is, data);
406  if (data.isstring())
407  {
408  // Find the data type.
409  const char *colon = UT_StringWrap(data).findChar(':');
410  if (colon)
411  {
412  int typelen = colon - data.buffer();
414  type.strncpy(data.buffer(), typelen);
415  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
416 
417  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
418  }
419  }
420  else v.reset();
421  }
422 
423  static void saveData(std::ostream &os, int64 v)
424  { UTwrite(os, &v); }
425  static void saveData(std::ostream &os, bool v)
426  { int64 iv = v; UTwrite(os, &iv); }
427  static void saveData(std::ostream &os, fpreal64 v)
428  { UTwrite<fpreal64>(os, &v); }
429  static void saveData(std::ostream &os, UT_Vector2D v)
430  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
431  static void saveData(std::ostream &os, UT_Vector3D v)
432  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
433  UTwrite<fpreal64>(os, &v.z()); }
434  static void saveData(std::ostream &os, UT_Vector4D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
437  static void saveData(std::ostream &os, UT_Matrix2D v)
439  static void saveData(std::ostream &os, UT_Matrix3D v)
441  static void saveData(std::ostream &os, UT_Matrix4D v)
443  static void saveData(std::ostream &os, UT_StringHolder s)
444  { UT_StringWrap(s).saveBinary(os); }
445  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
447  UT_OStringStream ostr;
448  if (s) s->save(ostr);
449  result = ostr.str();
450  saveData(os, result);
451  }
452  static void saveData(std::ostream &os, PRM_DataItemHandle s)
454  UT_OStringStream ostr;
455  if (s)
456  {
457  ostr << s->getDataTypeToken();
458  ostr << ":";
459  s->saveBinary(ostr);
460  }
461  result = ostr.str();
462  saveData(os, result);
463  }
464 
465 
466  void save(std::ostream &os) const
467  {
468  int32 v = version();
469  UTwrite(os, &v);
470  saveData(os, myUsePieceAttrib);
471  saveData(os, myPieceAttrib);
472  saveData(os, myPieceAttribClass);
473  saveData(os, myExtractionMethod);
474  saveData(os, myOutputAttribs);
475  saveData(os, myComputeDistortion);
476  saveData(os, myDistortionAttrib);
477 
478  }
479 
480  bool load(UT_IStream &is)
481  {
482  int32 v;
483  is.bread(&v, 1);
484  if (version() != v)
485  {
486  // Fail incompatible versions
487  return false;
488  }
489  loadData(is, myUsePieceAttrib);
490  loadData(is, myPieceAttrib);
491  loadData(is, myPieceAttribClass);
492  loadData(is, myExtractionMethod);
493  loadData(is, myOutputAttribs);
494  loadData(is, myComputeDistortion);
495  loadData(is, myDistortionAttrib);
496 
497  return true;
498  }
499 
500  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
501  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
502  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getUsePieceAttrib();
506  bool result;
507  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
508  return result;
509  }
510  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
511  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getPieceAttrib();
517  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
518  return result;
519  }
520  PieceAttribClass getPieceAttribClass() const { return PieceAttribClass(myPieceAttribClass); }
521  void setPieceAttribClass(PieceAttribClass val) { myPieceAttribClass = int64(val); }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getPieceAttribClass();
526  int64 result;
527  OP_Utils::evalOpParm(result, thissop, "pieceattribclass", cookparms.getCookTime(), 0);
528  return PieceAttribClass(result);
529  }
530  ExtractionMethod getExtractionMethod() const { return ExtractionMethod(myExtractionMethod); }
531  void setExtractionMethod(ExtractionMethod val) { myExtractionMethod = int64(val); }
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getExtractionMethod();
536  int64 result;
537  OP_Utils::evalOpParm(result, thissop, "extractionmethod", cookparms.getCookTime(), 0);
538  return ExtractionMethod(result);
539  }
540  OutputAttribs getOutputAttribs() const { return OutputAttribs(myOutputAttribs); }
541  void setOutputAttribs(OutputAttribs val) { myOutputAttribs = int64(val); }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getOutputAttribs();
546  int64 result;
547  OP_Utils::evalOpParm(result, thissop, "outputattribs", cookparms.getCookTime(), 0);
548  return OutputAttribs(result);
549  }
550  bool getComputeDistortion() const { return myComputeDistortion; }
551  void setComputeDistortion(bool val) { myComputeDistortion = val; }
552  bool opComputeDistortion(const SOP_NodeVerb::CookParms &cookparms) const
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getComputeDistortion();
556  bool result;
557  OP_Utils::evalOpParm(result, thissop, "computedistortion", cookparms.getCookTime(), 0);
558  return result;
559  }
560  const UT_StringHolder & getDistortionAttrib() const { return myDistortionAttrib; }
561  void setDistortionAttrib(const UT_StringHolder & val) { myDistortionAttrib = val; }
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getDistortionAttrib();
567  OP_Utils::evalOpParm(result, thissop, "distortionattrib", cookparms.getCookTime(), 0);
568  return result;
569  }
570 
571 private:
572  bool myUsePieceAttrib;
573  UT_StringHolder myPieceAttrib;
574  int64 myPieceAttribClass;
575  int64 myExtractionMethod;
576  int64 myOutputAttribs;
577  bool myComputeDistortion;
578  UT_StringHolder myDistortionAttrib;
579 
580 };
bool operator==(const SOP_ExtractTransformParms &src) const
void setExtractionMethod(ExtractionMethod val)
type
Definition: core.h:556
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)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
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)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
ExtractionMethod opExtractionMethod(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
PieceAttribClass getPieceAttribClass() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
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
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
**But if you need a result
Definition: thread.h:622
static void saveData(std::ostream &os, UT_Matrix4D v)
PieceAttribClass opPieceAttribClass(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setPieceAttrib(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
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)
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:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void copyFrom(const OP_NodeParms *src) override
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
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
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:303
GT_API const UT_StringHolder version
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE UT_StringHolder getToken(PieceAttribClass enum_value)
void loadFromOpSubclass(const LoadParms &loadparms) override
bool operator!=(const SOP_ExtractTransformParms &src) const
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLboolean r
Definition: glcorearb.h:1222
ExtractionMethod getExtractionMethod() const
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const UT_StringHolder & getPieceAttrib() const
void setDistortionAttrib(const UT_StringHolder &val)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool isParmColorRamp(exint idx) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
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
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663