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