HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeSDF.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myIso = 0;
33  myInvert = false;
34  myUsemaxdist = false;
35  myMaxdist = 0.1;
36  myRebuildwithfim = false;
37  myFimtolerance = .01;
38  myFimiterations = 100;
39 
40  }
41 
42  explicit SOP_VolumeSDFParms(const SOP_VolumeSDFParms &) = default;
44  SOP_VolumeSDFParms(SOP_VolumeSDFParms &&) noexcept = default;
45  SOP_VolumeSDFParms &operator=(SOP_VolumeSDFParms &&) noexcept = default;
46 
47  ~SOP_VolumeSDFParms() override {}
48 
49  bool operator==(const SOP_VolumeSDFParms &src) const
50  {
51  if (myGroup != src.myGroup) return false;
52  if (myIso != src.myIso) return false;
53  if (myInvert != src.myInvert) return false;
54  if (myUsemaxdist != src.myUsemaxdist) return false;
55  if (myMaxdist != src.myMaxdist) return false;
56  if (myRebuildwithfim != src.myRebuildwithfim) return false;
57  if (myFimtolerance != src.myFimtolerance) return false;
58  if (myFimiterations != src.myFimiterations) return false;
59 
60  return true;
61  }
62  bool operator!=(const SOP_VolumeSDFParms &src) const
63  {
64  return !operator==(src);
65  }
66 
67 
68 
69  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
70  {
71  myGroup = ""_UTsh;
72  if (true)
73  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
74  myIso = 0;
75  if (true)
76  graph->evalOpParm(myIso, nodeidx, "iso", time, 0);
77  myInvert = false;
78  if (true)
79  graph->evalOpParm(myInvert, nodeidx, "invert", time, 0);
80  myUsemaxdist = false;
81  if (true)
82  graph->evalOpParm(myUsemaxdist, nodeidx, "usemaxdist", time, 0);
83  myMaxdist = 0.1;
84  if (true && ( (true&&!(((getUsemaxdist()==0)))) ) )
85  graph->evalOpParm(myMaxdist, nodeidx, "maxdist", time, 0);
86  myRebuildwithfim = false;
87  if (true)
88  graph->evalOpParm(myRebuildwithfim, nodeidx, "rebuildwithfim", time, 0);
89  myFimtolerance = .01;
90  if (true && ( (true&&!(((getRebuildwithfim()==0)))) ) )
91  graph->evalOpParm(myFimtolerance, nodeidx, "fimtolerance", time, 0);
92  myFimiterations = 100;
93  if (true && ( (true&&!(((getRebuildwithfim()==0)))) ) )
94  graph->evalOpParm(myFimiterations, nodeidx, "fimiterations", time, 0);
95 
96  }
97 
98 
99  void loadFromOpSubclass(const LoadParms &loadparms) override
100  {
101  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
102  }
103 
104 
105  void copyFrom(const OP_NodeParms *src) override
106  {
107  *this = *((const SOP_VolumeSDFParms *)src);
108  }
109 
110  template <typename T>
111  void
112  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
113  {
114  if (idx.size() < 1)
115  return;
116  UT_ASSERT(idx.size() == instance.size()+1);
117  if (idx.size() != instance.size()+1)
118  return;
119  switch (idx[0])
120  {
121  case 0:
122  coerceValue(value, myGroup);
123  break;
124  case 1:
125  coerceValue(value, myIso);
126  break;
127  case 2:
128  coerceValue(value, myInvert);
129  break;
130  case 3:
131  coerceValue(value, myUsemaxdist);
132  break;
133  case 4:
134  coerceValue(value, myMaxdist);
135  break;
136  case 5:
137  coerceValue(value, myRebuildwithfim);
138  break;
139  case 6:
140  coerceValue(value, myFimtolerance);
141  break;
142  case 7:
143  coerceValue(value, myFimiterations);
144  break;
145 
146  }
147  }
148 
149  bool isParmColorRamp(exint idx) const override
150  {
151  switch (idx)
152  {
153 
154  }
155  return false;
156  }
157 
158  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
159  { doGetParmValue(idx, instance, value); }
160  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
179  { doGetParmValue(idx, instance, value); }
180 
181  template <typename T>
182  void
183  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
184  {
185  if (idx.size() < 1)
186  return;
187  UT_ASSERT(idx.size() == instance.size()+1);
188  if (idx.size() != instance.size()+1)
189  return;
190  switch (idx[0])
191  {
192  case 0:
193  coerceValue(myGroup, ( ( value ) ));
194  break;
195  case 1:
196  coerceValue(myIso, ( ( value ) ));
197  break;
198  case 2:
199  coerceValue(myInvert, ( ( value ) ));
200  break;
201  case 3:
202  coerceValue(myUsemaxdist, ( ( value ) ));
203  break;
204  case 4:
205  coerceValue(myMaxdist, ( ( value ) ));
206  break;
207  case 5:
208  coerceValue(myRebuildwithfim, ( ( value ) ));
209  break;
210  case 6:
211  coerceValue(myFimtolerance, ( ( value ) ));
212  break;
213  case 7:
214  coerceValue(myFimiterations, ( ( value ) ));
215  break;
216 
217  }
218  }
219 
220  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
241  { doSetParmValue(idx, instance, value); }
242 
243  exint getNestNumParms(TempIndex idx) const override
244  {
245  if (idx.size() == 0)
246  return 8;
247  switch (idx[0])
248  {
249 
250  }
251  // Invalid
252  return 0;
253  }
254 
255  const char *getNestParmName(TempIndex fieldnum) const override
256  {
257  if (fieldnum.size() < 1)
258  return 0;
259  switch (fieldnum[0])
260  {
261  case 0:
262  return "group";
263  case 1:
264  return "iso";
265  case 2:
266  return "invert";
267  case 3:
268  return "usemaxdist";
269  case 4:
270  return "maxdist";
271  case 5:
272  return "rebuildwithfim";
273  case 6:
274  return "fimtolerance";
275  case 7:
276  return "fimiterations";
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_STRING;
290  case 1:
291  return PARM_FLOAT;
292  case 2:
293  return PARM_INTEGER;
294  case 3:
295  return PARM_INTEGER;
296  case 4:
297  return PARM_FLOAT;
298  case 5:
299  return PARM_INTEGER;
300  case 6:
301  return PARM_FLOAT;
302  case 7:
303  return PARM_INTEGER;
304 
305  }
306  return PARM_UNSUPPORTED;
307  }
308 
309  // Boiler plate to load individual types.
310  static void loadData(UT_IStream &is, int64 &v)
311  { is.bread(&v, 1); }
312  static void loadData(UT_IStream &is, bool &v)
313  { int64 iv; is.bread(&iv, 1); v = iv; }
314  static void loadData(UT_IStream &is, fpreal64 &v)
315  { is.bread<fpreal64>(&v, 1); }
316  static void loadData(UT_IStream &is, UT_Vector2D &v)
317  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector3D &v)
319  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
320  is.bread<fpreal64>(&v.z(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector4D &v)
322  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
323  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
324  static void loadData(UT_IStream &is, UT_Matrix2D &v)
325  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
326  static void loadData(UT_IStream &is, UT_Matrix3D &v)
327  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
328  static void loadData(UT_IStream &is, UT_Matrix4D &v)
329  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
330  static void loadData(UT_IStream &is, UT_Vector2I &v)
331  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector3I &v)
333  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
334  is.bread<int64>(&v.z(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector4I &v)
336  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
337  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
339  { is.bread(v); }
341  { UT_StringHolder rampdata;
342  loadData(is, rampdata);
343  if (rampdata.isstring())
344  {
345  v.reset(new UT_Ramp());
346  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
347  v->load(istr);
348  }
349  else v.reset();
350  }
353  loadData(is, data);
354  if (data.isstring())
355  {
356  // Find the data type.
357  const char *colon = UT_StringWrap(data).findChar(':');
358  if (colon)
359  {
360  int typelen = colon - data.buffer();
362  type.strncpy(data.buffer(), typelen);
363  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
364 
365  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
366  }
367  }
368  else v.reset();
369  }
370 
371  static void saveData(std::ostream &os, int64 v)
372  { UTwrite(os, &v); }
373  static void saveData(std::ostream &os, bool v)
374  { int64 iv = v; UTwrite(os, &iv); }
375  static void saveData(std::ostream &os, fpreal64 v)
376  { UTwrite<fpreal64>(os, &v); }
377  static void saveData(std::ostream &os, UT_Vector2D v)
378  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
379  static void saveData(std::ostream &os, UT_Vector3D v)
380  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
381  UTwrite<fpreal64>(os, &v.z()); }
382  static void saveData(std::ostream &os, UT_Vector4D v)
383  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
384  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
385  static void saveData(std::ostream &os, UT_Matrix2D v)
387  static void saveData(std::ostream &os, UT_Matrix3D v)
389  static void saveData(std::ostream &os, UT_Matrix4D v)
391  static void saveData(std::ostream &os, UT_StringHolder s)
392  { UT_StringWrap(s).saveBinary(os); }
393  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
395  UT_OStringStream ostr;
396  if (s) s->save(ostr);
397  result = ostr.str();
398  saveData(os, result);
399  }
400  static void saveData(std::ostream &os, PRM_DataItemHandle s)
402  UT_OStringStream ostr;
403  if (s)
404  {
405  ostr << s->getDataTypeToken();
406  ostr << ":";
407  s->saveBinary(ostr);
408  }
409  result = ostr.str();
410  saveData(os, result);
411  }
412 
413 
414  void save(std::ostream &os) const
415  {
416  int32 v = version();
417  UTwrite(os, &v);
418  saveData(os, myGroup);
419  saveData(os, myIso);
420  saveData(os, myInvert);
421  saveData(os, myUsemaxdist);
422  saveData(os, myMaxdist);
423  saveData(os, myRebuildwithfim);
424  saveData(os, myFimtolerance);
425  saveData(os, myFimiterations);
426 
427  }
428 
429  bool load(UT_IStream &is)
430  {
431  int32 v;
432  is.bread(&v, 1);
433  if (version() != v)
434  {
435  // Fail incompatible versions
436  return false;
437  }
438  loadData(is, myGroup);
439  loadData(is, myIso);
440  loadData(is, myInvert);
441  loadData(is, myUsemaxdist);
442  loadData(is, myMaxdist);
443  loadData(is, myRebuildwithfim);
444  loadData(is, myFimtolerance);
445  loadData(is, myFimiterations);
446 
447  return true;
448  }
449 
450  const UT_StringHolder & getGroup() const { return myGroup; }
451  void setGroup(const UT_StringHolder & val) { myGroup = val; }
453  {
454  SOP_Node *thissop = cookparms.getNode();
455  if (!thissop) return getGroup();
457  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
458  return result;
459  }
460  fpreal64 getIso() const { return myIso; }
461  void setIso(fpreal64 val) { myIso = val; }
462  fpreal64 opIso(const SOP_NodeVerb::CookParms &cookparms) const
463  {
464  SOP_Node *thissop = cookparms.getNode();
465  if (!thissop) return getIso();
467  OP_Utils::evalOpParm(result, thissop, "iso", cookparms.getCookTime(), 0);
468  return result;
469  }
470  bool getInvert() const { return myInvert; }
471  void setInvert(bool val) { myInvert = val; }
472  bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getInvert();
476  bool result;
477  OP_Utils::evalOpParm(result, thissop, "invert", cookparms.getCookTime(), 0);
478  return result;
479  }
480  bool getUsemaxdist() const { return myUsemaxdist; }
481  void setUsemaxdist(bool val) { myUsemaxdist = val; }
482  bool opUsemaxdist(const SOP_NodeVerb::CookParms &cookparms) const
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getUsemaxdist();
486  bool result;
487  OP_Utils::evalOpParm(result, thissop, "usemaxdist", cookparms.getCookTime(), 0);
488  return result;
489  }
490  fpreal64 getMaxdist() const { return myMaxdist; }
491  void setMaxdist(fpreal64 val) { myMaxdist = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getMaxdist();
497  OP_Utils::evalOpParm(result, thissop, "maxdist", cookparms.getCookTime(), 0);
498  return result;
499  }
500  bool getRebuildwithfim() const { return myRebuildwithfim; }
501  void setRebuildwithfim(bool val) { myRebuildwithfim = val; }
502  bool opRebuildwithfim(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getRebuildwithfim();
506  bool result;
507  OP_Utils::evalOpParm(result, thissop, "rebuildwithfim", cookparms.getCookTime(), 0);
508  return result;
509  }
510  fpreal64 getFimtolerance() const { return myFimtolerance; }
511  void setFimtolerance(fpreal64 val) { myFimtolerance = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getFimtolerance();
517  OP_Utils::evalOpParm(result, thissop, "fimtolerance", cookparms.getCookTime(), 0);
518  return result;
519  }
520  int64 getFimiterations() const { return myFimiterations; }
521  void setFimiterations(int64 val) { myFimiterations = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getFimiterations();
526  int64 result;
527  OP_Utils::evalOpParm(result, thissop, "fimiterations", cookparms.getCookTime(), 0);
528  return result;
529  }
530 
531 private:
532  UT_StringHolder myGroup;
533  fpreal64 myIso;
534  bool myInvert;
535  bool myUsemaxdist;
536  fpreal64 myMaxdist;
537  bool myRebuildwithfim;
538  fpreal64 myFimtolerance;
539  int64 myFimiterations;
540 
541 };
void setInvert(bool val)
bool load(UT_IStream &is)
void setFimtolerance(fpreal64 val)
fpreal64 opFimtolerance(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setMaxdist(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
void save(std::ostream &os) const
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
bool operator==(const SOP_VolumeSDFParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
bool operator!=(const SOP_VolumeSDFParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE const char * buffer() const
fpreal64 getMaxdist() const
static void saveData(std::ostream &os, UT_Vector3D v)
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
int64 opFimiterations(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
**But if you need a result
Definition: thread.h:613
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal64 opMaxdist(const SOP_NodeVerb::CookParms &cookparms) const
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
fpreal64 getIso() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setIso(fpreal64 val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void copyFrom(const OP_NodeParms *src) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
const char * getNestParmName(TempIndex fieldnum) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
exint length() const
const UT_StringHolder & getGroup() const
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
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setUsemaxdist(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, int64 &v)
ParmType getNestParmType(TempIndex fieldnum) const override
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_Matrix4D v)
bool opRebuildwithfim(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
fpreal64 opIso(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setRebuildwithfim(bool val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, bool v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
void setGroup(const UT_StringHolder &val)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setFimiterations(int64 val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, int64 v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
bool getRebuildwithfim() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
bool opUsemaxdist(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
fpreal64 getFimtolerance() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool isParmColorRamp(exint idx) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
bool getUsemaxdist() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
int64 getFimiterations() const