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 <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_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 
101  if (baseGetSignature() != src.baseGetSignature()) return false;
102 
103  return true;
104  }
105  bool operator!=(const SOP_PackPointsParms &src) const
106  {
107  return !operator==(src);
108  }
111 
112 
113 
114  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
115  {
116  myGroup = ""_UTsh;
117  if (true)
118  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
119  myTileSize = 0.1;
120  if (true)
121  graph->evalOpParm(myTileSize, nodeidx, "tilesize", time, graph->isDirect()?nullptr:depnode);
122  myViewportLOD = 0;
123  if (true)
124  graph->evalOpParm(myViewportLOD, nodeidx, "viewportlod", time, graph->isDirect()?nullptr:depnode);
125  myCreatePath = false;
126  if (true)
127  graph->evalOpParm(myCreatePath, nodeidx, "createpath", time, graph->isDirect()?nullptr:depnode);
128  myPath = "op:`opfullpath('.')`"_UTsh;
129  if (true && ( (true&&!(((getCreatePath()==0)))) ) )
130  graph->evalOpParm(myPath, nodeidx, "path", time, graph->isDirect()?nullptr:depnode);
131  myPivot = 1;
132  if (true)
133  graph->evalOpParm(myPivot, nodeidx, "pivot", time, graph->isDirect()?nullptr:depnode);
134 
135  }
136 
137 
138  void loadFromOpSubclass(const LoadParms &loadparms) override
139  {
140  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
141  }
142 
143 
144  void copyFrom(const OP_NodeParms *src) override
145  {
146  *this = *((const SOP_PackPointsParms *)src);
147  }
148 
149  template <typename T>
150  void
151  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
152  {
153  if (idx.size() < 1)
154  return;
155  UT_ASSERT(idx.size() == instance.size()+1);
156  if (idx.size() != instance.size()+1)
157  return;
158  switch (idx[0])
159  {
160  case 0:
161  coerceValue(value, myGroup);
162  break;
163  case 1:
164  coerceValue(value, myTileSize);
165  break;
166  case 2:
167  coerceValue(value, myViewportLOD);
168  break;
169  case 3:
170  coerceValue(value, myCreatePath);
171  break;
172  case 4:
173  coerceValue(value, myPath);
174  break;
175  case 5:
176  coerceValue(value, myPivot);
177  break;
178 
179  }
180  }
181 
182  bool isParmColorRamp(exint idx) const override
183  {
184  switch (idx)
185  {
186 
187  }
188  return false;
189  }
190 
191  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
212  { doGetParmValue(idx, instance, value); }
213 
214  template <typename T>
215  void
216  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
217  {
218  if (idx.size() < 1)
219  return;
220  UT_ASSERT(idx.size() == instance.size()+1);
221  if (idx.size() != instance.size()+1)
222  return;
223  switch (idx[0])
224  {
225  case 0:
226  coerceValue(myGroup, ( ( value ) ));
227  break;
228  case 1:
229  coerceValue(myTileSize, ( ( value ) ));
230  break;
231  case 2:
232  coerceValue(myViewportLOD, clampMinValue(0, clampMaxValue(4, value ) ));
233  break;
234  case 3:
235  coerceValue(myCreatePath, ( ( value ) ));
236  break;
237  case 4:
238  coerceValue(myPath, ( ( value ) ));
239  break;
240  case 5:
241  coerceValue(myPivot, clampMinValue(0, clampMaxValue(1, value ) ));
242  break;
243 
244  }
245  }
246 
247  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
268  { doSetParmValue(idx, instance, value); }
269 
270  exint getNestNumParms(TempIndex idx) const override
271  {
272  if (idx.size() == 0)
273  return 6;
274  switch (idx[0])
275  {
276 
277  }
278  // Invalid
279  return 0;
280  }
281 
282  const char *getNestParmName(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return 0;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return "group";
290  case 1:
291  return "tilesize";
292  case 2:
293  return "viewportlod";
294  case 3:
295  return "createpath";
296  case 4:
297  return "path";
298  case 5:
299  return "pivot";
300 
301  }
302  return 0;
303  }
304 
305  ParmType getNestParmType(TempIndex fieldnum) const override
306  {
307  if (fieldnum.size() < 1)
308  return PARM_UNSUPPORTED;
309  switch (fieldnum[0])
310  {
311  case 0:
312  return PARM_STRING;
313  case 1:
314  return PARM_FLOAT;
315  case 2:
316  return PARM_INTEGER;
317  case 3:
318  return PARM_INTEGER;
319  case 4:
320  return PARM_STRING;
321  case 5:
322  return PARM_INTEGER;
323 
324  }
325  return PARM_UNSUPPORTED;
326  }
327 
328  // Boiler plate to load individual types.
329  static void loadData(UT_IStream &is, int64 &v)
330  { is.bread(&v, 1); }
331  static void loadData(UT_IStream &is, bool &v)
332  { int64 iv; is.bread(&iv, 1); v = iv; }
333  static void loadData(UT_IStream &is, fpreal64 &v)
334  { is.bread<fpreal64>(&v, 1); }
335  static void loadData(UT_IStream &is, UT_Vector2D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
337  static void loadData(UT_IStream &is, UT_Vector3D &v)
338  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
339  is.bread<fpreal64>(&v.z(), 1); }
340  static void loadData(UT_IStream &is, UT_Vector4D &v)
341  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
342  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix2D &v)
344  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Matrix3D &v)
346  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
347  static void loadData(UT_IStream &is, UT_Matrix4D &v)
348  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
349  static void loadData(UT_IStream &is, UT_Vector2I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
351  static void loadData(UT_IStream &is, UT_Vector3I &v)
352  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
353  is.bread<int64>(&v.z(), 1); }
354  static void loadData(UT_IStream &is, UT_Vector4I &v)
355  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
356  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
358  { is.bread(v); }
360  { UT_StringHolder rampdata;
361  loadData(is, rampdata);
362  if (rampdata.isstring())
363  {
364  v.reset(new UT_Ramp());
365  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
366  v->load(istr);
367  }
368  else v.reset();
369  }
372  loadData(is, data);
373  if (data.isstring())
374  {
375  // Find the data type.
376  const char *colon = UT_StringWrap(data).findChar(':');
377  if (colon)
378  {
379  int typelen = colon - data.buffer();
381  type.strncpy(data.buffer(), typelen);
382  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
383 
384  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
385  }
386  }
387  else v.reset();
388  }
389 
390  static void saveData(std::ostream &os, int64 v)
391  { UTwrite(os, &v); }
392  static void saveData(std::ostream &os, bool v)
393  { int64 iv = v; UTwrite(os, &iv); }
394  static void saveData(std::ostream &os, fpreal64 v)
395  { UTwrite<fpreal64>(os, &v); }
396  static void saveData(std::ostream &os, UT_Vector2D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
398  static void saveData(std::ostream &os, UT_Vector3D v)
399  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
400  UTwrite<fpreal64>(os, &v.z()); }
401  static void saveData(std::ostream &os, UT_Vector4D v)
402  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
403  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
404  static void saveData(std::ostream &os, UT_Matrix2D v)
406  static void saveData(std::ostream &os, UT_Matrix3D v)
408  static void saveData(std::ostream &os, UT_Matrix4D v)
410  static void saveData(std::ostream &os, UT_StringHolder s)
411  { UT_StringWrap(s).saveBinary(os); }
412  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
414  UT_OStringStream ostr;
415  if (s) s->save(ostr);
416  result = ostr.str();
417  saveData(os, result);
418  }
419  static void saveData(std::ostream &os, PRM_DataItemHandle s)
421  UT_OStringStream ostr;
422  if (s)
423  {
424  ostr << s->getDataTypeToken();
425  ostr << ":";
426  s->saveBinary(ostr);
427  }
428  result = ostr.str();
429  saveData(os, result);
430  }
431 
432 
433  void save(std::ostream &os) const
434  {
435  int32 v = version();
436  UTwrite(os, &v);
437  saveData(os, myGroup);
438  saveData(os, myTileSize);
439  saveData(os, myViewportLOD);
440  saveData(os, myCreatePath);
441  saveData(os, myPath);
442  saveData(os, myPivot);
443 
444  }
445 
446  bool load(UT_IStream &is)
447  {
448  int32 v;
449  is.bread(&v, 1);
450  if (version() != v)
451  {
452  // Fail incompatible versions
453  return false;
454  }
455  loadData(is, myGroup);
456  loadData(is, myTileSize);
457  loadData(is, myViewportLOD);
458  loadData(is, myCreatePath);
459  loadData(is, myPath);
460  loadData(is, myPivot);
461 
462  return true;
463  }
464 
465  const UT_StringHolder & getGroup() const { return myGroup; }
466  void setGroup(const UT_StringHolder & val) { myGroup = val; }
468  {
469  SOP_Node *thissop = cookparms.getNode();
470  if (!thissop) return getGroup();
472  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
473  return result;
474  }
475  fpreal64 getTileSize() const { return myTileSize; }
476  void setTileSize(fpreal64 val) { myTileSize = val; }
478  {
479  SOP_Node *thissop = cookparms.getNode();
480  if (!thissop) return getTileSize();
482  OP_Utils::evalOpParm(result, thissop, "tilesize", cookparms.getCookTime(), 0);
483  return result;
484  }
485  ViewportLOD getViewportLOD() const { return ViewportLOD(myViewportLOD); }
486  void setViewportLOD(ViewportLOD val) { myViewportLOD = int64(val); }
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getViewportLOD();
491  int64 result;
492  OP_Utils::evalOpParm(result, thissop, "viewportlod", cookparms.getCookTime(), 0);
493  return ViewportLOD(result);
494  }
495  bool getCreatePath() const { return myCreatePath; }
496  void setCreatePath(bool val) { myCreatePath = val; }
497  bool opCreatePath(const SOP_NodeVerb::CookParms &cookparms) const
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getCreatePath();
501  bool result;
502  OP_Utils::evalOpParm(result, thissop, "createpath", cookparms.getCookTime(), 0);
503  return result;
504  }
505  const UT_StringHolder & getPath() const { return myPath; }
506  void setPath(const UT_StringHolder & val) { myPath = val; }
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getPath();
512  OP_Utils::evalOpParm(result, thissop, "path", cookparms.getCookTime(), 0);
513  return result;
514  }
515  Pivot getPivot() const { return Pivot(myPivot); }
516  void setPivot(Pivot val) { myPivot = int64(val); }
517  Pivot opPivot(const SOP_NodeVerb::CookParms &cookparms) const
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getPivot();
521  int64 result;
522  OP_Utils::evalOpParm(result, thissop, "pivot", cookparms.getCookTime(), 0);
523  return Pivot(result);
524  }
525 
526 private:
527  UT_StringHolder myGroup;
528  fpreal64 myTileSize;
529  int64 myViewportLOD;
530  bool myCreatePath;
531  UT_StringHolder myPath;
532  int64 myPivot;
533 
534 };
type
Definition: core.h:556
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:63
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void setGroup(const UT_StringHolder &val)
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
static void loadData(UT_IStream &is, fpreal64 &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
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