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