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