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