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 <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  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 
61  if (baseGetSignature() != src.baseGetSignature()) return false;
62 
63  return true;
64  }
65  bool operator!=(const SOP_VolumeSDFParms &src) const
66  {
67  return !operator==(src);
68  }
69 
70 
71 
72  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
73  {
74  myGroup = ""_UTsh;
75  if (true)
76  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
77  myIso = 0;
78  if (true)
79  graph->evalOpParm(myIso, nodeidx, "iso", time, graph->isDirect()?nullptr:depnode);
80  myInvert = false;
81  if (true)
82  graph->evalOpParm(myInvert, nodeidx, "invert", time, graph->isDirect()?nullptr:depnode);
83  myUsemaxdist = false;
84  if (true)
85  graph->evalOpParm(myUsemaxdist, nodeidx, "usemaxdist", time, graph->isDirect()?nullptr:depnode);
86  myMaxdist = 0.1;
87  if (true && ( (true&&!(((getUsemaxdist()==0)))) ) )
88  graph->evalOpParm(myMaxdist, nodeidx, "maxdist", time, graph->isDirect()?nullptr:depnode);
89  myRebuildwithfim = false;
90  if (true)
91  graph->evalOpParm(myRebuildwithfim, nodeidx, "rebuildwithfim", time, graph->isDirect()?nullptr:depnode);
92  myFimtolerance = .01;
93  if (true && ( (true&&!(((getRebuildwithfim()==0)))) ) )
94  graph->evalOpParm(myFimtolerance, nodeidx, "fimtolerance", time, graph->isDirect()?nullptr:depnode);
95  myFimiterations = 100;
96  if (true && ( (true&&!(((getRebuildwithfim()==0)))) ) )
97  graph->evalOpParm(myFimiterations, nodeidx, "fimiterations", time, graph->isDirect()?nullptr:depnode);
98 
99  }
100 
101 
102  void loadFromOpSubclass(const LoadParms &loadparms) override
103  {
104  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
105  }
106 
107 
108  void copyFrom(const OP_NodeParms *src) override
109  {
110  *this = *((const SOP_VolumeSDFParms *)src);
111  }
112 
113  template <typename T>
114  void
115  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
116  {
117  if (idx.size() < 1)
118  return;
119  UT_ASSERT(idx.size() == instance.size()+1);
120  if (idx.size() != instance.size()+1)
121  return;
122  switch (idx[0])
123  {
124  case 0:
125  coerceValue(value, myGroup);
126  break;
127  case 1:
128  coerceValue(value, myIso);
129  break;
130  case 2:
131  coerceValue(value, myInvert);
132  break;
133  case 3:
134  coerceValue(value, myUsemaxdist);
135  break;
136  case 4:
137  coerceValue(value, myMaxdist);
138  break;
139  case 5:
140  coerceValue(value, myRebuildwithfim);
141  break;
142  case 6:
143  coerceValue(value, myFimtolerance);
144  break;
145  case 7:
146  coerceValue(value, myFimiterations);
147  break;
148 
149  }
150  }
151 
152  bool isParmColorRamp(exint idx) const override
153  {
154  switch (idx)
155  {
156 
157  }
158  return false;
159  }
160 
161  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
182  { doGetParmValue(idx, instance, value); }
183 
184  template <typename T>
185  void
186  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
187  {
188  if (idx.size() < 1)
189  return;
190  UT_ASSERT(idx.size() == instance.size()+1);
191  if (idx.size() != instance.size()+1)
192  return;
193  switch (idx[0])
194  {
195  case 0:
196  coerceValue(myGroup, ( ( value ) ));
197  break;
198  case 1:
199  coerceValue(myIso, ( ( value ) ));
200  break;
201  case 2:
202  coerceValue(myInvert, ( ( value ) ));
203  break;
204  case 3:
205  coerceValue(myUsemaxdist, ( ( value ) ));
206  break;
207  case 4:
208  coerceValue(myMaxdist, ( ( value ) ));
209  break;
210  case 5:
211  coerceValue(myRebuildwithfim, ( ( value ) ));
212  break;
213  case 6:
214  coerceValue(myFimtolerance, ( ( value ) ));
215  break;
216  case 7:
217  coerceValue(myFimiterations, ( ( value ) ));
218  break;
219 
220  }
221  }
222 
223  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
244  { doSetParmValue(idx, instance, value); }
245 
246  exint getNestNumParms(TempIndex idx) const override
247  {
248  if (idx.size() == 0)
249  return 8;
250  switch (idx[0])
251  {
252 
253  }
254  // Invalid
255  return 0;
256  }
257 
258  const char *getNestParmName(TempIndex fieldnum) const override
259  {
260  if (fieldnum.size() < 1)
261  return 0;
262  switch (fieldnum[0])
263  {
264  case 0:
265  return "group";
266  case 1:
267  return "iso";
268  case 2:
269  return "invert";
270  case 3:
271  return "usemaxdist";
272  case 4:
273  return "maxdist";
274  case 5:
275  return "rebuildwithfim";
276  case 6:
277  return "fimtolerance";
278  case 7:
279  return "fimiterations";
280 
281  }
282  return 0;
283  }
284 
285  ParmType getNestParmType(TempIndex fieldnum) const override
286  {
287  if (fieldnum.size() < 1)
288  return PARM_UNSUPPORTED;
289  switch (fieldnum[0])
290  {
291  case 0:
292  return PARM_STRING;
293  case 1:
294  return PARM_FLOAT;
295  case 2:
296  return PARM_INTEGER;
297  case 3:
298  return PARM_INTEGER;
299  case 4:
300  return PARM_FLOAT;
301  case 5:
302  return PARM_INTEGER;
303  case 6:
304  return PARM_FLOAT;
305  case 7:
306  return PARM_INTEGER;
307 
308  }
309  return PARM_UNSUPPORTED;
310  }
311 
312  // Boiler plate to load individual types.
313  static void loadData(UT_IStream &is, int64 &v)
314  { is.bread(&v, 1); }
315  static void loadData(UT_IStream &is, bool &v)
316  { int64 iv; is.bread(&iv, 1); v = iv; }
317  static void loadData(UT_IStream &is, fpreal64 &v)
318  { is.bread<fpreal64>(&v, 1); }
319  static void loadData(UT_IStream &is, UT_Vector2D &v)
320  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector3D &v)
322  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
323  is.bread<fpreal64>(&v.z(), 1); }
324  static void loadData(UT_IStream &is, UT_Vector4D &v)
325  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
326  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
327  static void loadData(UT_IStream &is, UT_Matrix2D &v)
328  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
329  static void loadData(UT_IStream &is, UT_Matrix3D &v)
330  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
331  static void loadData(UT_IStream &is, UT_Matrix4D &v)
332  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
333  static void loadData(UT_IStream &is, UT_Vector2I &v)
334  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector3I &v)
336  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
337  is.bread<int64>(&v.z(), 1); }
338  static void loadData(UT_IStream &is, UT_Vector4I &v)
339  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
340  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
342  { is.bread(v); }
344  { UT_StringHolder rampdata;
345  loadData(is, rampdata);
346  if (rampdata.isstring())
347  {
348  v.reset(new UT_Ramp());
349  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
350  v->load(istr);
351  }
352  else v.reset();
353  }
356  loadData(is, data);
357  if (data.isstring())
358  {
359  // Find the data type.
360  const char *colon = UT_StringWrap(data).findChar(':');
361  if (colon)
362  {
363  int typelen = colon - data.buffer();
365  type.strncpy(data.buffer(), typelen);
366  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
367 
368  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
369  }
370  }
371  else v.reset();
372  }
373 
374  static void saveData(std::ostream &os, int64 v)
375  { UTwrite(os, &v); }
376  static void saveData(std::ostream &os, bool v)
377  { int64 iv = v; UTwrite(os, &iv); }
378  static void saveData(std::ostream &os, fpreal64 v)
379  { UTwrite<fpreal64>(os, &v); }
380  static void saveData(std::ostream &os, UT_Vector2D v)
381  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
382  static void saveData(std::ostream &os, UT_Vector3D v)
383  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
384  UTwrite<fpreal64>(os, &v.z()); }
385  static void saveData(std::ostream &os, UT_Vector4D v)
386  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
387  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
388  static void saveData(std::ostream &os, UT_Matrix2D v)
390  static void saveData(std::ostream &os, UT_Matrix3D v)
392  static void saveData(std::ostream &os, UT_Matrix4D v)
394  static void saveData(std::ostream &os, UT_StringHolder s)
395  { UT_StringWrap(s).saveBinary(os); }
396  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
398  UT_OStringStream ostr;
399  if (s) s->save(ostr);
400  result = ostr.str();
401  saveData(os, result);
402  }
403  static void saveData(std::ostream &os, PRM_DataItemHandle s)
405  UT_OStringStream ostr;
406  if (s)
407  {
408  ostr << s->getDataTypeToken();
409  ostr << ":";
410  s->saveBinary(ostr);
411  }
412  result = ostr.str();
413  saveData(os, result);
414  }
415 
416 
417  void save(std::ostream &os) const
418  {
419  int32 v = version();
420  UTwrite(os, &v);
421  saveData(os, myGroup);
422  saveData(os, myIso);
423  saveData(os, myInvert);
424  saveData(os, myUsemaxdist);
425  saveData(os, myMaxdist);
426  saveData(os, myRebuildwithfim);
427  saveData(os, myFimtolerance);
428  saveData(os, myFimiterations);
429 
430  }
431 
432  bool load(UT_IStream &is)
433  {
434  int32 v;
435  is.bread(&v, 1);
436  if (version() != v)
437  {
438  // Fail incompatible versions
439  return false;
440  }
441  loadData(is, myGroup);
442  loadData(is, myIso);
443  loadData(is, myInvert);
444  loadData(is, myUsemaxdist);
445  loadData(is, myMaxdist);
446  loadData(is, myRebuildwithfim);
447  loadData(is, myFimtolerance);
448  loadData(is, myFimiterations);
449 
450  return true;
451  }
452 
453  const UT_StringHolder & getGroup() const { return myGroup; }
454  void setGroup(const UT_StringHolder & val) { myGroup = val; }
456  {
457  SOP_Node *thissop = cookparms.getNode();
458  if (!thissop) return getGroup();
460  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
461  return result;
462  }
463  fpreal64 getIso() const { return myIso; }
464  void setIso(fpreal64 val) { myIso = val; }
465  fpreal64 opIso(const SOP_NodeVerb::CookParms &cookparms) const
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getIso();
470  OP_Utils::evalOpParm(result, thissop, "iso", cookparms.getCookTime(), 0);
471  return result;
472  }
473  bool getInvert() const { return myInvert; }
474  void setInvert(bool val) { myInvert = val; }
475  bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getInvert();
479  bool result;
480  OP_Utils::evalOpParm(result, thissop, "invert", cookparms.getCookTime(), 0);
481  return result;
482  }
483  bool getUsemaxdist() const { return myUsemaxdist; }
484  void setUsemaxdist(bool val) { myUsemaxdist = val; }
485  bool opUsemaxdist(const SOP_NodeVerb::CookParms &cookparms) const
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getUsemaxdist();
489  bool result;
490  OP_Utils::evalOpParm(result, thissop, "usemaxdist", cookparms.getCookTime(), 0);
491  return result;
492  }
493  fpreal64 getMaxdist() const { return myMaxdist; }
494  void setMaxdist(fpreal64 val) { myMaxdist = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getMaxdist();
500  OP_Utils::evalOpParm(result, thissop, "maxdist", cookparms.getCookTime(), 0);
501  return result;
502  }
503  bool getRebuildwithfim() const { return myRebuildwithfim; }
504  void setRebuildwithfim(bool val) { myRebuildwithfim = val; }
505  bool opRebuildwithfim(const SOP_NodeVerb::CookParms &cookparms) const
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getRebuildwithfim();
509  bool result;
510  OP_Utils::evalOpParm(result, thissop, "rebuildwithfim", cookparms.getCookTime(), 0);
511  return result;
512  }
513  fpreal64 getFimtolerance() const { return myFimtolerance; }
514  void setFimtolerance(fpreal64 val) { myFimtolerance = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getFimtolerance();
520  OP_Utils::evalOpParm(result, thissop, "fimtolerance", cookparms.getCookTime(), 0);
521  return result;
522  }
523  int64 getFimiterations() const { return myFimiterations; }
524  void setFimiterations(int64 val) { myFimiterations = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getFimiterations();
529  int64 result;
530  OP_Utils::evalOpParm(result, thissop, "fimiterations", cookparms.getCookTime(), 0);
531  return result;
532  }
533 
534 private:
535  UT_StringHolder myGroup;
536  fpreal64 myIso;
537  bool myInvert;
538  bool myUsemaxdist;
539  fpreal64 myMaxdist;
540  bool myRebuildwithfim;
541  fpreal64 myFimtolerance;
542  int64 myFimiterations;
543 
544 };
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:310
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, int64 v)
fpreal64 fpreal
Definition: SYS_Types.h:278
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:96
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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)
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)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
bool isParmColorRamp(exint idx) const override
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