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