HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_EdgeDivide.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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_sh;
32  myNumdivs = 2;
33  myConnectpoints = false;
34  myClosepath = false;
35  myTolerance = 1e-05;
36  myApplytoall = true;
37  mySharedpoints = false;
38 
39  }
40 
41  explicit SOP_EdgeDivideParms(const SOP_EdgeDivideParms &) = default;
42 
43  ~SOP_EdgeDivideParms() override {}
44 
45  bool operator==(const SOP_EdgeDivideParms &src) const
46  {
47  if (myGroup != src.myGroup) return false;
48  if (myNumdivs != src.myNumdivs) return false;
49  if (myConnectpoints != src.myConnectpoints) return false;
50  if (myClosepath != src.myClosepath) return false;
51  if (myTolerance != src.myTolerance) return false;
52  if (myApplytoall != src.myApplytoall) return false;
53  if (mySharedpoints != src.mySharedpoints) return false;
54 
55  return true;
56  }
57  bool operator!=(const SOP_EdgeDivideParms &src) const
58  {
59  return !operator==(src);
60  }
61 
62 
63 
64  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
65  {
66  myGroup = ""_sh;
67  if (true)
68  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
69  myNumdivs = 2;
70  if (true)
71  graph->evalOpParm(myNumdivs, nodeidx, "numdivs", time, 0);
72  myConnectpoints = false;
73  if (true)
74  graph->evalOpParm(myConnectpoints, nodeidx, "connectpoints", time, 0);
75  myClosepath = false;
76  if (true && ( (!(((getConnectpoints()==0)))) ) )
77  graph->evalOpParm(myClosepath, nodeidx, "closepath", time, 0);
78  myTolerance = 1e-05;
79  if (true)
80  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
81  myApplytoall = true;
82  if (true && ( (!(((getConnectpoints()==1)))) ) )
83  graph->evalOpParm(myApplytoall, nodeidx, "applytoall", time, 0);
84  mySharedpoints = false;
85  if (true && ( (!(((getConnectpoints()==1)))) ) )
86  graph->evalOpParm(mySharedpoints, nodeidx, "sharedpoints", time, 0);
87 
88  }
89 
90 
91  void loadFromOpSubclass(const LoadParms &loadparms) override
92  {
93  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
94  }
95 
96 
97  void copyFrom(const SOP_NodeParms *src) override
98  {
99  *this = *((const SOP_EdgeDivideParms *)src);
100  }
101 
102  template <typename T>
103  void
104  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
105  {
106  if (idx.size() < 1)
107  return;
108  UT_ASSERT(idx.size() == instance.size()+1);
109  if (idx.size() != instance.size()+1)
110  return;
111  switch (idx[0])
112  {
113  case 0:
114  coerceValue(value, myGroup);
115  break;
116  case 1:
117  coerceValue(value, myNumdivs);
118  break;
119  case 2:
120  coerceValue(value, myConnectpoints);
121  break;
122  case 3:
123  coerceValue(value, myClosepath);
124  break;
125  case 4:
126  coerceValue(value, myTolerance);
127  break;
128  case 5:
129  coerceValue(value, myApplytoall);
130  break;
131  case 6:
132  coerceValue(value, mySharedpoints);
133  break;
134 
135  }
136  }
137 
138  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
139  { doGetParmValue(idx, instance, value); }
140  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
141  { doGetParmValue(idx, instance, value); }
142  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
143  { doGetParmValue(idx, instance, value); }
144  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
145  { doGetParmValue(idx, instance, value); }
146  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
147  { doGetParmValue(idx, instance, value); }
148  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
149  { doGetParmValue(idx, instance, value); }
150  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
151  { doGetParmValue(idx, instance, value); }
152  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
153  { doGetParmValue(idx, instance, value); }
154  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
155  { doGetParmValue(idx, instance, value); }
156  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
157  { doGetParmValue(idx, instance, value); }
158  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
159  { doGetParmValue(idx, instance, value); }
160 
161  template <typename T>
162  void
163  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
164  {
165  if (idx.size() < 1)
166  return;
167  UT_ASSERT(idx.size() == instance.size()+1);
168  if (idx.size() != instance.size()+1)
169  return;
170  switch (idx[0])
171  {
172  case 0:
173  coerceValue(myGroup, value);
174  break;
175  case 1:
176  coerceValue(myNumdivs, value);
177  break;
178  case 2:
179  coerceValue(myConnectpoints, value);
180  break;
181  case 3:
182  coerceValue(myClosepath, value);
183  break;
184  case 4:
185  coerceValue(myTolerance, value);
186  break;
187  case 5:
188  coerceValue(myApplytoall, value);
189  break;
190  case 6:
191  coerceValue(mySharedpoints, value);
192  break;
193 
194  }
195  }
196 
197  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
198  { doSetParmValue(idx, instance, value); }
199  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
200  { doSetParmValue(idx, instance, value); }
201  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
202  { doSetParmValue(idx, instance, value); }
203  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
204  { doSetParmValue(idx, instance, value); }
205  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
206  { doSetParmValue(idx, instance, value); }
207  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
208  { doSetParmValue(idx, instance, value); }
209  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
210  { doSetParmValue(idx, instance, value); }
211  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
212  { doSetParmValue(idx, instance, value); }
213  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
214  { doSetParmValue(idx, instance, value); }
215  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
216  { doSetParmValue(idx, instance, value); }
217  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
218  { doSetParmValue(idx, instance, value); }
219 
220  exint getNestNumParms(TempIndex idx) const override
221  {
222  if (idx.size() == 0)
223  return 7;
224  switch (idx[0])
225  {
226 
227  }
228  // Invalid
229  return 0;
230  }
231 
232  const char *getNestParmName(TempIndex fieldnum) const override
233  {
234  if (fieldnum.size() < 1)
235  return 0;
236  switch (fieldnum[0])
237  {
238  case 0:
239  return "group";
240  case 1:
241  return "numdivs";
242  case 2:
243  return "connectpoints";
244  case 3:
245  return "closepath";
246  case 4:
247  return "tolerance";
248  case 5:
249  return "applytoall";
250  case 6:
251  return "sharedpoints";
252 
253  }
254  return 0;
255  }
256 
257  ParmType getNestParmType(TempIndex fieldnum) const override
258  {
259  if (fieldnum.size() < 1)
260  return PARM_UNSUPPORTED;
261  switch (fieldnum[0])
262  {
263  case 0:
264  return PARM_STRING;
265  case 1:
266  return PARM_INTEGER;
267  case 2:
268  return PARM_INTEGER;
269  case 3:
270  return PARM_INTEGER;
271  case 4:
272  return PARM_FLOAT;
273  case 5:
274  return PARM_INTEGER;
275  case 6:
276  return PARM_INTEGER;
277 
278  }
279  return PARM_UNSUPPORTED;
280  }
281 
282  // Boiler plate to load individual types.
283  static void loadData(UT_IStream &is, int64 &v)
284  { is.bread(&v, 1); }
285  static void loadData(UT_IStream &is, bool &v)
286  { int64 iv; is.bread(&iv, 1); v = iv; }
287  static void loadData(UT_IStream &is, fpreal64 &v)
288  { is.bread<fpreal64>(&v, 1); }
289  static void loadData(UT_IStream &is, UT_Vector2D &v)
290  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
291  static void loadData(UT_IStream &is, UT_Vector3D &v)
292  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
293  is.bread<fpreal64>(&v.z(), 1); }
294  static void loadData(UT_IStream &is, UT_Vector4D &v)
295  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
296  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
297  static void loadData(UT_IStream &is, UT_Matrix2D &v)
298  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
299  static void loadData(UT_IStream &is, UT_Matrix3D &v)
300  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
301  static void loadData(UT_IStream &is, UT_Matrix4D &v)
302  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
303  static void loadData(UT_IStream &is, UT_Vector2I &v)
304  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
305  static void loadData(UT_IStream &is, UT_Vector3I &v)
306  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
307  is.bread<int64>(&v.z(), 1); }
308  static void loadData(UT_IStream &is, UT_Vector4I &v)
309  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
310  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
312  { is.bread(v); }
314  { UT_StringHolder rampdata;
315  loadData(is, rampdata);
316  if (rampdata.isstring())
317  {
318  v.reset(new UT_Ramp());
319  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
320  v->load(istr);
321  }
322  else v.reset();
323  }
326  loadData(is, data);
327  if (data.isstring())
328  {
329  // Find the data type.
330  const char *colon = UT_StringWrap(data).findChar(':');
331  if (colon)
332  {
333  int typelen = colon - data.buffer();
335  type.strncpy(data.buffer(), typelen);
336  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
337 
338  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
339  }
340  }
341  else v.reset();
342  }
343 
344  static void saveData(std::ostream &os, int64 v)
345  { UTwrite(os, &v); }
346  static void saveData(std::ostream &os, bool v)
347  { int64 iv = v; UTwrite(os, &iv); }
348  static void saveData(std::ostream &os, fpreal64 v)
349  { UTwrite<fpreal64>(os, &v); }
350  static void saveData(std::ostream &os, UT_Vector2D v)
351  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
352  static void saveData(std::ostream &os, UT_Vector3D v)
353  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
354  UTwrite<fpreal64>(os, &v.z()); }
355  static void saveData(std::ostream &os, UT_Vector4D v)
356  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
357  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
358  static void saveData(std::ostream &os, UT_Matrix2D v)
360  static void saveData(std::ostream &os, UT_Matrix3D v)
362  static void saveData(std::ostream &os, UT_Matrix4D v)
364  static void saveData(std::ostream &os, UT_StringHolder s)
365  { UT_StringWrap(s).saveBinary(os); }
366  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
368  UT_OStringStream ostr;
369  if (s) s->save(ostr);
370  result = ostr.str();
371  saveData(os, result);
372  }
373  static void saveData(std::ostream &os, PRM_DataItemHandle s)
375  UT_OStringStream ostr;
376  if (s)
377  {
378  ostr << s->getDataTypeToken();
379  ostr << ":";
380  s->saveBinary(ostr);
381  }
382  result = ostr.str();
383  saveData(os, result);
384  }
385 
386 
387  void save(std::ostream &os) const
388  {
389  int32 v = version();
390  UTwrite(os, &v);
391  saveData(os, myGroup);
392  saveData(os, myNumdivs);
393  saveData(os, myConnectpoints);
394  saveData(os, myClosepath);
395  saveData(os, myTolerance);
396  saveData(os, myApplytoall);
397  saveData(os, mySharedpoints);
398 
399  }
400 
401  bool load(UT_IStream &is)
402  {
403  int32 v;
404  is.bread(&v, 1);
405  if (version() != v)
406  {
407  // Fail incompatible versions
408  return false;
409  }
410  loadData(is, myGroup);
411  loadData(is, myNumdivs);
412  loadData(is, myConnectpoints);
413  loadData(is, myClosepath);
414  loadData(is, myTolerance);
415  loadData(is, myApplytoall);
416  loadData(is, mySharedpoints);
417 
418  return true;
419  }
420 
421  const UT_StringHolder & getGroup() const { return myGroup; }
422  void setGroup(const UT_StringHolder & val) { myGroup = val; }
424  {
425  SOP_Node *thissop = cookparms.getNode();
426  if (!thissop) return getGroup();
428  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
429  return result;
430  }
431  int64 getNumdivs() const { return myNumdivs; }
432  void setNumdivs(int64 val) { myNumdivs = val; }
433  int64 opNumdivs(const SOP_NodeVerb::CookParms &cookparms) const
434  {
435  SOP_Node *thissop = cookparms.getNode();
436  if (!thissop) return getNumdivs();
437  int64 result;
438  OP_Utils::evalOpParm(result, thissop, "numdivs", cookparms.getCookTime(), 0);
439  return result;
440  }
441  bool getConnectpoints() const { return myConnectpoints; }
442  void setConnectpoints(bool val) { myConnectpoints = val; }
443  bool opConnectpoints(const SOP_NodeVerb::CookParms &cookparms) const
444  {
445  SOP_Node *thissop = cookparms.getNode();
446  if (!thissop) return getConnectpoints();
447  bool result;
448  OP_Utils::evalOpParm(result, thissop, "connectpoints", cookparms.getCookTime(), 0);
449  return result;
450  }
451  bool getClosepath() const { return myClosepath; }
452  void setClosepath(bool val) { myClosepath = val; }
453  bool opClosepath(const SOP_NodeVerb::CookParms &cookparms) const
454  {
455  SOP_Node *thissop = cookparms.getNode();
456  if (!thissop) return getClosepath();
457  bool result;
458  OP_Utils::evalOpParm(result, thissop, "closepath", cookparms.getCookTime(), 0);
459  return result;
460  }
461  fpreal64 getTolerance() const { return myTolerance; }
462  void setTolerance(fpreal64 val) { myTolerance = val; }
464  {
465  SOP_Node *thissop = cookparms.getNode();
466  if (!thissop) return getTolerance();
468  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
469  return result;
470  }
471  bool getApplytoall() const { return myApplytoall; }
472  void setApplytoall(bool val) { myApplytoall = val; }
473  bool opApplytoall(const SOP_NodeVerb::CookParms &cookparms) const
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getApplytoall();
477  bool result;
478  OP_Utils::evalOpParm(result, thissop, "applytoall", cookparms.getCookTime(), 0);
479  return result;
480  }
481  bool getSharedpoints() const { return mySharedpoints; }
482  void setSharedpoints(bool val) { mySharedpoints = val; }
483  bool opSharedpoints(const SOP_NodeVerb::CookParms &cookparms) const
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getSharedpoints();
487  bool result;
488  OP_Utils::evalOpParm(result, thissop, "sharedpoints", cookparms.getCookTime(), 0);
489  return result;
490  }
491 
492 private:
493  UT_StringHolder myGroup;
494  int64 myNumdivs;
495  bool myConnectpoints;
496  bool myClosepath;
497  fpreal64 myTolerance;
498  bool myApplytoall;
499  bool mySharedpoints;
500 
501 };
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLdouble s
Definition: glew.h:1390
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_Matrix3D v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void copyFrom(const SOP_NodeParms *src) override
GLenum src
Definition: glew.h:2410
void setApplytoall(bool val)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, fpreal64 &v)
fpreal getTime() const
Definition: OP_Context.h:60
static void loadData(UT_IStream &is, UT_Vector3I &v)
GLuint const GLfloat * val
Definition: glew.h:2794
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool getConnectpoints() const
static void loadData(UT_IStream &is, int64 &v)
void setGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
int64 exint
Definition: SYS_Types.h:125
const char * getNestParmName(TempIndex fieldnum) const override
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const GLdouble * v
Definition: glew.h:1391
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
void setNumdivs(int64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
double fpreal64
Definition: SYS_Types.h:201
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Vector2D v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
bool opApplytoall(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void loadData(UT_IStream &is, UT_Vector2D &v)
const GLfloat * c
Definition: glew.h:16296
static void saveData(std::ostream &os, PRM_DataItemHandle s)
long long int64
Definition: SYS_Types.h:116
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
bool operator==(const SOP_EdgeDivideParms &src) const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool operator!=(const SOP_EdgeDivideParms &src) const
int64 opNumdivs(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, fpreal64 v)
fpreal64 fpreal
Definition: SYS_Types.h:277
void setSharedpoints(bool val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setConnectpoints(bool val)
fpreal64 getTolerance() const
static void saveData(std::ostream &os, int64 v)
bool opSharedpoints(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void loadData(UT_IStream &is, UT_Vector3D &v)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Vector3D v)
void setTolerance(fpreal64 val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool opClosepath(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool load(UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
GLsizei const GLfloat * value
Definition: glew.h:1849
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
SYS_FORCE_INLINE bool isstring() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opConnectpoints(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override