HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_WalkOnSurface.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_WalkOnSurfaceEnums
24 {
25  enum class CenterPointsSource
26  {
27  FIRSTINPUT = 0,
29  };
30 
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case CenterPointsSource::FIRSTINPUT: return "firstinput"_sh;
37  case CenterPointsSource::SECONDINPUT: return "secondinput"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class BoundaryBehavior
43  {
44  REFLECT = 0,
45  TERMINATE
46  };
47 
50  {
51  using namespace UT::Literal;
52  switch (enum_value) {
53  case BoundaryBehavior::REFLECT: return "reflect"_sh;
54  case BoundaryBehavior::TERMINATE: return "terminate"_sh;
55  default: UT_ASSERT(false); return ""_sh;
56  }
57  }
58 
59 }
60 
61 
63 {
64 public:
65  static int version() { return 1; }
66 
68  {
69  myGroup = ""_UTsh;
70  myCenterPointsSource = 0;
71  mySrcPoints = ""_UTsh;
72  myBoundaryBehavior = 0;
73  myDirAttrib = "dir"_UTsh;
74  myLengthAttrib = "length"_UTsh;
75  myGlobalRotation = 0;
76  myLengthMultiplier = 1;
77 
78  }
79 
80  explicit SOP_WalkOnSurfaceParms(const SOP_WalkOnSurfaceParms &) = default;
82  SOP_WalkOnSurfaceParms(SOP_WalkOnSurfaceParms &&) noexcept = default;
83  SOP_WalkOnSurfaceParms &operator=(SOP_WalkOnSurfaceParms &&) noexcept = default;
84 
85  ~SOP_WalkOnSurfaceParms() override {}
86 
88  {
89  if (myGroup != src.myGroup) return false;
90  if (myCenterPointsSource != src.myCenterPointsSource) return false;
91  if (mySrcPoints != src.mySrcPoints) return false;
92  if (myBoundaryBehavior != src.myBoundaryBehavior) return false;
93  if (myDirAttrib != src.myDirAttrib) return false;
94  if (myLengthAttrib != src.myLengthAttrib) return false;
95  if (myGlobalRotation != src.myGlobalRotation) return false;
96  if (myLengthMultiplier != src.myLengthMultiplier) return false;
97 
98 
99  if (baseGetSignature() != src.baseGetSignature()) return false;
100 
101  return true;
102  }
104  {
105  return !operator==(src);
106  }
109 
110 
111 
112  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
113  {
114  myGroup = ""_UTsh;
115  if (true)
116  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
117  myCenterPointsSource = 0;
118  if (true)
119  graph->evalOpParm(myCenterPointsSource, nodeidx, "centerpointsource", time, graph->isDirect()?nullptr:depnode);
120  mySrcPoints = ""_UTsh;
121  if (true)
122  graph->evalOpParm(mySrcPoints, nodeidx, "srcpoints", time, graph->isDirect()?nullptr:depnode);
123  myBoundaryBehavior = 0;
124  if (true)
125  graph->evalOpParm(myBoundaryBehavior, nodeidx, "boundarybehavior", time, graph->isDirect()?nullptr:depnode);
126  myDirAttrib = "dir"_UTsh;
127  if (true)
128  graph->evalOpParm(myDirAttrib, nodeidx, "dirattrib", time, graph->isDirect()?nullptr:depnode);
129  myLengthAttrib = "length"_UTsh;
130  if (true)
131  graph->evalOpParm(myLengthAttrib, nodeidx, "distattrib", time, graph->isDirect()?nullptr:depnode);
132  myGlobalRotation = 0;
133  if (true)
134  graph->evalOpParm(myGlobalRotation, nodeidx, "globalrotation", time, graph->isDirect()?nullptr:depnode);
135  myLengthMultiplier = 1;
136  if (true)
137  graph->evalOpParm(myLengthMultiplier, nodeidx, "lengthmultiplier", time, graph->isDirect()?nullptr:depnode);
138 
139  }
140 
141 
142  void loadFromOpSubclass(const LoadParms &loadparms) override
143  {
144  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
145  }
146 
147 
148  void copyFrom(const OP_NodeParms *src) override
149  {
150  *this = *((const SOP_WalkOnSurfaceParms *)src);
151  }
152 
153  template <typename T>
154  void
155  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
156  {
157  if (idx.size() < 1)
158  return;
159  UT_ASSERT(idx.size() == instance.size()+1);
160  if (idx.size() != instance.size()+1)
161  return;
162  switch (idx[0])
163  {
164  case 0:
165  coerceValue(value, myGroup);
166  break;
167  case 1:
168  coerceValue(value, myCenterPointsSource);
169  break;
170  case 2:
171  coerceValue(value, mySrcPoints);
172  break;
173  case 3:
174  coerceValue(value, myBoundaryBehavior);
175  break;
176  case 4:
177  coerceValue(value, myDirAttrib);
178  break;
179  case 5:
180  coerceValue(value, myLengthAttrib);
181  break;
182  case 6:
183  coerceValue(value, myGlobalRotation);
184  break;
185  case 7:
186  coerceValue(value, myLengthMultiplier);
187  break;
188 
189  }
190  }
191 
192  bool isParmColorRamp(exint idx) const override
193  {
194  switch (idx)
195  {
196 
197  }
198  return false;
199  }
200 
201  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
222  { doGetParmValue(idx, instance, value); }
223 
224  template <typename T>
225  void
226  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
227  {
228  if (idx.size() < 1)
229  return;
230  UT_ASSERT(idx.size() == instance.size()+1);
231  if (idx.size() != instance.size()+1)
232  return;
233  switch (idx[0])
234  {
235  case 0:
236  coerceValue(myGroup, ( ( value ) ));
237  break;
238  case 1:
239  coerceValue(myCenterPointsSource, clampMinValue(0, clampMaxValue(1, value ) ));
240  break;
241  case 2:
242  coerceValue(mySrcPoints, ( ( value ) ));
243  break;
244  case 3:
245  coerceValue(myBoundaryBehavior, clampMinValue(0, clampMaxValue(1, value ) ));
246  break;
247  case 4:
248  coerceValue(myDirAttrib, ( ( value ) ));
249  break;
250  case 5:
251  coerceValue(myLengthAttrib, ( ( value ) ));
252  break;
253  case 6:
254  coerceValue(myGlobalRotation, clampMinValue(-180, clampMaxValue(180, value ) ));
255  break;
256  case 7:
257  coerceValue(myLengthMultiplier, ( ( value ) ));
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 8;
290  switch (idx[0])
291  {
292 
293  }
294  // Invalid
295  return 0;
296  }
297 
298  const char *getNestParmName(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return 0;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return "group";
306  case 1:
307  return "centerpointsource";
308  case 2:
309  return "srcpoints";
310  case 3:
311  return "boundarybehavior";
312  case 4:
313  return "dirattrib";
314  case 5:
315  return "distattrib";
316  case 6:
317  return "globalrotation";
318  case 7:
319  return "lengthmultiplier";
320 
321  }
322  return 0;
323  }
324 
325  ParmType getNestParmType(TempIndex fieldnum) const override
326  {
327  if (fieldnum.size() < 1)
328  return PARM_UNSUPPORTED;
329  switch (fieldnum[0])
330  {
331  case 0:
332  return PARM_STRING;
333  case 1:
334  return PARM_INTEGER;
335  case 2:
336  return PARM_STRING;
337  case 3:
338  return PARM_INTEGER;
339  case 4:
340  return PARM_STRING;
341  case 5:
342  return PARM_STRING;
343  case 6:
344  return PARM_FLOAT;
345  case 7:
346  return PARM_FLOAT;
347 
348  }
349  return PARM_UNSUPPORTED;
350  }
351 
352  // Boiler plate to load individual types.
353  static void loadData(UT_IStream &is, int64 &v)
354  { is.bread(&v, 1); }
355  static void loadData(UT_IStream &is, bool &v)
356  { int64 iv; is.bread(&iv, 1); v = iv; }
357  static void loadData(UT_IStream &is, fpreal64 &v)
358  { is.bread<fpreal64>(&v, 1); }
359  static void loadData(UT_IStream &is, UT_Vector2D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
361  static void loadData(UT_IStream &is, UT_Vector3D &v)
362  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
363  is.bread<fpreal64>(&v.z(), 1); }
364  static void loadData(UT_IStream &is, UT_Vector4D &v)
365  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
366  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
367  static void loadData(UT_IStream &is, UT_Matrix2D &v)
368  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
369  static void loadData(UT_IStream &is, UT_Matrix3D &v)
370  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
371  static void loadData(UT_IStream &is, UT_Matrix4D &v)
372  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
373  static void loadData(UT_IStream &is, UT_Vector2I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector3I &v)
376  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
377  is.bread<int64>(&v.z(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector4I &v)
379  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
380  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
382  { is.bread(v); }
384  { UT_StringHolder rampdata;
385  loadData(is, rampdata);
386  if (rampdata.isstring())
387  {
388  v.reset(new UT_Ramp());
389  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
390  v->load(istr);
391  }
392  else v.reset();
393  }
396  loadData(is, data);
397  if (data.isstring())
398  {
399  // Find the data type.
400  const char *colon = UT_StringWrap(data).findChar(':');
401  if (colon)
402  {
403  int typelen = colon - data.buffer();
405  type.strncpy(data.buffer(), typelen);
406  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
407 
408  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
409  }
410  }
411  else v.reset();
412  }
413 
414  static void saveData(std::ostream &os, int64 v)
415  { UTwrite(os, &v); }
416  static void saveData(std::ostream &os, bool v)
417  { int64 iv = v; UTwrite(os, &iv); }
418  static void saveData(std::ostream &os, fpreal64 v)
419  { UTwrite<fpreal64>(os, &v); }
420  static void saveData(std::ostream &os, UT_Vector2D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
422  static void saveData(std::ostream &os, UT_Vector3D v)
423  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
424  UTwrite<fpreal64>(os, &v.z()); }
425  static void saveData(std::ostream &os, UT_Vector4D v)
426  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
427  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
428  static void saveData(std::ostream &os, UT_Matrix2D v)
430  static void saveData(std::ostream &os, UT_Matrix3D v)
432  static void saveData(std::ostream &os, UT_Matrix4D v)
434  static void saveData(std::ostream &os, UT_StringHolder s)
435  { UT_StringWrap(s).saveBinary(os); }
436  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
438  UT_OStringStream ostr;
439  if (s) s->save(ostr);
440  result = ostr.str();
441  saveData(os, result);
442  }
443  static void saveData(std::ostream &os, PRM_DataItemHandle s)
445  UT_OStringStream ostr;
446  if (s)
447  {
448  ostr << s->getDataTypeToken();
449  ostr << ":";
450  s->saveBinary(ostr);
451  }
452  result = ostr.str();
453  saveData(os, result);
454  }
455 
456 
457  void save(std::ostream &os) const
458  {
459  int32 v = version();
460  UTwrite(os, &v);
461  saveData(os, myGroup);
462  saveData(os, myCenterPointsSource);
463  saveData(os, mySrcPoints);
464  saveData(os, myBoundaryBehavior);
465  saveData(os, myDirAttrib);
466  saveData(os, myLengthAttrib);
467  saveData(os, myGlobalRotation);
468  saveData(os, myLengthMultiplier);
469 
470  }
471 
472  bool load(UT_IStream &is)
473  {
474  int32 v;
475  is.bread(&v, 1);
476  if (version() != v)
477  {
478  // Fail incompatible versions
479  return false;
480  }
481  loadData(is, myGroup);
482  loadData(is, myCenterPointsSource);
483  loadData(is, mySrcPoints);
484  loadData(is, myBoundaryBehavior);
485  loadData(is, myDirAttrib);
486  loadData(is, myLengthAttrib);
487  loadData(is, myGlobalRotation);
488  loadData(is, myLengthMultiplier);
489 
490  return true;
491  }
492 
493  const UT_StringHolder & getGroup() const { return myGroup; }
494  void setGroup(const UT_StringHolder & val) { myGroup = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getGroup();
500  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
501  return result;
502  }
503  CenterPointsSource getCenterPointsSource() const { return CenterPointsSource(myCenterPointsSource); }
504  void setCenterPointsSource(CenterPointsSource val) { myCenterPointsSource = int64(val); }
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getCenterPointsSource();
509  int64 result;
510  OP_Utils::evalOpParm(result, thissop, "centerpointsource", cookparms.getCookTime(), 0);
511  return CenterPointsSource(result);
512  }
513  const UT_StringHolder & getSrcPoints() const { return mySrcPoints; }
514  void setSrcPoints(const UT_StringHolder & val) { mySrcPoints = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getSrcPoints();
520  OP_Utils::evalOpParm(result, thissop, "srcpoints", cookparms.getCookTime(), 0);
521  return result;
522  }
523  BoundaryBehavior getBoundaryBehavior() const { return BoundaryBehavior(myBoundaryBehavior); }
524  void setBoundaryBehavior(BoundaryBehavior val) { myBoundaryBehavior = int64(val); }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getBoundaryBehavior();
529  int64 result;
530  OP_Utils::evalOpParm(result, thissop, "boundarybehavior", cookparms.getCookTime(), 0);
531  return BoundaryBehavior(result);
532  }
533  const UT_StringHolder & getDirAttrib() const { return myDirAttrib; }
534  void setDirAttrib(const UT_StringHolder & val) { myDirAttrib = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getDirAttrib();
540  OP_Utils::evalOpParm(result, thissop, "dirattrib", cookparms.getCookTime(), 0);
541  return result;
542  }
543  const UT_StringHolder & getLengthAttrib() const { return myLengthAttrib; }
544  void setLengthAttrib(const UT_StringHolder & val) { myLengthAttrib = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getLengthAttrib();
550  OP_Utils::evalOpParm(result, thissop, "distattrib", cookparms.getCookTime(), 0);
551  return result;
552  }
553  fpreal64 getGlobalRotation() const { return myGlobalRotation; }
554  void setGlobalRotation(fpreal64 val) { myGlobalRotation = val; }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getGlobalRotation();
560  OP_Utils::evalOpParm(result, thissop, "globalrotation", cookparms.getCookTime(), 0);
561  return result;
562  }
563  fpreal64 getLengthMultiplier() const { return myLengthMultiplier; }
564  void setLengthMultiplier(fpreal64 val) { myLengthMultiplier = val; }
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getLengthMultiplier();
570  OP_Utils::evalOpParm(result, thissop, "lengthmultiplier", cookparms.getCookTime(), 0);
571  return result;
572  }
573 
574 private:
575  UT_StringHolder myGroup;
576  int64 myCenterPointsSource;
577  UT_StringHolder mySrcPoints;
578  int64 myBoundaryBehavior;
579  UT_StringHolder myDirAttrib;
580  UT_StringHolder myLengthAttrib;
581  fpreal64 myGlobalRotation;
582  fpreal64 myLengthMultiplier;
583 
584 };
type
Definition: core.h:556
static void loadData(UT_IStream &is, UT_StringHolder &v)
const char * getNestParmName(TempIndex fieldnum) const override
fpreal64 getLengthMultiplier() const
static void saveData(std::ostream &os, UT_Matrix4D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Vector4D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
UT_StringHolder opSrcPoints(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setLengthAttrib(const UT_StringHolder &val)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
fpreal64 getGlobalRotation() const
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
ParmType getNestParmType(TempIndex fieldnum) const override
void setLengthMultiplier(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setCenterPointsSource(CenterPointsSource val)
void setGlobalRotation(fpreal64 val)
UT_StringHolder opDirAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setDirAttrib(const UT_StringHolder &val)
CenterPointsSource opCenterPointsSource(const SOP_NodeVerb::CookParms &cookparms) const
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
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
**But if you need a result
Definition: thread.h:622
void save(std::ostream &os) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_StringHolder & getGroup() const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Vector2D &v)
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, UT_StringHolder s)
BoundaryBehavior getBoundaryBehavior() const
CenterPointsSource getCenterPointsSource() const
UT_StringHolder opLengthAttrib(const SOP_NodeVerb::CookParms &cookparms) const
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
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const UT_StringHolder & getDirAttrib() const
exint length() const
bool operator==(const SOP_WalkOnSurfaceParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void setBoundaryBehavior(BoundaryBehavior val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
SYS_FORCE_INLINE UT_StringHolder getToken(CenterPointsSource enum_value)
bool operator!=(const SOP_WalkOnSurfaceParms &src) const
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, fpreal64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, bool &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) 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, UT_Matrix3D &v)
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:278
void setGroup(const UT_StringHolder &val)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setSrcPoints(const UT_StringHolder &val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
#define SOP_API
Definition: SOP_API.h:10
const UT_StringHolder & getLengthAttrib() const
const UT_StringHolder & getSrcPoints() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, int64 v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal64 opLengthMultiplier(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
static void saveData(std::ostream &os, UT_Matrix3D v)
BoundaryBehavior opBoundaryBehavior(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_Matrix2D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
fpreal64 opGlobalRotation(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663