HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Fractal.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myDivs = 2;
33  mySmooth = 0.6;
34  myScale = 1;
35  mySeed = 1;
36  myFixed = false;
37  myVtxnms = false;
38  myNmlattrib = "N"_UTsh;
39  myDir = UT_Vector3D(0,1,0);
40 
41  }
42 
43  explicit SOP_FractalParms(const SOP_FractalParms &) = default;
44  SOP_FractalParms &operator=(const SOP_FractalParms &) = default;
45  SOP_FractalParms(SOP_FractalParms &&) noexcept = default;
46  SOP_FractalParms &operator=(SOP_FractalParms &&) noexcept = default;
47 
48  ~SOP_FractalParms() override {}
49 
50  bool operator==(const SOP_FractalParms &src) const
51  {
52  if (myGroup != src.myGroup) return false;
53  if (myDivs != src.myDivs) return false;
54  if (mySmooth != src.mySmooth) return false;
55  if (myScale != src.myScale) return false;
56  if (mySeed != src.mySeed) return false;
57  if (myFixed != src.myFixed) return false;
58  if (myVtxnms != src.myVtxnms) return false;
59  if (myNmlattrib != src.myNmlattrib) return false;
60  if (myDir != src.myDir) return false;
61 
62 
63  if (baseGetSignature() != src.baseGetSignature()) return false;
64 
65  return true;
66  }
67  bool operator!=(const SOP_FractalParms &src) const
68  {
69  return !operator==(src);
70  }
71 
72 
73 
74  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
75  {
76  myGroup = ""_UTsh;
77  if (true)
78  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
79  myDivs = 2;
80  if (true)
81  graph->evalOpParm(myDivs, nodeidx, "divs", time, graph->isDirect()?nullptr:depnode);
82  mySmooth = 0.6;
83  if (true)
84  graph->evalOpParm(mySmooth, nodeidx, "smooth", time, graph->isDirect()?nullptr:depnode);
85  myScale = 1;
86  if (true)
87  graph->evalOpParm(myScale, nodeidx, "scale", time, graph->isDirect()?nullptr:depnode);
88  mySeed = 1;
89  if (true)
90  graph->evalOpParm(mySeed, nodeidx, "seed", time, graph->isDirect()?nullptr:depnode);
91  myFixed = false;
92  if (true)
93  graph->evalOpParm(myFixed, nodeidx, "fixed", time, graph->isDirect()?nullptr:depnode);
94  myVtxnms = false;
95  if (true)
96  graph->evalOpParm(myVtxnms, nodeidx, "vtxnms", time, graph->isDirect()?nullptr:depnode);
97  myNmlattrib = "N"_UTsh;
98  if (true && ( (true&&!(((getVtxnms()==0)))) ) )
99  graph->evalOpParm(myNmlattrib, nodeidx, "nmlattrib", time, graph->isDirect()?nullptr:depnode);
100  myDir = UT_Vector3D(0,1,0);
101  if (true && ( (true&&!(((getVtxnms()==1)))) ) )
102  graph->evalOpParm(myDir, nodeidx, "dir", time, graph->isDirect()?nullptr:depnode);
103 
104  }
105 
106 
107  void loadFromOpSubclass(const LoadParms &loadparms) override
108  {
109  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
110  }
111 
112 
113  void copyFrom(const OP_NodeParms *src) override
114  {
115  *this = *((const SOP_FractalParms *)src);
116  }
117 
118  template <typename T>
119  void
120  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
121  {
122  if (idx.size() < 1)
123  return;
124  UT_ASSERT(idx.size() == instance.size()+1);
125  if (idx.size() != instance.size()+1)
126  return;
127  switch (idx[0])
128  {
129  case 0:
130  coerceValue(value, myGroup);
131  break;
132  case 1:
133  coerceValue(value, myDivs);
134  break;
135  case 2:
136  coerceValue(value, mySmooth);
137  break;
138  case 3:
139  coerceValue(value, myScale);
140  break;
141  case 4:
142  coerceValue(value, mySeed);
143  break;
144  case 5:
145  coerceValue(value, myFixed);
146  break;
147  case 6:
148  coerceValue(value, myVtxnms);
149  break;
150  case 7:
151  coerceValue(value, myNmlattrib);
152  break;
153  case 8:
154  coerceValue(value, myDir);
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(myDivs, clampMinValue(1, ( value ) ));
208  break;
209  case 2:
210  coerceValue(mySmooth, ( ( value ) ));
211  break;
212  case 3:
213  coerceValue(myScale, ( ( value ) ));
214  break;
215  case 4:
216  coerceValue(mySeed, ( ( value ) ));
217  break;
218  case 5:
219  coerceValue(myFixed, ( ( value ) ));
220  break;
221  case 6:
222  coerceValue(myVtxnms, ( ( value ) ));
223  break;
224  case 7:
225  coerceValue(myNmlattrib, ( ( value ) ));
226  break;
227  case 8:
228  coerceValue(myDir, ( ( value ) ));
229  break;
230 
231  }
232  }
233 
234  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
255  { doSetParmValue(idx, instance, value); }
256 
257  exint getNestNumParms(TempIndex idx) const override
258  {
259  if (idx.size() == 0)
260  return 9;
261  switch (idx[0])
262  {
263 
264  }
265  // Invalid
266  return 0;
267  }
268 
269  const char *getNestParmName(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return 0;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return "group";
277  case 1:
278  return "divs";
279  case 2:
280  return "smooth";
281  case 3:
282  return "scale";
283  case 4:
284  return "seed";
285  case 5:
286  return "fixed";
287  case 6:
288  return "vtxnms";
289  case 7:
290  return "nmlattrib";
291  case 8:
292  return "dir";
293 
294  }
295  return 0;
296  }
297 
298  ParmType getNestParmType(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return PARM_UNSUPPORTED;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return PARM_STRING;
306  case 1:
307  return PARM_INTEGER;
308  case 2:
309  return PARM_FLOAT;
310  case 3:
311  return PARM_FLOAT;
312  case 4:
313  return PARM_INTEGER;
314  case 5:
315  return PARM_INTEGER;
316  case 6:
317  return PARM_INTEGER;
318  case 7:
319  return PARM_STRING;
320  case 8:
321  return PARM_VECTOR3;
322 
323  }
324  return PARM_UNSUPPORTED;
325  }
326 
327  // Boiler plate to load individual types.
328  static void loadData(UT_IStream &is, int64 &v)
329  { is.bread(&v, 1); }
330  static void loadData(UT_IStream &is, bool &v)
331  { int64 iv; is.bread(&iv, 1); v = iv; }
332  static void loadData(UT_IStream &is, fpreal64 &v)
333  { is.bread<fpreal64>(&v, 1); }
334  static void loadData(UT_IStream &is, UT_Vector2D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
341  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix2D &v)
343  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Matrix3D &v)
345  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
346  static void loadData(UT_IStream &is, UT_Matrix4D &v)
347  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
348  static void loadData(UT_IStream &is, UT_Vector2I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
355  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
357  { is.bread(v); }
359  { UT_StringHolder rampdata;
360  loadData(is, rampdata);
361  if (rampdata.isstring())
362  {
363  v.reset(new UT_Ramp());
364  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
365  v->load(istr);
366  }
367  else v.reset();
368  }
371  loadData(is, data);
372  if (data.isstring())
373  {
374  // Find the data type.
375  const char *colon = UT_StringWrap(data).findChar(':');
376  if (colon)
377  {
378  int typelen = colon - data.buffer();
380  type.strncpy(data.buffer(), typelen);
381  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
382 
383  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
384  }
385  }
386  else v.reset();
387  }
388 
389  static void saveData(std::ostream &os, int64 v)
390  { UTwrite(os, &v); }
391  static void saveData(std::ostream &os, bool v)
392  { int64 iv = v; UTwrite(os, &iv); }
393  static void saveData(std::ostream &os, fpreal64 v)
394  { UTwrite<fpreal64>(os, &v); }
395  static void saveData(std::ostream &os, UT_Vector2D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
397  static void saveData(std::ostream &os, UT_Vector3D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); }
400  static void saveData(std::ostream &os, UT_Vector4D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
402  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
403  static void saveData(std::ostream &os, UT_Matrix2D v)
405  static void saveData(std::ostream &os, UT_Matrix3D v)
407  static void saveData(std::ostream &os, UT_Matrix4D v)
409  static void saveData(std::ostream &os, UT_StringHolder s)
410  { UT_StringWrap(s).saveBinary(os); }
411  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
413  UT_OStringStream ostr;
414  if (s) s->save(ostr);
415  result = ostr.str();
416  saveData(os, result);
417  }
418  static void saveData(std::ostream &os, PRM_DataItemHandle s)
420  UT_OStringStream ostr;
421  if (s)
422  {
423  ostr << s->getDataTypeToken();
424  ostr << ":";
425  s->saveBinary(ostr);
426  }
427  result = ostr.str();
428  saveData(os, result);
429  }
430 
431 
432  void save(std::ostream &os) const
433  {
434  int32 v = version();
435  UTwrite(os, &v);
436  saveData(os, myGroup);
437  saveData(os, myDivs);
438  saveData(os, mySmooth);
439  saveData(os, myScale);
440  saveData(os, mySeed);
441  saveData(os, myFixed);
442  saveData(os, myVtxnms);
443  saveData(os, myNmlattrib);
444  saveData(os, myDir);
445 
446  }
447 
448  bool load(UT_IStream &is)
449  {
450  int32 v;
451  is.bread(&v, 1);
452  if (version() != v)
453  {
454  // Fail incompatible versions
455  return false;
456  }
457  loadData(is, myGroup);
458  loadData(is, myDivs);
459  loadData(is, mySmooth);
460  loadData(is, myScale);
461  loadData(is, mySeed);
462  loadData(is, myFixed);
463  loadData(is, myVtxnms);
464  loadData(is, myNmlattrib);
465  loadData(is, myDir);
466 
467  return true;
468  }
469 
470  const UT_StringHolder & getGroup() const { return myGroup; }
471  void setGroup(const UT_StringHolder & val) { myGroup = val; }
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getGroup();
477  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
478  return result;
479  }
480  int64 getDivs() const { return myDivs; }
481  void setDivs(int64 val) { myDivs = val; }
482  int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getDivs();
486  int64 result;
487  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
488  return result;
489  }
490  fpreal64 getSmooth() const { return mySmooth; }
491  void setSmooth(fpreal64 val) { mySmooth = val; }
492  fpreal64 opSmooth(const SOP_NodeVerb::CookParms &cookparms) const
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getSmooth();
497  OP_Utils::evalOpParm(result, thissop, "smooth", cookparms.getCookTime(), 0);
498  return result;
499  }
500  fpreal64 getScale() const { return myScale; }
501  void setScale(fpreal64 val) { myScale = val; }
502  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getScale();
507  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
508  return result;
509  }
510  int64 getSeed() const { return mySeed; }
511  void setSeed(int64 val) { mySeed = val; }
512  int64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getSeed();
516  int64 result;
517  OP_Utils::evalOpParm(result, thissop, "seed", cookparms.getCookTime(), 0);
518  return result;
519  }
520  bool getFixed() const { return myFixed; }
521  void setFixed(bool val) { myFixed = val; }
522  bool opFixed(const SOP_NodeVerb::CookParms &cookparms) const
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getFixed();
526  bool result;
527  OP_Utils::evalOpParm(result, thissop, "fixed", cookparms.getCookTime(), 0);
528  return result;
529  }
530  bool getVtxnms() const { return myVtxnms; }
531  void setVtxnms(bool val) { myVtxnms = val; }
532  bool opVtxnms(const SOP_NodeVerb::CookParms &cookparms) const
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getVtxnms();
536  bool result;
537  OP_Utils::evalOpParm(result, thissop, "vtxnms", cookparms.getCookTime(), 0);
538  return result;
539  }
540  const UT_StringHolder & getNmlattrib() const { return myNmlattrib; }
541  void setNmlattrib(const UT_StringHolder & val) { myNmlattrib = val; }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getNmlattrib();
547  OP_Utils::evalOpParm(result, thissop, "nmlattrib", cookparms.getCookTime(), 0);
548  return result;
549  }
550  UT_Vector3D getDir() const { return myDir; }
551  void setDir(UT_Vector3D val) { myDir = val; }
552  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getDir();
557  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
558  return result;
559  }
560 
561 private:
562  UT_StringHolder myGroup;
563  int64 myDivs;
564  fpreal64 mySmooth;
565  fpreal64 myScale;
566  int64 mySeed;
567  bool myFixed;
568  bool myVtxnms;
569  UT_StringHolder myNmlattrib;
570  UT_Vector3D myDir;
571 
572 };
bool operator!=(const SOP_FractalParms &src) const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
type
Definition: core.h:556
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Vector2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setGroup(const UT_StringHolder &val)
void setSeed(int64 val)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setFixed(bool val)
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
const UT_StringHolder & getGroup() const
GLsizei const GLfloat * value
Definition: glcorearb.h:824
UT_StringHolder opNmlattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setScale(fpreal64 val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
const UT_StringHolder & getNmlattrib() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setDivs(int64 val)
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GLdouble s
Definition: glad.h:3009
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator==(const SOP_FractalParms &src) const
const char * getNestParmName(TempIndex fieldnum) const override
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:622
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:317
fpreal64 opSmooth(const SOP_NodeVerb::CookParms &cookparms) const
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.
bool getVtxnms() const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector2I &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 loadData(UT_IStream &is, bool &v)
bool opVtxnms(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
bool isParmColorRamp(exint idx) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setNmlattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
long long int64
Definition: SYS_Types.h:116
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getSmooth() const
bool opFixed(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3T< fpreal64 > UT_Vector3D
int64 getDivs() const
int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_Vector3D getDir() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setSmooth(fpreal64 val)
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:310
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, UT_Vector4D v)
int64 getSeed() const
fpreal64 fpreal
Definition: SYS_Types.h:278
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, fpreal64 v)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
bool getFixed() const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
fpreal64 getScale() const
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
Definition: Mat.h:633
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool load(UT_IStream &is)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
ParmType getNestParmType(TempIndex fieldnum) const override
void save(std::ostream &os) const
void setVtxnms(bool val)
int64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
exint getNestNumParms(TempIndex idx) const override
static int version()
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setDir(UT_Vector3D val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_Vector3D v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, int64 v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663