HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Visibility.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_VisibilityEnums
24 {
25  enum class Action
26  {
27  HIDE = 0,
28  EXPOSE
29  };
30 
32  getToken(Action enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Action::HIDE: return "hide"_sh;
37  case Action::EXPOSE: return "expose"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class ApplyTo
43  {
44  SELECTED = 0,
45  NONSEL
46  };
47 
49  getToken(ApplyTo enum_value)
50  {
51  using namespace UT::Literal;
52  switch (enum_value) {
53  case ApplyTo::SELECTED: return "selected"_sh;
54  case ApplyTo::NONSEL: return "nonsel"_sh;
55  default: UT_ASSERT(false); return ""_sh;
56  }
57  }
58 
59  enum class Viewport
60  {
61  _3D = 0,
62  _2D,
63  ALL
64  };
65 
67  getToken(Viewport enum_value)
68  {
69  using namespace UT::Literal;
70  switch (enum_value) {
71  case Viewport::_3D: return "3d"_sh;
72  case Viewport::_2D: return "2d"_sh;
73  case Viewport::ALL: return "all"_sh;
74  default: UT_ASSERT(false); return ""_sh;
75  }
76  }
77 
78 }
79 
80 
82 {
83 public:
84  static int version() { return 1; }
85 
87  {
88  myGroup = ""_UTsh;
89  myAction = 0;
90  myApplyTo = 0;
91  myViewport = 2;
92  myCumulative = true;
93 
94  }
95 
96  explicit SOP_VisibilityParms(const SOP_VisibilityParms &) = default;
98  SOP_VisibilityParms(SOP_VisibilityParms &&) noexcept = default;
99  SOP_VisibilityParms &operator=(SOP_VisibilityParms &&) noexcept = default;
100 
101  ~SOP_VisibilityParms() override {}
102 
103  bool operator==(const SOP_VisibilityParms &src) const
104  {
105  if (myGroup != src.myGroup) return false;
106  if (myAction != src.myAction) return false;
107  if (myApplyTo != src.myApplyTo) return false;
108  if (myViewport != src.myViewport) return false;
109  if (myCumulative != src.myCumulative) return false;
110 
111  return true;
112  }
113  bool operator!=(const SOP_VisibilityParms &src) const
114  {
115  return !operator==(src);
116  }
120 
121 
122 
123  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
124  {
125  myGroup = ""_UTsh;
126  if (true)
127  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
128  myAction = 0;
129  if (true)
130  graph->evalOpParm(myAction, nodeidx, "action", time, 0);
131  myApplyTo = 0;
132  if (true)
133  graph->evalOpParm(myApplyTo, nodeidx, "applyto", time, 0);
134  myViewport = 2;
135  if (true)
136  graph->evalOpParm(myViewport, nodeidx, "viewport", time, 0);
137  myCumulative = true;
138  if (true)
139  graph->evalOpParm(myCumulative, nodeidx, "cumulative", time, 0);
140 
141  }
142 
143 
144  void loadFromOpSubclass(const LoadParms &loadparms) override
145  {
146  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
147  }
148 
149 
150  void copyFrom(const OP_NodeParms *src) override
151  {
152  *this = *((const SOP_VisibilityParms *)src);
153  }
154 
155  template <typename T>
156  void
157  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
158  {
159  if (idx.size() < 1)
160  return;
161  UT_ASSERT(idx.size() == instance.size()+1);
162  if (idx.size() != instance.size()+1)
163  return;
164  switch (idx[0])
165  {
166  case 0:
167  coerceValue(value, myGroup);
168  break;
169  case 1:
170  coerceValue(value, myAction);
171  break;
172  case 2:
173  coerceValue(value, myApplyTo);
174  break;
175  case 3:
176  coerceValue(value, myViewport);
177  break;
178  case 4:
179  coerceValue(value, myCumulative);
180  break;
181 
182  }
183  }
184 
185  bool isParmColorRamp(exint idx) const override
186  {
187  switch (idx)
188  {
189 
190  }
191  return false;
192  }
193 
194  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
215  { doGetParmValue(idx, instance, value); }
216 
217  template <typename T>
218  void
219  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
220  {
221  if (idx.size() < 1)
222  return;
223  UT_ASSERT(idx.size() == instance.size()+1);
224  if (idx.size() != instance.size()+1)
225  return;
226  switch (idx[0])
227  {
228  case 0:
229  coerceValue(myGroup, ( ( value ) ));
230  break;
231  case 1:
232  coerceValue(myAction, clampMinValue(0, clampMaxValue(1, value ) ));
233  break;
234  case 2:
235  coerceValue(myApplyTo, clampMinValue(0, clampMaxValue(1, value ) ));
236  break;
237  case 3:
238  coerceValue(myViewport, clampMinValue(0, clampMaxValue(2, value ) ));
239  break;
240  case 4:
241  coerceValue(myCumulative, ( ( value ) ));
242  break;
243 
244  }
245  }
246 
247  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
268  { doSetParmValue(idx, instance, value); }
269 
270  exint getNestNumParms(TempIndex idx) const override
271  {
272  if (idx.size() == 0)
273  return 5;
274  switch (idx[0])
275  {
276 
277  }
278  // Invalid
279  return 0;
280  }
281 
282  const char *getNestParmName(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return 0;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return "group";
290  case 1:
291  return "action";
292  case 2:
293  return "applyto";
294  case 3:
295  return "viewport";
296  case 4:
297  return "cumulative";
298 
299  }
300  return 0;
301  }
302 
303  ParmType getNestParmType(TempIndex fieldnum) const override
304  {
305  if (fieldnum.size() < 1)
306  return PARM_UNSUPPORTED;
307  switch (fieldnum[0])
308  {
309  case 0:
310  return PARM_STRING;
311  case 1:
312  return PARM_INTEGER;
313  case 2:
314  return PARM_INTEGER;
315  case 3:
316  return PARM_INTEGER;
317  case 4:
318  return PARM_INTEGER;
319 
320  }
321  return PARM_UNSUPPORTED;
322  }
323 
324  // Boiler plate to load individual types.
325  static void loadData(UT_IStream &is, int64 &v)
326  { is.bread(&v, 1); }
327  static void loadData(UT_IStream &is, bool &v)
328  { int64 iv; is.bread(&iv, 1); v = iv; }
329  static void loadData(UT_IStream &is, fpreal64 &v)
330  { is.bread<fpreal64>(&v, 1); }
331  static void loadData(UT_IStream &is, UT_Vector2D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix2D &v)
340  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix3D &v)
342  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix4D &v)
344  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Vector2I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector3I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector4I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
354  { is.bread(v); }
356  { UT_StringHolder rampdata;
357  loadData(is, rampdata);
358  if (rampdata.isstring())
359  {
360  v.reset(new UT_Ramp());
361  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
362  v->load(istr);
363  }
364  else v.reset();
365  }
368  loadData(is, data);
369  if (data.isstring())
370  {
371  // Find the data type.
372  const char *colon = UT_StringWrap(data).findChar(':');
373  if (colon)
374  {
375  int typelen = colon - data.buffer();
377  type.strncpy(data.buffer(), typelen);
378  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
379 
380  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
381  }
382  }
383  else v.reset();
384  }
385 
386  static void saveData(std::ostream &os, int64 v)
387  { UTwrite(os, &v); }
388  static void saveData(std::ostream &os, bool v)
389  { int64 iv = v; UTwrite(os, &iv); }
390  static void saveData(std::ostream &os, fpreal64 v)
391  { UTwrite<fpreal64>(os, &v); }
392  static void saveData(std::ostream &os, UT_Vector2D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
394  static void saveData(std::ostream &os, UT_Vector3D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); }
397  static void saveData(std::ostream &os, UT_Vector4D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
400  static void saveData(std::ostream &os, UT_Matrix2D v)
402  static void saveData(std::ostream &os, UT_Matrix3D v)
404  static void saveData(std::ostream &os, UT_Matrix4D v)
406  static void saveData(std::ostream &os, UT_StringHolder s)
407  { UT_StringWrap(s).saveBinary(os); }
408  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
410  UT_OStringStream ostr;
411  if (s) s->save(ostr);
412  result = ostr.str();
413  saveData(os, result);
414  }
415  static void saveData(std::ostream &os, PRM_DataItemHandle s)
417  UT_OStringStream ostr;
418  if (s)
419  {
420  ostr << s->getDataTypeToken();
421  ostr << ":";
422  s->saveBinary(ostr);
423  }
424  result = ostr.str();
425  saveData(os, result);
426  }
427 
428 
429  void save(std::ostream &os) const
430  {
431  int32 v = version();
432  UTwrite(os, &v);
433  saveData(os, myGroup);
434  saveData(os, myAction);
435  saveData(os, myApplyTo);
436  saveData(os, myViewport);
437  saveData(os, myCumulative);
438 
439  }
440 
441  bool load(UT_IStream &is)
442  {
443  int32 v;
444  is.bread(&v, 1);
445  if (version() != v)
446  {
447  // Fail incompatible versions
448  return false;
449  }
450  loadData(is, myGroup);
451  loadData(is, myAction);
452  loadData(is, myApplyTo);
453  loadData(is, myViewport);
454  loadData(is, myCumulative);
455 
456  return true;
457  }
458 
459  const UT_StringHolder & getGroup() const { return myGroup; }
460  void setGroup(const UT_StringHolder & val) { myGroup = val; }
462  {
463  SOP_Node *thissop = cookparms.getNode();
464  if (!thissop) return getGroup();
466  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
467  return result;
468  }
469  Action getAction() const { return Action(myAction); }
470  void setAction(Action val) { myAction = int64(val); }
471  Action opAction(const SOP_NodeVerb::CookParms &cookparms) const
472  {
473  SOP_Node *thissop = cookparms.getNode();
474  if (!thissop) return getAction();
475  int64 result;
476  OP_Utils::evalOpParm(result, thissop, "action", cookparms.getCookTime(), 0);
477  return Action(result);
478  }
479  ApplyTo getApplyTo() const { return ApplyTo(myApplyTo); }
480  void setApplyTo(ApplyTo val) { myApplyTo = int64(val); }
481  ApplyTo opApplyTo(const SOP_NodeVerb::CookParms &cookparms) const
482  {
483  SOP_Node *thissop = cookparms.getNode();
484  if (!thissop) return getApplyTo();
485  int64 result;
486  OP_Utils::evalOpParm(result, thissop, "applyto", cookparms.getCookTime(), 0);
487  return ApplyTo(result);
488  }
489  Viewport getViewport() const { return Viewport(myViewport); }
490  void setViewport(Viewport val) { myViewport = int64(val); }
492  {
493  SOP_Node *thissop = cookparms.getNode();
494  if (!thissop) return getViewport();
495  int64 result;
496  OP_Utils::evalOpParm(result, thissop, "viewport", cookparms.getCookTime(), 0);
497  return Viewport(result);
498  }
499  bool getCumulative() const { return myCumulative; }
500  void setCumulative(bool val) { myCumulative = val; }
501  bool opCumulative(const SOP_NodeVerb::CookParms &cookparms) const
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getCumulative();
505  bool result;
506  OP_Utils::evalOpParm(result, thissop, "cumulative", cookparms.getCookTime(), 0);
507  return result;
508  }
509 
510 private:
511  UT_StringHolder myGroup;
512  int64 myAction;
513  int64 myApplyTo;
514  int64 myViewport;
515  bool myCumulative;
516 
517 };
bool opCumulative(const SOP_NodeVerb::CookParms &cookparms) const
void setGroup(const UT_StringHolder &val)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector3I &v)
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Matrix4D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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
static void loadData(UT_IStream &is, UT_Vector3D &v)
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, UT_Vector4D &v)
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
Viewport opViewport(const SOP_NodeVerb::CookParms &cookparms) const
void setApplyTo(ApplyTo val)
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
**But if you need a result
Definition: thread.h:613
ApplyTo getApplyTo() const
bool operator==(const SOP_VisibilityParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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, PRM_DataItemHandle s)
void setViewport(Viewport val)
bool isParmColorRamp(exint idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
Action opAction(const SOP_NodeVerb::CookParms &cookparms) 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
static void saveData(std::ostream &os, int64 v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
bool load(UT_IStream &is)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
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_Vector3D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, fpreal64 &v)
ApplyTo opApplyTo(const SOP_NodeVerb::CookParms &cookparms) const
Viewport getViewport() const
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setAction(Action val)
void setCumulative(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator!=(const SOP_VisibilityParms &src) const
fpreal64 fpreal
Definition: SYS_Types.h:277
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:92
SYS_FORCE_INLINE UT_StringHolder getToken(Action enum_value)
static void loadData(UT_IStream &is, bool &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void saveData(std::ostream &os, bool v)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
static void saveData(std::ostream &os, UT_Vector4D v)
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void save(std::ostream &os) const
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
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