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