HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Clip.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_ClipEnums
24 {
25  enum class Clipop
26  {
27  ABOVE = 0,
28  BELOW,
29  BOTH
30  };
31 }
32 
33 
35 {
36 public:
37  static int version() { return 1; }
38 
40  {
41  myGroup = ""_UTsh;
42  myClipop = 0;
43  myOrigin = UT_Vector3D(0,0,0);
44  myDist = 0;
45  myDir = UT_Vector3D(0,1,0);
46  myNewg = false;
47  myAbove = "above_plane"_UTsh;
48  myBelow = "below_plane"_UTsh;
49  myClippts = true;
50 
51  }
52 
53  explicit SOP_ClipParms(const SOP_ClipParms &) = default;
54  SOP_ClipParms &operator=(const SOP_ClipParms &) = default;
55  SOP_ClipParms(SOP_ClipParms &&) noexcept = default;
56  SOP_ClipParms &operator=(SOP_ClipParms &&) noexcept = default;
57 
58  ~SOP_ClipParms() override {}
59 
60  bool operator==(const SOP_ClipParms &src) const
61  {
62  if (myGroup != src.myGroup) return false;
63  if (myClipop != src.myClipop) return false;
64  if (myOrigin != src.myOrigin) return false;
65  if (myDist != src.myDist) return false;
66  if (myDir != src.myDir) return false;
67  if (myNewg != src.myNewg) return false;
68  if (myAbove != src.myAbove) return false;
69  if (myBelow != src.myBelow) return false;
70  if (myClippts != src.myClippts) return false;
71 
72  return true;
73  }
74  bool operator!=(const SOP_ClipParms &src) const
75  {
76  return !operator==(src);
77  }
79 
80 
81 
82  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
83  {
84  myGroup = ""_UTsh;
85  if (true)
86  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
87  myClipop = 0;
88  if (true)
89  graph->evalOpParm(myClipop, nodeidx, "clipop", time, 0);
90  myOrigin = UT_Vector3D(0,0,0);
91  if (true)
92  graph->evalOpParm(myOrigin, nodeidx, "origin", time, 0);
93  myDist = 0;
94  if (true)
95  graph->evalOpParm(myDist, nodeidx, "dist", time, 0);
96  myDir = UT_Vector3D(0,1,0);
97  if (true)
98  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
99  myNewg = false;
100  if (true && ( (true&&!(((int64(getClipop())!=2)))) ) )
101  graph->evalOpParm(myNewg, nodeidx, "newg", time, 0);
102  myAbove = "above_plane"_UTsh;
103  if (true && ( (true&&!(((int64(getClipop())!=2))||((getNewg()==0)))) ) )
104  graph->evalOpParm(myAbove, nodeidx, "above", time, 0);
105  myBelow = "below_plane"_UTsh;
106  if (true && ( (true&&!(((int64(getClipop())!=2))||((getNewg()==0)))) ) )
107  graph->evalOpParm(myBelow, nodeidx, "below", time, 0);
108  myClippts = true;
109  if (true)
110  graph->evalOpParm(myClippts, nodeidx, "clippts", time, 0);
111 
112  }
113 
114 
115  void loadFromOpSubclass(const LoadParms &loadparms) override
116  {
117  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
118  }
119 
120 
121  void copyFrom(const OP_NodeParms *src) override
122  {
123  *this = *((const SOP_ClipParms *)src);
124  }
125 
126  template <typename T>
127  void
128  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
129  {
130  if (idx.size() < 1)
131  return;
132  UT_ASSERT(idx.size() == instance.size()+1);
133  if (idx.size() != instance.size()+1)
134  return;
135  switch (idx[0])
136  {
137  case 0:
138  coerceValue(value, myGroup);
139  break;
140  case 1:
141  coerceValue(value, myClipop);
142  break;
143  case 2:
144  coerceValue(value, myOrigin);
145  break;
146  case 3:
147  coerceValue(value, myDist);
148  break;
149  case 4:
150  coerceValue(value, myDir);
151  break;
152  case 5:
153  coerceValue(value, myNewg);
154  break;
155  case 6:
156  coerceValue(value, myAbove);
157  break;
158  case 7:
159  coerceValue(value, myBelow);
160  break;
161  case 8:
162  coerceValue(value, myClippts);
163  break;
164 
165  }
166  }
167 
168  bool isParmColorRamp(exint idx) const override
169  {
170  switch (idx)
171  {
172 
173  }
174  return false;
175  }
176 
177  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
198  { doGetParmValue(idx, instance, value); }
199 
200  template <typename T>
201  void
202  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
203  {
204  if (idx.size() < 1)
205  return;
206  UT_ASSERT(idx.size() == instance.size()+1);
207  if (idx.size() != instance.size()+1)
208  return;
209  switch (idx[0])
210  {
211  case 0:
212  coerceValue(myGroup, ( ( value ) ));
213  break;
214  case 1:
215  coerceValue(myClipop, clampMinValue(0, clampMaxValue(2, value ) ));
216  break;
217  case 2:
218  coerceValue(myOrigin, ( ( value ) ));
219  break;
220  case 3:
221  coerceValue(myDist, ( ( value ) ));
222  break;
223  case 4:
224  coerceValue(myDir, ( ( value ) ));
225  break;
226  case 5:
227  coerceValue(myNewg, ( ( value ) ));
228  break;
229  case 6:
230  coerceValue(myAbove, ( ( value ) ));
231  break;
232  case 7:
233  coerceValue(myBelow, ( ( value ) ));
234  break;
235  case 8:
236  coerceValue(myClippts, ( ( value ) ));
237  break;
238 
239  }
240  }
241 
242  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
263  { doSetParmValue(idx, instance, value); }
264 
265  exint getNestNumParms(TempIndex idx) const override
266  {
267  if (idx.size() == 0)
268  return 9;
269  switch (idx[0])
270  {
271 
272  }
273  // Invalid
274  return 0;
275  }
276 
277  const char *getNestParmName(TempIndex fieldnum) const override
278  {
279  if (fieldnum.size() < 1)
280  return 0;
281  switch (fieldnum[0])
282  {
283  case 0:
284  return "group";
285  case 1:
286  return "clipop";
287  case 2:
288  return "origin";
289  case 3:
290  return "dist";
291  case 4:
292  return "dir";
293  case 5:
294  return "newg";
295  case 6:
296  return "above";
297  case 7:
298  return "below";
299  case 8:
300  return "clippts";
301 
302  }
303  return 0;
304  }
305 
306  ParmType getNestParmType(TempIndex fieldnum) const override
307  {
308  if (fieldnum.size() < 1)
309  return PARM_UNSUPPORTED;
310  switch (fieldnum[0])
311  {
312  case 0:
313  return PARM_STRING;
314  case 1:
315  return PARM_INTEGER;
316  case 2:
317  return PARM_VECTOR3;
318  case 3:
319  return PARM_FLOAT;
320  case 4:
321  return PARM_VECTOR3;
322  case 5:
323  return PARM_INTEGER;
324  case 6:
325  return PARM_STRING;
326  case 7:
327  return PARM_STRING;
328  case 8:
329  return PARM_INTEGER;
330 
331  }
332  return PARM_UNSUPPORTED;
333  }
334 
335  // Boiler plate to load individual types.
336  static void loadData(UT_IStream &is, int64 &v)
337  { is.bread(&v, 1); }
338  static void loadData(UT_IStream &is, bool &v)
339  { int64 iv; is.bread(&iv, 1); v = iv; }
340  static void loadData(UT_IStream &is, fpreal64 &v)
341  { is.bread<fpreal64>(&v, 1); }
342  static void loadData(UT_IStream &is, UT_Vector2D &v)
343  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
344  static void loadData(UT_IStream &is, UT_Vector3D &v)
345  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
346  is.bread<fpreal64>(&v.z(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector4D &v)
348  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
349  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
350  static void loadData(UT_IStream &is, UT_Matrix2D &v)
351  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
352  static void loadData(UT_IStream &is, UT_Matrix3D &v)
353  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
354  static void loadData(UT_IStream &is, UT_Matrix4D &v)
355  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
356  static void loadData(UT_IStream &is, UT_Vector2I &v)
357  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector3I &v)
359  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
360  is.bread<int64>(&v.z(), 1); }
361  static void loadData(UT_IStream &is, UT_Vector4I &v)
362  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
363  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
365  { is.bread(v); }
367  { UT_StringHolder rampdata;
368  loadData(is, rampdata);
369  if (rampdata.isstring())
370  {
371  v.reset(new UT_Ramp());
372  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
373  v->load(istr);
374  }
375  else v.reset();
376  }
379  loadData(is, data);
380  if (data.isstring())
381  {
382  // Find the data type.
383  const char *colon = UT_StringWrap(data).findChar(':');
384  if (colon)
385  {
386  int typelen = colon - data.buffer();
388  type.strncpy(data.buffer(), typelen);
389  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
390 
391  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
392  }
393  }
394  else v.reset();
395  }
396 
397  static void saveData(std::ostream &os, int64 v)
398  { UTwrite(os, &v); }
399  static void saveData(std::ostream &os, bool v)
400  { int64 iv = v; UTwrite(os, &iv); }
401  static void saveData(std::ostream &os, fpreal64 v)
402  { UTwrite<fpreal64>(os, &v); }
403  static void saveData(std::ostream &os, UT_Vector2D v)
404  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
405  static void saveData(std::ostream &os, UT_Vector3D v)
406  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
407  UTwrite<fpreal64>(os, &v.z()); }
408  static void saveData(std::ostream &os, UT_Vector4D v)
409  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
410  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
411  static void saveData(std::ostream &os, UT_Matrix2D v)
413  static void saveData(std::ostream &os, UT_Matrix3D v)
415  static void saveData(std::ostream &os, UT_Matrix4D v)
417  static void saveData(std::ostream &os, UT_StringHolder s)
418  { UT_StringWrap(s).saveBinary(os); }
419  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
421  UT_OStringStream ostr;
422  if (s) s->save(ostr);
423  result = ostr.str();
424  saveData(os, result);
425  }
426  static void saveData(std::ostream &os, PRM_DataItemHandle s)
428  UT_OStringStream ostr;
429  if (s)
430  {
431  ostr << s->getDataTypeToken();
432  ostr << ":";
433  s->saveBinary(ostr);
434  }
435  result = ostr.str();
436  saveData(os, result);
437  }
438 
439 
440  void save(std::ostream &os) const
441  {
442  int32 v = version();
443  UTwrite(os, &v);
444  saveData(os, myGroup);
445  saveData(os, myClipop);
446  saveData(os, myOrigin);
447  saveData(os, myDist);
448  saveData(os, myDir);
449  saveData(os, myNewg);
450  saveData(os, myAbove);
451  saveData(os, myBelow);
452  saveData(os, myClippts);
453 
454  }
455 
456  bool load(UT_IStream &is)
457  {
458  int32 v;
459  is.bread(&v, 1);
460  if (version() != v)
461  {
462  // Fail incompatible versions
463  return false;
464  }
465  loadData(is, myGroup);
466  loadData(is, myClipop);
467  loadData(is, myOrigin);
468  loadData(is, myDist);
469  loadData(is, myDir);
470  loadData(is, myNewg);
471  loadData(is, myAbove);
472  loadData(is, myBelow);
473  loadData(is, myClippts);
474 
475  return true;
476  }
477 
478  const UT_StringHolder & getGroup() const { return myGroup; }
479  void setGroup(const UT_StringHolder & val) { myGroup = val; }
481  {
482  SOP_Node *thissop = cookparms.getNode();
483  if (!thissop) return getGroup();
485  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
486  return result;
487  }
488  Clipop getClipop() const { return Clipop(myClipop); }
489  void setClipop(Clipop val) { myClipop = int64(val); }
490  Clipop opClipop(const SOP_NodeVerb::CookParms &cookparms) const
491  {
492  SOP_Node *thissop = cookparms.getNode();
493  if (!thissop) return getClipop();
494  int64 result;
495  OP_Utils::evalOpParm(result, thissop, "clipop", cookparms.getCookTime(), 0);
496  return Clipop(result);
497  }
498  UT_Vector3D getOrigin() const { return myOrigin; }
499  void setOrigin(UT_Vector3D val) { myOrigin = val; }
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getOrigin();
505  OP_Utils::evalOpParm(result, thissop, "origin", cookparms.getCookTime(), 0);
506  return result;
507  }
508  fpreal64 getDist() const { return myDist; }
509  void setDist(fpreal64 val) { myDist = val; }
510  fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getDist();
515  OP_Utils::evalOpParm(result, thissop, "dist", cookparms.getCookTime(), 0);
516  return result;
517  }
518  UT_Vector3D getDir() const { return myDir; }
519  void setDir(UT_Vector3D val) { myDir = val; }
520  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getDir();
525  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
526  return result;
527  }
528  bool getNewg() const { return myNewg; }
529  void setNewg(bool val) { myNewg = val; }
530  bool opNewg(const SOP_NodeVerb::CookParms &cookparms) const
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getNewg();
534  bool result;
535  OP_Utils::evalOpParm(result, thissop, "newg", cookparms.getCookTime(), 0);
536  return result;
537  }
538  const UT_StringHolder & getAbove() const { return myAbove; }
539  void setAbove(const UT_StringHolder & val) { myAbove = val; }
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getAbove();
545  OP_Utils::evalOpParm(result, thissop, "above", cookparms.getCookTime(), 0);
546  return result;
547  }
548  const UT_StringHolder & getBelow() const { return myBelow; }
549  void setBelow(const UT_StringHolder & val) { myBelow = val; }
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getBelow();
555  OP_Utils::evalOpParm(result, thissop, "below", cookparms.getCookTime(), 0);
556  return result;
557  }
558  bool getClippts() const { return myClippts; }
559  void setClippts(bool val) { myClippts = val; }
560  bool opClippts(const SOP_NodeVerb::CookParms &cookparms) const
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getClippts();
564  bool result;
565  OP_Utils::evalOpParm(result, thissop, "clippts", cookparms.getCookTime(), 0);
566  return result;
567  }
568 
569 private:
570  UT_StringHolder myGroup;
571  int64 myClipop;
572  UT_Vector3D myOrigin;
573  fpreal64 myDist;
574  UT_Vector3D myDir;
575  bool myNewg;
576  UT_StringHolder myAbove;
577  UT_StringHolder myBelow;
578  bool myClippts;
579 
580 };
bool operator!=(const SOP_ClipParms &src) const
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
const UT_StringHolder & getAbove() const
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_StringHolder opBelow(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Matrix2D &v)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
UT_Vector3D getOrigin() const
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
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
void setDist(fpreal64 val)
bool opClippts(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Vector2D v)
const char * getNestParmName(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
static void loadData(UT_IStream &is, UT_Vector2D &v)
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:613
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setClippts(bool val)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void saveData(std::ostream &os, UT_Vector3D v)
void setNewg(bool val)
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.
static void saveData(std::ostream &os, UT_Vector4D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static int version()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &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_Matrix4D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
fpreal64 getDist() const
Clipop getClipop() const
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
bool load(UT_IStream &is)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
UT_StringHolder opAbove(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool operator==(const SOP_ClipParms &src) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setClipop(Clipop val)
void setDir(UT_Vector3D val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, bool &v)
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_StringHolder s)
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_Vector3T< fpreal64 > UT_Vector3D
bool isParmColorRamp(exint idx) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void save(std::ostream &os) const
bool getClippts() const
void setOrigin(UT_Vector3D val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setGroup(const UT_StringHolder &val)
Clipop opClipop(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
bool opNewg(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Vector3I &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
UT_Vector3D getDir() const
#define SOP_API
Definition: SOP_API.h:10
void setAbove(const UT_StringHolder &val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
bool getNewg() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
GLboolean r
Definition: glcorearb.h:1222
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
const UT_StringHolder & getBelow() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
type
Definition: core.h:1059
static void loadData(UT_IStream &is, fpreal64 &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, bool v)
void setBelow(const UT_StringHolder &val)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663