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 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_UTsh;
44  myConvolveZM = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
45  myConvolveZZ = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
46  myConvolveZP = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
47  myNormalize = false;
48  myOperation = 0;
49 
50  }
51 
52  explicit SOP_VolumeConvolve3Parms(const SOP_VolumeConvolve3Parms &) = default;
55  SOP_VolumeConvolve3Parms &operator=(SOP_VolumeConvolve3Parms &&) noexcept = default;
56 
57  ~SOP_VolumeConvolve3Parms() override {}
58 
60  {
61  if (myGroup != src.myGroup) return false;
62  if (myConvolveZM != src.myConvolveZM) return false;
63  if (myConvolveZZ != src.myConvolveZZ) return false;
64  if (myConvolveZP != src.myConvolveZP) return false;
65  if (myNormalize != src.myNormalize) return false;
66  if (myOperation != src.myOperation) return false;
67 
68  return true;
69  }
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  myConvolveZM = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
84  if (true)
85  graph->evalOpParm(myConvolveZM, nodeidx, "convolvezm", time, 0);
86  myConvolveZZ = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
87  if (true)
88  graph->evalOpParm(myConvolveZZ, nodeidx, "convolvezz", time, 0);
89  myConvolveZP = UT_Matrix3D(0,0,0,0,0,0,0,0,0);
90  if (true)
91  graph->evalOpParm(myConvolveZP, nodeidx, "convolvezp", time, 0);
92  myNormalize = false;
93  if (true)
94  graph->evalOpParm(myNormalize, nodeidx, "normalize", time, 0);
95  myOperation = 0;
96  if (true)
97  graph->evalOpParm(myOperation, nodeidx, "operation", 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_VolumeConvolve3Parms *)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, myConvolveZM);
129  break;
130  case 2:
131  coerceValue(value, myConvolveZZ);
132  break;
133  case 3:
134  coerceValue(value, myConvolveZP);
135  break;
136  case 4:
137  coerceValue(value, myNormalize);
138  break;
139  case 5:
140  coerceValue(value, myOperation);
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(myConvolveZM, ( ( value ) ));
194  break;
195  case 2:
196  coerceValue(myConvolveZZ, ( ( value ) ));
197  break;
198  case 3:
199  coerceValue(myConvolveZP, ( ( value ) ));
200  break;
201  case 4:
202  coerceValue(myNormalize, ( ( value ) ));
203  break;
204  case 5:
205  coerceValue(myOperation, clampMinValue(0, clampMaxValue(4, 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 "convolvezm";
256  case 2:
257  return "convolvezz";
258  case 3:
259  return "convolvezp";
260  case 4:
261  return "normalize";
262  case 5:
263  return "operation";
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_MATRIX3;
279  case 2:
280  return PARM_MATRIX3;
281  case 3:
282  return PARM_MATRIX3;
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, myConvolveZM);
403  saveData(os, myConvolveZZ);
404  saveData(os, myConvolveZP);
405  saveData(os, myNormalize);
406  saveData(os, myOperation);
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, myConvolveZM);
421  loadData(is, myConvolveZZ);
422  loadData(is, myConvolveZP);
423  loadData(is, myNormalize);
424  loadData(is, myOperation);
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  UT_Matrix3D getConvolveZM() const { return myConvolveZM; }
440  void setConvolveZM(UT_Matrix3D val) { myConvolveZM = val; }
442  {
443  SOP_Node *thissop = cookparms.getNode();
444  if (!thissop) return getConvolveZM();
446  OP_Utils::evalOpParm(result, thissop, "convolvezm", cookparms.getCookTime(), 0);
447  return result;
448  }
449  UT_Matrix3D getConvolveZZ() const { return myConvolveZZ; }
450  void setConvolveZZ(UT_Matrix3D val) { myConvolveZZ = val; }
452  {
453  SOP_Node *thissop = cookparms.getNode();
454  if (!thissop) return getConvolveZZ();
456  OP_Utils::evalOpParm(result, thissop, "convolvezz", cookparms.getCookTime(), 0);
457  return result;
458  }
459  UT_Matrix3D getConvolveZP() const { return myConvolveZP; }
460  void setConvolveZP(UT_Matrix3D val) { myConvolveZP = val; }
462  {
463  SOP_Node *thissop = cookparms.getNode();
464  if (!thissop) return getConvolveZP();
466  OP_Utils::evalOpParm(result, thissop, "convolvezp", cookparms.getCookTime(), 0);
467  return result;
468  }
469  bool getNormalize() const { return myNormalize; }
470  void setNormalize(bool val) { myNormalize = val; }
471  bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
472  {
473  SOP_Node *thissop = cookparms.getNode();
474  if (!thissop) return getNormalize();
475  bool result;
476  OP_Utils::evalOpParm(result, thissop, "normalize", cookparms.getCookTime(), 0);
477  return result;
478  }
479  Operation getOperation() const { return Operation(myOperation); }
480  void setOperation(Operation val) { myOperation = int64(val); }
482  {
483  SOP_Node *thissop = cookparms.getNode();
484  if (!thissop) return getOperation();
485  int64 result;
486  OP_Utils::evalOpParm(result, thissop, "operation", cookparms.getCookTime(), 0);
487  return Operation(result);
488  }
489 
490 private:
491  UT_StringHolder myGroup;
492  UT_Matrix3D myConvolveZM;
493  UT_Matrix3D myConvolveZZ;
494  UT_Matrix3D myConvolveZP;
495  bool myNormalize;
496  int64 myOperation;
497 
498 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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 coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
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:88
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:1385
#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:89
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)
OP_NodeParms & operator=(const OP_NodeParms &)=default
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