HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_TetLayer.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 class DEP_MicroNode;
23 namespace SOP_TetLayerEnums
24 {
25  enum class BuildDirection
26  {
27  INTERIOR = 0,
28  EXTERIOR
29  };
30 }
31 
32 
34 {
35 public:
36  static int version() { return 1; }
37 
39  {
40  myGroup = ""_UTsh;
41  myBuildDirection = 0;
42  myThickness = 1;
43  myEnableThicknessMultiplierAttribute = false;
44  myThicknessMultiplierAttribute = ""_UTsh;
45  myCreateBoundaryTriangles = false;
46  myCreateTets = true;
47 
48  }
49 
50  explicit SOP_TetLayerParms(const SOP_TetLayerParms &) = default;
51  SOP_TetLayerParms &operator=(const SOP_TetLayerParms &) = default;
52  SOP_TetLayerParms(SOP_TetLayerParms &&) noexcept = default;
53  SOP_TetLayerParms &operator=(SOP_TetLayerParms &&) noexcept = default;
54 
55  ~SOP_TetLayerParms() override {}
56 
57  bool operator==(const SOP_TetLayerParms &src) const
58  {
59  if (myGroup != src.myGroup) return false;
60  if (myBuildDirection != src.myBuildDirection) return false;
61  if (myThickness != src.myThickness) return false;
62  if (myEnableThicknessMultiplierAttribute != src.myEnableThicknessMultiplierAttribute) return false;
63  if (myThicknessMultiplierAttribute != src.myThicknessMultiplierAttribute) return false;
64  if (myCreateBoundaryTriangles != src.myCreateBoundaryTriangles) return false;
65  if (myCreateTets != src.myCreateTets) return false;
66 
67  return true;
68  }
69  bool operator!=(const SOP_TetLayerParms &src) const
70  {
71  return !operator==(src);
72  }
74 
75 
76 
77  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
78  {
79  myGroup = ""_UTsh;
80  if (true)
81  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
82  myBuildDirection = 0;
83  if (true)
84  graph->evalOpParm(myBuildDirection, nodeidx, "direction", time, 0);
85  myThickness = 1;
86  if (true)
87  graph->evalOpParm(myThickness, nodeidx, "thickness", time, 0);
88  myEnableThicknessMultiplierAttribute = false;
89  if (true)
90  graph->evalOpParm(myEnableThicknessMultiplierAttribute, nodeidx, "enablethicknessmultiplierattribute", time, 0);
91  myThicknessMultiplierAttribute = ""_UTsh;
92  if (true && ( (true&&!(((getEnableThicknessMultiplierAttribute()==0)))) ) )
93  graph->evalOpParm(myThicknessMultiplierAttribute, nodeidx, "thicknessmultiplierattribute", time, 0);
94  myCreateBoundaryTriangles = false;
95  if (true)
96  graph->evalOpParm(myCreateBoundaryTriangles, nodeidx, "createboundarytriangles", time, 0);
97  myCreateTets = true;
98  if (true)
99  graph->evalOpParm(myCreateTets, nodeidx, "createtets", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const OP_NodeParms *src) override
111  {
112  *this = *((const SOP_TetLayerParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myGroup);
128  break;
129  case 1:
130  coerceValue(value, myBuildDirection);
131  break;
132  case 2:
133  coerceValue(value, myThickness);
134  break;
135  case 3:
136  coerceValue(value, myEnableThicknessMultiplierAttribute);
137  break;
138  case 4:
139  coerceValue(value, myThicknessMultiplierAttribute);
140  break;
141  case 5:
142  coerceValue(value, myCreateBoundaryTriangles);
143  break;
144  case 6:
145  coerceValue(value, myCreateTets);
146  break;
147 
148  }
149  }
150 
151  bool isParmColorRamp(exint idx) const override
152  {
153  switch (idx)
154  {
155 
156  }
157  return false;
158  }
159 
160  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
181  { doGetParmValue(idx, instance, value); }
182 
183  template <typename T>
184  void
185  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
186  {
187  if (idx.size() < 1)
188  return;
189  UT_ASSERT(idx.size() == instance.size()+1);
190  if (idx.size() != instance.size()+1)
191  return;
192  switch (idx[0])
193  {
194  case 0:
195  coerceValue(myGroup, ( ( value ) ));
196  break;
197  case 1:
198  coerceValue(myBuildDirection, clampMinValue(0, clampMaxValue(1, value ) ));
199  break;
200  case 2:
201  coerceValue(myThickness, clampMinValue(0, ( value ) ));
202  break;
203  case 3:
204  coerceValue(myEnableThicknessMultiplierAttribute, ( ( value ) ));
205  break;
206  case 4:
207  coerceValue(myThicknessMultiplierAttribute, ( ( value ) ));
208  break;
209  case 5:
210  coerceValue(myCreateBoundaryTriangles, ( ( value ) ));
211  break;
212  case 6:
213  coerceValue(myCreateTets, ( ( value ) ));
214  break;
215 
216  }
217  }
218 
219  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
220  { doSetParmValue(idx, instance, value); }
221  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
240  { doSetParmValue(idx, instance, value); }
241 
242  exint getNestNumParms(TempIndex idx) const override
243  {
244  if (idx.size() == 0)
245  return 7;
246  switch (idx[0])
247  {
248 
249  }
250  // Invalid
251  return 0;
252  }
253 
254  const char *getNestParmName(TempIndex fieldnum) const override
255  {
256  if (fieldnum.size() < 1)
257  return 0;
258  switch (fieldnum[0])
259  {
260  case 0:
261  return "group";
262  case 1:
263  return "direction";
264  case 2:
265  return "thickness";
266  case 3:
267  return "enablethicknessmultiplierattribute";
268  case 4:
269  return "thicknessmultiplierattribute";
270  case 5:
271  return "createboundarytriangles";
272  case 6:
273  return "createtets";
274 
275  }
276  return 0;
277  }
278 
279  ParmType getNestParmType(TempIndex fieldnum) const override
280  {
281  if (fieldnum.size() < 1)
282  return PARM_UNSUPPORTED;
283  switch (fieldnum[0])
284  {
285  case 0:
286  return PARM_STRING;
287  case 1:
288  return PARM_INTEGER;
289  case 2:
290  return PARM_FLOAT;
291  case 3:
292  return PARM_INTEGER;
293  case 4:
294  return PARM_STRING;
295  case 5:
296  return PARM_INTEGER;
297  case 6:
298  return PARM_INTEGER;
299 
300  }
301  return PARM_UNSUPPORTED;
302  }
303 
304  // Boiler plate to load individual types.
305  static void loadData(UT_IStream &is, int64 &v)
306  { is.bread(&v, 1); }
307  static void loadData(UT_IStream &is, bool &v)
308  { int64 iv; is.bread(&iv, 1); v = iv; }
309  static void loadData(UT_IStream &is, fpreal64 &v)
310  { is.bread<fpreal64>(&v, 1); }
311  static void loadData(UT_IStream &is, UT_Vector2D &v)
312  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
313  static void loadData(UT_IStream &is, UT_Vector3D &v)
314  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
315  is.bread<fpreal64>(&v.z(), 1); }
316  static void loadData(UT_IStream &is, UT_Vector4D &v)
317  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
318  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
319  static void loadData(UT_IStream &is, UT_Matrix2D &v)
320  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
321  static void loadData(UT_IStream &is, UT_Matrix3D &v)
322  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
323  static void loadData(UT_IStream &is, UT_Matrix4D &v)
324  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
325  static void loadData(UT_IStream &is, UT_Vector2I &v)
326  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
327  static void loadData(UT_IStream &is, UT_Vector3I &v)
328  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
329  is.bread<int64>(&v.z(), 1); }
330  static void loadData(UT_IStream &is, UT_Vector4I &v)
331  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
332  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
334  { is.bread(v); }
336  { UT_StringHolder rampdata;
337  loadData(is, rampdata);
338  if (rampdata.isstring())
339  {
340  v.reset(new UT_Ramp());
341  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
342  v->load(istr);
343  }
344  else v.reset();
345  }
348  loadData(is, data);
349  if (data.isstring())
350  {
351  // Find the data type.
352  const char *colon = UT_StringWrap(data).findChar(':');
353  if (colon)
354  {
355  int typelen = colon - data.buffer();
357  type.strncpy(data.buffer(), typelen);
358  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
359 
360  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
361  }
362  }
363  else v.reset();
364  }
365 
366  static void saveData(std::ostream &os, int64 v)
367  { UTwrite(os, &v); }
368  static void saveData(std::ostream &os, bool v)
369  { int64 iv = v; UTwrite(os, &iv); }
370  static void saveData(std::ostream &os, fpreal64 v)
371  { UTwrite<fpreal64>(os, &v); }
372  static void saveData(std::ostream &os, UT_Vector2D v)
373  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
374  static void saveData(std::ostream &os, UT_Vector3D v)
375  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
376  UTwrite<fpreal64>(os, &v.z()); }
377  static void saveData(std::ostream &os, UT_Vector4D v)
378  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
379  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
380  static void saveData(std::ostream &os, UT_Matrix2D v)
382  static void saveData(std::ostream &os, UT_Matrix3D v)
384  static void saveData(std::ostream &os, UT_Matrix4D v)
386  static void saveData(std::ostream &os, UT_StringHolder s)
387  { UT_StringWrap(s).saveBinary(os); }
388  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
390  UT_OStringStream ostr;
391  if (s) s->save(ostr);
392  result = ostr.str();
393  saveData(os, result);
394  }
395  static void saveData(std::ostream &os, PRM_DataItemHandle s)
397  UT_OStringStream ostr;
398  if (s)
399  {
400  ostr << s->getDataTypeToken();
401  ostr << ":";
402  s->saveBinary(ostr);
403  }
404  result = ostr.str();
405  saveData(os, result);
406  }
407 
408 
409  void save(std::ostream &os) const
410  {
411  int32 v = version();
412  UTwrite(os, &v);
413  saveData(os, myGroup);
414  saveData(os, myBuildDirection);
415  saveData(os, myThickness);
416  saveData(os, myEnableThicknessMultiplierAttribute);
417  saveData(os, myThicknessMultiplierAttribute);
418  saveData(os, myCreateBoundaryTriangles);
419  saveData(os, myCreateTets);
420 
421  }
422 
423  bool load(UT_IStream &is)
424  {
425  int32 v;
426  is.bread(&v, 1);
427  if (version() != v)
428  {
429  // Fail incompatible versions
430  return false;
431  }
432  loadData(is, myGroup);
433  loadData(is, myBuildDirection);
434  loadData(is, myThickness);
435  loadData(is, myEnableThicknessMultiplierAttribute);
436  loadData(is, myThicknessMultiplierAttribute);
437  loadData(is, myCreateBoundaryTriangles);
438  loadData(is, myCreateTets);
439 
440  return true;
441  }
442 
443  const UT_StringHolder & getGroup() const { return myGroup; }
444  void setGroup(const UT_StringHolder & val) { myGroup = val; }
446  {
447  SOP_Node *thissop = cookparms.getNode();
448  if (!thissop) return getGroup();
450  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
451  return result;
452  }
453  BuildDirection getBuildDirection() const { return BuildDirection(myBuildDirection); }
454  void setBuildDirection(BuildDirection val) { myBuildDirection = int64(val); }
456  {
457  SOP_Node *thissop = cookparms.getNode();
458  if (!thissop) return getBuildDirection();
459  int64 result;
460  OP_Utils::evalOpParm(result, thissop, "direction", cookparms.getCookTime(), 0);
461  return BuildDirection(result);
462  }
463  fpreal64 getThickness() const { return myThickness; }
464  void setThickness(fpreal64 val) { myThickness = val; }
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getThickness();
470  OP_Utils::evalOpParm(result, thissop, "thickness", cookparms.getCookTime(), 0);
471  return result;
472  }
473  bool getEnableThicknessMultiplierAttribute() const { return myEnableThicknessMultiplierAttribute; }
474  void setEnableThicknessMultiplierAttribute(bool val) { myEnableThicknessMultiplierAttribute = val; }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getEnableThicknessMultiplierAttribute();
479  bool result;
480  OP_Utils::evalOpParm(result, thissop, "enablethicknessmultiplierattribute", cookparms.getCookTime(), 0);
481  return result;
482  }
483  const UT_StringHolder & getThicknessMultiplierAttribute() const { return myThicknessMultiplierAttribute; }
484  void setThicknessMultiplierAttribute(const UT_StringHolder & val) { myThicknessMultiplierAttribute = val; }
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getThicknessMultiplierAttribute();
490  OP_Utils::evalOpParm(result, thissop, "thicknessmultiplierattribute", cookparms.getCookTime(), 0);
491  return result;
492  }
493  bool getCreateBoundaryTriangles() const { return myCreateBoundaryTriangles; }
494  void setCreateBoundaryTriangles(bool val) { myCreateBoundaryTriangles = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getCreateBoundaryTriangles();
499  bool result;
500  OP_Utils::evalOpParm(result, thissop, "createboundarytriangles", cookparms.getCookTime(), 0);
501  return result;
502  }
503  bool getCreateTets() const { return myCreateTets; }
504  void setCreateTets(bool val) { myCreateTets = val; }
505  bool opCreateTets(const SOP_NodeVerb::CookParms &cookparms) const
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getCreateTets();
509  bool result;
510  OP_Utils::evalOpParm(result, thissop, "createtets", cookparms.getCookTime(), 0);
511  return result;
512  }
513 
514 private:
515  UT_StringHolder myGroup;
516  int64 myBuildDirection;
517  fpreal64 myThickness;
518  bool myEnableThicknessMultiplierAttribute;
519  UT_StringHolder myThicknessMultiplierAttribute;
520  bool myCreateBoundaryTriangles;
521  bool myCreateTets;
522 
523 };
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const char * getNestParmName(TempIndex fieldnum) const override
UT_StringHolder opThicknessMultiplierAttribute(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setThickness(fpreal64 val)
BuildDirection getBuildDirection() const
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setCreateTets(bool val)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
bool isParmColorRamp(exint idx) const override
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:62
bool operator!=(const SOP_TetLayerParms &src) const
fpreal64 getThickness() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
void setGroup(const UT_StringHolder &val)
GLdouble s
Definition: glad.h:3009
void save(std::ostream &os) const
const UT_StringHolder & getThicknessMultiplierAttribute() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, bool v)
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opCreateTets(const SOP_NodeVerb::CookParms &cookparms) const
void setBuildDirection(BuildDirection val)
bool getCreateTets() const
double fpreal64
Definition: SYS_Types.h:201
BuildDirection opBuildDirection(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setEnableThicknessMultiplierAttribute(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
bool opEnableThicknessMultiplierAttribute(const SOP_NodeVerb::CookParms &cookparms) const
void loadFromOpSubclass(const LoadParms &loadparms) override
exint length() const
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool getCreateBoundaryTriangles() 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_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, fpreal64 v)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector2D &v)
bool operator==(const SOP_TetLayerParms &src) const
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setCreateBoundaryTriangles(bool val)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool opCreateBoundaryTriangles(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const OP_NodeParms *src) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint getNestNumParms(TempIndex idx) const override
void setThicknessMultiplierAttribute(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_StringHolder s)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
fpreal64 opThickness(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void loadData(UT_IStream &is, UT_Matrix3D &v)
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
static void loadData(UT_IStream &is, bool &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool getEnableThicknessMultiplierAttribute() const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
ParmType getNestParmType(TempIndex fieldnum) const override