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