HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeConvolve3.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_VolumeConvolve3Enums
24 {
25  enum class Operation
26  {
27  ADD = 0,
28  ADDABS,
29  MUL,
30  MAX,
31  MIN
32  };
33 
35  getToken(Operation enum_value)
36  {
37  using namespace UT::Literal;
38  switch (enum_value) {
39  case Operation::ADD: return "add"_sh;
40  case Operation::ADDABS: return "addabs"_sh;
41  case Operation::MUL: return "mul"_sh;
42  case Operation::MAX: return "max"_sh;
43  case Operation::MIN: return "min"_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  myConvolveZM = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
60  myConvolveZZ = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
61  myConvolveZP = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
62  myNormalize = false;
63  myOperation = 0;
64 
65  }
66 
67  explicit SOP_VolumeConvolve3Parms(const SOP_VolumeConvolve3Parms &) = default;
70  SOP_VolumeConvolve3Parms &operator=(SOP_VolumeConvolve3Parms &&) noexcept = default;
71 
72  ~SOP_VolumeConvolve3Parms() override {}
73 
75  {
76  if (myGroup != src.myGroup) return false;
77  if (myConvolveZM != src.myConvolveZM) return false;
78  if (myConvolveZZ != src.myConvolveZZ) return false;
79  if (myConvolveZP != src.myConvolveZP) return false;
80  if (myNormalize != src.myNormalize) return false;
81  if (myOperation != src.myOperation) return false;
82 
83  return true;
84  }
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  myConvolveZM = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
99  if (true)
100  graph->evalOpParm(myConvolveZM, nodeidx, "convolvezm", time, 0);
101  myConvolveZZ = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
102  if (true)
103  graph->evalOpParm(myConvolveZZ, nodeidx, "convolvezz", time, 0);
104  myConvolveZP = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
105  if (true)
106  graph->evalOpParm(myConvolveZP, nodeidx, "convolvezp", time, 0);
107  myNormalize = false;
108  if (true)
109  graph->evalOpParm(myNormalize, nodeidx, "normalize", time, 0);
110  myOperation = 0;
111  if (true)
112  graph->evalOpParm(myOperation, nodeidx, "operation", 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_VolumeConvolve3Parms *)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, myConvolveZM);
144  break;
145  case 2:
146  coerceValue(value, myConvolveZZ);
147  break;
148  case 3:
149  coerceValue(value, myConvolveZP);
150  break;
151  case 4:
152  coerceValue(value, myNormalize);
153  break;
154  case 5:
155  coerceValue(value, myOperation);
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(myConvolveZM, ( ( value ) ));
209  break;
210  case 2:
211  coerceValue(myConvolveZZ, ( ( value ) ));
212  break;
213  case 3:
214  coerceValue(myConvolveZP, ( ( value ) ));
215  break;
216  case 4:
217  coerceValue(myNormalize, ( ( value ) ));
218  break;
219  case 5:
220  coerceValue(myOperation, clampMinValue(0, clampMaxValue(4, 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 "convolvezm";
271  case 2:
272  return "convolvezz";
273  case 3:
274  return "convolvezp";
275  case 4:
276  return "normalize";
277  case 5:
278  return "operation";
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_MATRIX3;
294  case 2:
295  return PARM_MATRIX3;
296  case 3:
297  return PARM_MATRIX3;
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, myConvolveZM);
418  saveData(os, myConvolveZZ);
419  saveData(os, myConvolveZP);
420  saveData(os, myNormalize);
421  saveData(os, myOperation);
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, myConvolveZM);
436  loadData(is, myConvolveZZ);
437  loadData(is, myConvolveZP);
438  loadData(is, myNormalize);
439  loadData(is, myOperation);
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  UT_Matrix3D getConvolveZM() const { return myConvolveZM; }
455  void setConvolveZM(UT_Matrix3D val) { myConvolveZM = val; }
457  {
458  SOP_Node *thissop = cookparms.getNode();
459  if (!thissop) return getConvolveZM();
461  OP_Utils::evalOpParm(result, thissop, "convolvezm", cookparms.getCookTime(), 0);
462  return result;
463  }
464  UT_Matrix3D getConvolveZZ() const { return myConvolveZZ; }
465  void setConvolveZZ(UT_Matrix3D val) { myConvolveZZ = val; }
467  {
468  SOP_Node *thissop = cookparms.getNode();
469  if (!thissop) return getConvolveZZ();
471  OP_Utils::evalOpParm(result, thissop, "convolvezz", cookparms.getCookTime(), 0);
472  return result;
473  }
474  UT_Matrix3D getConvolveZP() const { return myConvolveZP; }
475  void setConvolveZP(UT_Matrix3D val) { myConvolveZP = val; }
477  {
478  SOP_Node *thissop = cookparms.getNode();
479  if (!thissop) return getConvolveZP();
481  OP_Utils::evalOpParm(result, thissop, "convolvezp", cookparms.getCookTime(), 0);
482  return result;
483  }
484  bool getNormalize() const { return myNormalize; }
485  void setNormalize(bool val) { myNormalize = val; }
486  bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
487  {
488  SOP_Node *thissop = cookparms.getNode();
489  if (!thissop) return getNormalize();
490  bool result;
491  OP_Utils::evalOpParm(result, thissop, "normalize", cookparms.getCookTime(), 0);
492  return result;
493  }
494  Operation getOperation() const { return Operation(myOperation); }
495  void setOperation(Operation val) { myOperation = int64(val); }
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getOperation();
500  int64 result;
501  OP_Utils::evalOpParm(result, thissop, "operation", cookparms.getCookTime(), 0);
502  return Operation(result);
503  }
504 
505 private:
506  UT_StringHolder myGroup;
507  UT_Matrix3D myConvolveZM;
508  UT_Matrix3D myConvolveZZ;
509  UT_Matrix3D myConvolveZP;
510  bool myNormalize;
511  int64 myOperation;
512 
513 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, int64 &v)
void setConvolveZZ(UT_Matrix3D val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
SYS_FORCE_INLINE UT_StringHolder getToken(Operation enum_value)
static void loadData(UT_IStream &is, bool &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
UT_Matrix3D opConvolveZP(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, fpreal64 &v)
**But if you need a result
Definition: thread.h:613
bool operator==(const SOP_VolumeConvolve3Parms &src) const
UT_Matrix3D opConvolveZM(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Vector4D v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static void saveData(std::ostream &os, fpreal64 v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool operator!=(const SOP_VolumeConvolve3Parms &src) const
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D 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 loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const 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)
static void saveData(std::ostream &os, int64 v)
Operation opOperation(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
long long int64
Definition: SYS_Types.h:116
void copyFrom(const OP_NodeParms *src) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void loadData(UT_IStream &is, UT_Vector3D &v)
GT_API const UT_StringHolder version
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
void setConvolveZM(UT_Matrix3D val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setGroup(const UT_StringHolder &val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool isParmColorRamp(exint idx) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, UT_Vector4I &v)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
exint getNestNumParms(TempIndex idx) const override
GLboolean r
Definition: glcorearb.h:1222
UT_Matrix3D opConvolveZZ(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setConvolveZP(UT_Matrix3D val)
static void loadData(UT_IStream &is, UT_Vector3I &v)
UT_Matrix3T< fpreal64 > UT_Matrix3D
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663