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