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