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