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