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