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 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_UTsh;
44  myGrouptype = 0;
45  myComputenorms = false;
46  myNegate = false;
47  myFillhole = false;
48  myRemovegrp = false;
49 
50  }
51 
52  explicit SOP_BlastParms(const SOP_BlastParms &) = default;
53  SOP_BlastParms &operator=(const SOP_BlastParms &) = default;
54  SOP_BlastParms(SOP_BlastParms &&) noexcept = default;
55  SOP_BlastParms &operator=(SOP_BlastParms &&) noexcept = default;
56 
57  ~SOP_BlastParms() override {}
58 
59  bool operator==(const SOP_BlastParms &src) const
60  {
61  if (myGroup != src.myGroup) return false;
62  if (myGrouptype != src.myGrouptype) return false;
63  if (myComputenorms != src.myComputenorms) return false;
64  if (myNegate != src.myNegate) return false;
65  if (myFillhole != src.myFillhole) return false;
66  if (myRemovegrp != src.myRemovegrp) return false;
67 
68  return true;
69  }
70  bool operator!=(const SOP_BlastParms &src) const
71  {
72  return !operator==(src);
73  }
75 
76 
77 
78  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
79  {
80  myGroup = ""_UTsh;
81  if (true)
82  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
83  myGrouptype = 0;
84  if (true)
85  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
86  myComputenorms = false;
87  if (true)
88  graph->evalOpParm(myComputenorms, nodeidx, "computenorms", time, 0);
89  myNegate = false;
90  if (true)
91  graph->evalOpParm(myNegate, nodeidx, "negate", time, 0);
92  myFillhole = false;
93  if (true && ( (true&&!(((int64(getGrouptype())!=3)))) ) )
94  graph->evalOpParm(myFillhole, nodeidx, "fillhole", time, 0);
95  myRemovegrp = false;
96  if (true)
97  graph->evalOpParm(myRemovegrp, nodeidx, "removegrp", time, 0);
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_BlastParms *)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, myGrouptype);
129  break;
130  case 2:
131  coerceValue(value, myComputenorms);
132  break;
133  case 3:
134  coerceValue(value, myNegate);
135  break;
136  case 4:
137  coerceValue(value, myFillhole);
138  break;
139  case 5:
140  coerceValue(value, myRemovegrp);
141  break;
142 
143  }
144  }
145 
146  bool isParmColorRamp(exint idx) const override
147  {
148  switch (idx)
149  {
150 
151  }
152  return false;
153  }
154 
155  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
176  { doGetParmValue(idx, instance, value); }
177 
178  template <typename T>
179  void
180  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
181  {
182  if (idx.size() < 1)
183  return;
184  UT_ASSERT(idx.size() == instance.size()+1);
185  if (idx.size() != instance.size()+1)
186  return;
187  switch (idx[0])
188  {
189  case 0:
190  coerceValue(myGroup, ( ( value ) ));
191  break;
192  case 1:
193  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
194  break;
195  case 2:
196  coerceValue(myComputenorms, ( ( value ) ));
197  break;
198  case 3:
199  coerceValue(myNegate, ( ( value ) ));
200  break;
201  case 4:
202  coerceValue(myFillhole, ( ( value ) ));
203  break;
204  case 5:
205  coerceValue(myRemovegrp, ( ( value ) ));
206  break;
207 
208  }
209  }
210 
211  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
212  { doSetParmValue(idx, instance, value); }
213  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
214  { doSetParmValue(idx, instance, value); }
215  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
216  { doSetParmValue(idx, instance, value); }
217  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
218  { doSetParmValue(idx, instance, value); }
219  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
220  { doSetParmValue(idx, instance, value); }
221  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
232  { doSetParmValue(idx, instance, value); }
233 
234  exint getNestNumParms(TempIndex idx) const override
235  {
236  if (idx.size() == 0)
237  return 6;
238  switch (idx[0])
239  {
240 
241  }
242  // Invalid
243  return 0;
244  }
245 
246  const char *getNestParmName(TempIndex fieldnum) const override
247  {
248  if (fieldnum.size() < 1)
249  return 0;
250  switch (fieldnum[0])
251  {
252  case 0:
253  return "group";
254  case 1:
255  return "grouptype";
256  case 2:
257  return "computenorms";
258  case 3:
259  return "negate";
260  case 4:
261  return "fillhole";
262  case 5:
263  return "removegrp";
264 
265  }
266  return 0;
267  }
268 
269  ParmType getNestParmType(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return PARM_UNSUPPORTED;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return PARM_STRING;
277  case 1:
278  return PARM_INTEGER;
279  case 2:
280  return PARM_INTEGER;
281  case 3:
282  return PARM_INTEGER;
283  case 4:
284  return PARM_INTEGER;
285  case 5:
286  return PARM_INTEGER;
287 
288  }
289  return PARM_UNSUPPORTED;
290  }
291 
292  // Boiler plate to load individual types.
293  static void loadData(UT_IStream &is, int64 &v)
294  { is.bread(&v, 1); }
295  static void loadData(UT_IStream &is, bool &v)
296  { int64 iv; is.bread(&iv, 1); v = iv; }
297  static void loadData(UT_IStream &is, fpreal64 &v)
298  { is.bread<fpreal64>(&v, 1); }
299  static void loadData(UT_IStream &is, UT_Vector2D &v)
300  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
301  static void loadData(UT_IStream &is, UT_Vector3D &v)
302  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
303  is.bread<fpreal64>(&v.z(), 1); }
304  static void loadData(UT_IStream &is, UT_Vector4D &v)
305  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
306  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
307  static void loadData(UT_IStream &is, UT_Matrix2D &v)
308  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
309  static void loadData(UT_IStream &is, UT_Matrix3D &v)
310  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
311  static void loadData(UT_IStream &is, UT_Matrix4D &v)
312  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
313  static void loadData(UT_IStream &is, UT_Vector2I &v)
314  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector3I &v)
316  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
317  is.bread<int64>(&v.z(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector4I &v)
319  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
320  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
322  { is.bread(v); }
324  { UT_StringHolder rampdata;
325  loadData(is, rampdata);
326  if (rampdata.isstring())
327  {
328  v.reset(new UT_Ramp());
329  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
330  v->load(istr);
331  }
332  else v.reset();
333  }
336  loadData(is, data);
337  if (data.isstring())
338  {
339  // Find the data type.
340  const char *colon = UT_StringWrap(data).findChar(':');
341  if (colon)
342  {
343  int typelen = colon - data.buffer();
345  type.strncpy(data.buffer(), typelen);
346  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
347 
348  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
349  }
350  }
351  else v.reset();
352  }
353 
354  static void saveData(std::ostream &os, int64 v)
355  { UTwrite(os, &v); }
356  static void saveData(std::ostream &os, bool v)
357  { int64 iv = v; UTwrite(os, &iv); }
358  static void saveData(std::ostream &os, fpreal64 v)
359  { UTwrite<fpreal64>(os, &v); }
360  static void saveData(std::ostream &os, UT_Vector2D v)
361  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
362  static void saveData(std::ostream &os, UT_Vector3D v)
363  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
364  UTwrite<fpreal64>(os, &v.z()); }
365  static void saveData(std::ostream &os, UT_Vector4D v)
366  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
367  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
368  static void saveData(std::ostream &os, UT_Matrix2D v)
370  static void saveData(std::ostream &os, UT_Matrix3D v)
372  static void saveData(std::ostream &os, UT_Matrix4D v)
374  static void saveData(std::ostream &os, UT_StringHolder s)
375  { UT_StringWrap(s).saveBinary(os); }
376  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
378  UT_OStringStream ostr;
379  if (s) s->save(ostr);
380  result = ostr.str();
381  saveData(os, result);
382  }
383  static void saveData(std::ostream &os, PRM_DataItemHandle s)
385  UT_OStringStream ostr;
386  if (s)
387  {
388  ostr << s->getDataTypeToken();
389  ostr << ":";
390  s->saveBinary(ostr);
391  }
392  result = ostr.str();
393  saveData(os, result);
394  }
395 
396 
397  void save(std::ostream &os) const
398  {
399  int32 v = version();
400  UTwrite(os, &v);
401  saveData(os, myGroup);
402  saveData(os, myGrouptype);
403  saveData(os, myComputenorms);
404  saveData(os, myNegate);
405  saveData(os, myFillhole);
406  saveData(os, myRemovegrp);
407 
408  }
409 
410  bool load(UT_IStream &is)
411  {
412  int32 v;
413  is.bread(&v, 1);
414  if (version() != v)
415  {
416  // Fail incompatible versions
417  return false;
418  }
419  loadData(is, myGroup);
420  loadData(is, myGrouptype);
421  loadData(is, myComputenorms);
422  loadData(is, myNegate);
423  loadData(is, myFillhole);
424  loadData(is, myRemovegrp);
425 
426  return true;
427  }
428 
429  const UT_StringHolder & getGroup() const { return myGroup; }
430  void setGroup(const UT_StringHolder & val) { myGroup = val; }
432  {
433  SOP_Node *thissop = cookparms.getNode();
434  if (!thissop) return getGroup();
436  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
437  return result;
438  }
439  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
440  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
442  {
443  SOP_Node *thissop = cookparms.getNode();
444  if (!thissop) return getGrouptype();
445  int64 result;
446  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
447  return Grouptype(result);
448  }
449  bool getComputenorms() const { return myComputenorms; }
450  void setComputenorms(bool val) { myComputenorms = val; }
451  bool opComputenorms(const SOP_NodeVerb::CookParms &cookparms) const
452  {
453  SOP_Node *thissop = cookparms.getNode();
454  if (!thissop) return getComputenorms();
455  bool result;
456  OP_Utils::evalOpParm(result, thissop, "computenorms", cookparms.getCookTime(), 0);
457  return result;
458  }
459  bool getNegate() const { return myNegate; }
460  void setNegate(bool val) { myNegate = val; }
461  bool opNegate(const SOP_NodeVerb::CookParms &cookparms) const
462  {
463  SOP_Node *thissop = cookparms.getNode();
464  if (!thissop) return getNegate();
465  bool result;
466  OP_Utils::evalOpParm(result, thissop, "negate", cookparms.getCookTime(), 0);
467  return result;
468  }
469  bool getFillhole() const { return myFillhole; }
470  void setFillhole(bool val) { myFillhole = val; }
471  bool opFillhole(const SOP_NodeVerb::CookParms &cookparms) const
472  {
473  SOP_Node *thissop = cookparms.getNode();
474  if (!thissop) return getFillhole();
475  bool result;
476  OP_Utils::evalOpParm(result, thissop, "fillhole", cookparms.getCookTime(), 0);
477  return result;
478  }
479  bool getRemovegrp() const { return myRemovegrp; }
480  void setRemovegrp(bool val) { myRemovegrp = val; }
481  bool opRemovegrp(const SOP_NodeVerb::CookParms &cookparms) const
482  {
483  SOP_Node *thissop = cookparms.getNode();
484  if (!thissop) return getRemovegrp();
485  bool result;
486  OP_Utils::evalOpParm(result, thissop, "removegrp", cookparms.getCookTime(), 0);
487  return result;
488  }
489 
490 private:
491  UT_StringHolder myGroup;
492  int64 myGrouptype;
493  bool myComputenorms;
494  bool myNegate;
495  bool myFillhole;
496  bool myRemovegrp;
497 
498 };
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)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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