HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Hole.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myBreak = false;
33  myDist = 0.001;
34  myAngle = 1;
35  mySnap = false;
36  myRemoveUnusedPts = false;
37 
38  }
39 
40  explicit SOP_HoleParms(const SOP_HoleParms &) = default;
41  SOP_HoleParms &operator=(const SOP_HoleParms &) = default;
42  SOP_HoleParms(SOP_HoleParms &&) noexcept = default;
43  SOP_HoleParms &operator=(SOP_HoleParms &&) noexcept = default;
44 
45  ~SOP_HoleParms() override {}
46 
47  bool operator==(const SOP_HoleParms &src) const
48  {
49  if (myGroup != src.myGroup) return false;
50  if (myBreak != src.myBreak) return false;
51  if (myDist != src.myDist) return false;
52  if (myAngle != src.myAngle) return false;
53  if (mySnap != src.mySnap) return false;
54  if (myRemoveUnusedPts != src.myRemoveUnusedPts) return false;
55 
56 
57  if (baseGetSignature() != src.baseGetSignature()) return false;
58 
59  return true;
60  }
61  bool operator!=(const SOP_HoleParms &src) const
62  {
63  return !operator==(src);
64  }
65 
66 
67 
68  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
69  {
70  myGroup = ""_UTsh;
71  if (true)
72  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
73  myBreak = false;
74  if (true)
75  graph->evalOpParm(myBreak, nodeidx, "break", time, graph->isDirect()?nullptr:depnode);
76  myDist = 0.001;
77  if (true && ( (true&&!(((getBreak()==1)))) ) )
78  graph->evalOpParm(myDist, nodeidx, "dist", time, graph->isDirect()?nullptr:depnode);
79  myAngle = 1;
80  if (true && ( (true&&!(((getBreak()==1)))) ) )
81  graph->evalOpParm(myAngle, nodeidx, "angle", time, graph->isDirect()?nullptr:depnode);
82  mySnap = false;
83  if (true && ( (true&&!(((getBreak()==1)))) ) )
84  graph->evalOpParm(mySnap, nodeidx, "snap", time, graph->isDirect()?nullptr:depnode);
85  myRemoveUnusedPts = false;
86  if (true && ( (true&&!(((getBreak()==1)))) ) )
87  graph->evalOpParm(myRemoveUnusedPts, nodeidx, "removeunusedpoints", time, graph->isDirect()?nullptr:depnode);
88 
89  }
90 
91 
92  void loadFromOpSubclass(const LoadParms &loadparms) override
93  {
94  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
95  }
96 
97 
98  void copyFrom(const OP_NodeParms *src) override
99  {
100  *this = *((const SOP_HoleParms *)src);
101  }
102 
103  template <typename T>
104  void
105  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
106  {
107  if (idx.size() < 1)
108  return;
109  UT_ASSERT(idx.size() == instance.size()+1);
110  if (idx.size() != instance.size()+1)
111  return;
112  switch (idx[0])
113  {
114  case 0:
115  coerceValue(value, myGroup);
116  break;
117  case 1:
118  coerceValue(value, myBreak);
119  break;
120  case 2:
121  coerceValue(value, myDist);
122  break;
123  case 3:
124  coerceValue(value, myAngle);
125  break;
126  case 4:
127  coerceValue(value, mySnap);
128  break;
129  case 5:
130  coerceValue(value, myRemoveUnusedPts);
131  break;
132 
133  }
134  }
135 
136  bool isParmColorRamp(exint idx) const override
137  {
138  switch (idx)
139  {
140 
141  }
142  return false;
143  }
144 
145  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
146  { doGetParmValue(idx, instance, value); }
147  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
148  { doGetParmValue(idx, instance, value); }
149  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
150  { doGetParmValue(idx, instance, value); }
151  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
152  { doGetParmValue(idx, instance, value); }
153  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
166  { doGetParmValue(idx, instance, value); }
167 
168  template <typename T>
169  void
170  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
171  {
172  if (idx.size() < 1)
173  return;
174  UT_ASSERT(idx.size() == instance.size()+1);
175  if (idx.size() != instance.size()+1)
176  return;
177  switch (idx[0])
178  {
179  case 0:
180  coerceValue(myGroup, ( ( value ) ));
181  break;
182  case 1:
183  coerceValue(myBreak, ( ( value ) ));
184  break;
185  case 2:
186  coerceValue(myDist, clampMinValue(0, ( value ) ));
187  break;
188  case 3:
189  coerceValue(myAngle, clampMinValue(0, ( value ) ));
190  break;
191  case 4:
192  coerceValue(mySnap, ( ( value ) ));
193  break;
194  case 5:
195  coerceValue(myRemoveUnusedPts, ( ( value ) ));
196  break;
197 
198  }
199  }
200 
201  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
202  { doSetParmValue(idx, instance, value); }
203  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
204  { doSetParmValue(idx, instance, value); }
205  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
206  { doSetParmValue(idx, instance, value); }
207  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
208  { doSetParmValue(idx, instance, value); }
209  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
210  { doSetParmValue(idx, instance, value); }
211  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
212  { doSetParmValue(idx, instance, value); }
213  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
214  { doSetParmValue(idx, instance, value); }
215  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
216  { doSetParmValue(idx, instance, value); }
217  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
218  { doSetParmValue(idx, instance, value); }
219  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
220  { doSetParmValue(idx, instance, value); }
221  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
222  { doSetParmValue(idx, instance, value); }
223 
224  exint getNestNumParms(TempIndex idx) const override
225  {
226  if (idx.size() == 0)
227  return 6;
228  switch (idx[0])
229  {
230 
231  }
232  // Invalid
233  return 0;
234  }
235 
236  const char *getNestParmName(TempIndex fieldnum) const override
237  {
238  if (fieldnum.size() < 1)
239  return 0;
240  switch (fieldnum[0])
241  {
242  case 0:
243  return "group";
244  case 1:
245  return "break";
246  case 2:
247  return "dist";
248  case 3:
249  return "angle";
250  case 4:
251  return "snap";
252  case 5:
253  return "removeunusedpoints";
254 
255  }
256  return 0;
257  }
258 
259  ParmType getNestParmType(TempIndex fieldnum) const override
260  {
261  if (fieldnum.size() < 1)
262  return PARM_UNSUPPORTED;
263  switch (fieldnum[0])
264  {
265  case 0:
266  return PARM_STRING;
267  case 1:
268  return PARM_INTEGER;
269  case 2:
270  return PARM_FLOAT;
271  case 3:
272  return PARM_FLOAT;
273  case 4:
274  return PARM_INTEGER;
275  case 5:
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, myBreak);
393  saveData(os, myDist);
394  saveData(os, myAngle);
395  saveData(os, mySnap);
396  saveData(os, myRemoveUnusedPts);
397 
398  }
399 
400  bool load(UT_IStream &is)
401  {
402  int32 v;
403  is.bread(&v, 1);
404  if (version() != v)
405  {
406  // Fail incompatible versions
407  return false;
408  }
409  loadData(is, myGroup);
410  loadData(is, myBreak);
411  loadData(is, myDist);
412  loadData(is, myAngle);
413  loadData(is, mySnap);
414  loadData(is, myRemoveUnusedPts);
415 
416  return true;
417  }
418 
419  const UT_StringHolder & getGroup() const { return myGroup; }
420  void setGroup(const UT_StringHolder & val) { myGroup = val; }
422  {
423  SOP_Node *thissop = cookparms.getNode();
424  if (!thissop) return getGroup();
426  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
427  return result;
428  }
429  bool getBreak() const { return myBreak; }
430  void setBreak(bool val) { myBreak = val; }
431  bool opBreak(const SOP_NodeVerb::CookParms &cookparms) const
432  {
433  SOP_Node *thissop = cookparms.getNode();
434  if (!thissop) return getBreak();
435  bool result;
436  OP_Utils::evalOpParm(result, thissop, "break", cookparms.getCookTime(), 0);
437  return result;
438  }
439  fpreal64 getDist() const { return myDist; }
440  void setDist(fpreal64 val) { myDist = val; }
441  fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
442  {
443  SOP_Node *thissop = cookparms.getNode();
444  if (!thissop) return getDist();
446  OP_Utils::evalOpParm(result, thissop, "dist", cookparms.getCookTime(), 0);
447  return result;
448  }
449  fpreal64 getAngle() const { return myAngle; }
450  void setAngle(fpreal64 val) { myAngle = val; }
451  fpreal64 opAngle(const SOP_NodeVerb::CookParms &cookparms) const
452  {
453  SOP_Node *thissop = cookparms.getNode();
454  if (!thissop) return getAngle();
456  OP_Utils::evalOpParm(result, thissop, "angle", cookparms.getCookTime(), 0);
457  return result;
458  }
459  bool getSnap() const { return mySnap; }
460  void setSnap(bool val) { mySnap = val; }
461  bool opSnap(const SOP_NodeVerb::CookParms &cookparms) const
462  {
463  SOP_Node *thissop = cookparms.getNode();
464  if (!thissop) return getSnap();
465  bool result;
466  OP_Utils::evalOpParm(result, thissop, "snap", cookparms.getCookTime(), 0);
467  return result;
468  }
469  bool getRemoveUnusedPts() const { return myRemoveUnusedPts; }
470  void setRemoveUnusedPts(bool val) { myRemoveUnusedPts = val; }
471  bool opRemoveUnusedPts(const SOP_NodeVerb::CookParms &cookparms) const
472  {
473  SOP_Node *thissop = cookparms.getNode();
474  if (!thissop) return getRemoveUnusedPts();
475  bool result;
476  OP_Utils::evalOpParm(result, thissop, "removeunusedpoints", cookparms.getCookTime(), 0);
477  return result;
478  }
479 
480 private:
481  UT_StringHolder myGroup;
482  bool myBreak;
483  fpreal64 myDist;
484  fpreal64 myAngle;
485  bool mySnap;
486  bool myRemoveUnusedPts;
487 
488 };
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
type
Definition: core.h:556
void setDist(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
bool isParmColorRamp(exint idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
void setRemoveUnusedPts(bool val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix2D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
fpreal64 getAngle() const
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLdouble s
Definition: glad.h:3009
exint getNestNumParms(TempIndex idx) const override
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, bool v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
**But if you need a result
Definition: thread.h:622
bool opBreak(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:317
bool operator!=(const SOP_HoleParms &src) const
void loadFromOpSubclass(const LoadParms &loadparms) override
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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool getBreak() const
void setAngle(fpreal64 val)
static void saveData(std::ostream &os, fpreal64 v)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
fpreal64 opAngle(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setSnap(bool val)
bool opRemoveUnusedPts(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint length() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
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, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector3D v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool opSnap(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GT_API const UT_StringHolder version
ParmType getNestParmType(TempIndex fieldnum) const override
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:310
fpreal64 getDist() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool operator==(const SOP_HoleParms &src) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, PRM_DataItemHandle s)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
bool getRemoveUnusedPts() const
static void saveData(std::ostream &os, UT_Matrix4D v)
GLboolean r
Definition: glcorearb.h:1222
bool getSnap() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void save(std::ostream &os) const
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setBreak(bool val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static int version()
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663