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  enum class ApplyTo
31  {
32  SELECTED = 0,
33  NONSEL
34  };
35  enum class Viewport
36  {
37  _3D = 0,
38  _2D,
39  ALL
40  };
41 }
42 
43 
45 {
46 public:
47  static int version() { return 1; }
48 
50  {
51  myGroup = ""_UTsh;
52  myAction = 0;
53  myApplyTo = 0;
54  myViewport = 2;
55  myCumulative = true;
56 
57  }
58 
59  explicit SOP_VisibilityParms(const SOP_VisibilityParms &) = default;
61  SOP_VisibilityParms(SOP_VisibilityParms &&) noexcept = default;
62  SOP_VisibilityParms &operator=(SOP_VisibilityParms &&) noexcept = default;
63 
64  ~SOP_VisibilityParms() override {}
65 
66  bool operator==(const SOP_VisibilityParms &src) const
67  {
68  if (myGroup != src.myGroup) return false;
69  if (myAction != src.myAction) return false;
70  if (myApplyTo != src.myApplyTo) return false;
71  if (myViewport != src.myViewport) return false;
72  if (myCumulative != src.myCumulative) return false;
73 
74  return true;
75  }
76  bool operator!=(const SOP_VisibilityParms &src) const
77  {
78  return !operator==(src);
79  }
83 
84 
85 
86  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
87  {
88  myGroup = ""_UTsh;
89  if (true)
90  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
91  myAction = 0;
92  if (true)
93  graph->evalOpParm(myAction, nodeidx, "action", time, 0);
94  myApplyTo = 0;
95  if (true)
96  graph->evalOpParm(myApplyTo, nodeidx, "applyto", time, 0);
97  myViewport = 2;
98  if (true)
99  graph->evalOpParm(myViewport, nodeidx, "viewport", time, 0);
100  myCumulative = true;
101  if (true)
102  graph->evalOpParm(myCumulative, nodeidx, "cumulative", time, 0);
103 
104  }
105 
106 
107  void loadFromOpSubclass(const LoadParms &loadparms) override
108  {
109  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
110  }
111 
112 
113  void copyFrom(const OP_NodeParms *src) override
114  {
115  *this = *((const SOP_VisibilityParms *)src);
116  }
117 
118  template <typename T>
119  void
120  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
121  {
122  if (idx.size() < 1)
123  return;
124  UT_ASSERT(idx.size() == instance.size()+1);
125  if (idx.size() != instance.size()+1)
126  return;
127  switch (idx[0])
128  {
129  case 0:
130  coerceValue(value, myGroup);
131  break;
132  case 1:
133  coerceValue(value, myAction);
134  break;
135  case 2:
136  coerceValue(value, myApplyTo);
137  break;
138  case 3:
139  coerceValue(value, myViewport);
140  break;
141  case 4:
142  coerceValue(value, myCumulative);
143  break;
144 
145  }
146  }
147 
148  bool isParmColorRamp(exint idx) const override
149  {
150  switch (idx)
151  {
152 
153  }
154  return false;
155  }
156 
157  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
178  { doGetParmValue(idx, instance, value); }
179 
180  template <typename T>
181  void
182  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
183  {
184  if (idx.size() < 1)
185  return;
186  UT_ASSERT(idx.size() == instance.size()+1);
187  if (idx.size() != instance.size()+1)
188  return;
189  switch (idx[0])
190  {
191  case 0:
192  coerceValue(myGroup, ( ( value ) ));
193  break;
194  case 1:
195  coerceValue(myAction, clampMinValue(0, clampMaxValue(1, value ) ));
196  break;
197  case 2:
198  coerceValue(myApplyTo, clampMinValue(0, clampMaxValue(1, value ) ));
199  break;
200  case 3:
201  coerceValue(myViewport, clampMinValue(0, clampMaxValue(2, value ) ));
202  break;
203  case 4:
204  coerceValue(myCumulative, ( ( value ) ));
205  break;
206 
207  }
208  }
209 
210  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
211  { doSetParmValue(idx, instance, value); }
212  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
213  { doSetParmValue(idx, instance, value); }
214  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
215  { doSetParmValue(idx, instance, value); }
216  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
231  { doSetParmValue(idx, instance, value); }
232 
233  exint getNestNumParms(TempIndex idx) const override
234  {
235  if (idx.size() == 0)
236  return 5;
237  switch (idx[0])
238  {
239 
240  }
241  // Invalid
242  return 0;
243  }
244 
245  const char *getNestParmName(TempIndex fieldnum) const override
246  {
247  if (fieldnum.size() < 1)
248  return 0;
249  switch (fieldnum[0])
250  {
251  case 0:
252  return "group";
253  case 1:
254  return "action";
255  case 2:
256  return "applyto";
257  case 3:
258  return "viewport";
259  case 4:
260  return "cumulative";
261 
262  }
263  return 0;
264  }
265 
266  ParmType getNestParmType(TempIndex fieldnum) const override
267  {
268  if (fieldnum.size() < 1)
269  return PARM_UNSUPPORTED;
270  switch (fieldnum[0])
271  {
272  case 0:
273  return PARM_STRING;
274  case 1:
275  return PARM_INTEGER;
276  case 2:
277  return PARM_INTEGER;
278  case 3:
279  return PARM_INTEGER;
280  case 4:
281  return PARM_INTEGER;
282 
283  }
284  return PARM_UNSUPPORTED;
285  }
286 
287  // Boiler plate to load individual types.
288  static void loadData(UT_IStream &is, int64 &v)
289  { is.bread(&v, 1); }
290  static void loadData(UT_IStream &is, bool &v)
291  { int64 iv; is.bread(&iv, 1); v = iv; }
292  static void loadData(UT_IStream &is, fpreal64 &v)
293  { is.bread<fpreal64>(&v, 1); }
294  static void loadData(UT_IStream &is, UT_Vector2D &v)
295  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
296  static void loadData(UT_IStream &is, UT_Vector3D &v)
297  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
298  is.bread<fpreal64>(&v.z(), 1); }
299  static void loadData(UT_IStream &is, UT_Vector4D &v)
300  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
301  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
302  static void loadData(UT_IStream &is, UT_Matrix2D &v)
303  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
304  static void loadData(UT_IStream &is, UT_Matrix3D &v)
305  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
306  static void loadData(UT_IStream &is, UT_Matrix4D &v)
307  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
308  static void loadData(UT_IStream &is, UT_Vector2I &v)
309  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
310  static void loadData(UT_IStream &is, UT_Vector3I &v)
311  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
312  is.bread<int64>(&v.z(), 1); }
313  static void loadData(UT_IStream &is, UT_Vector4I &v)
314  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
315  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
317  { is.bread(v); }
319  { UT_StringHolder rampdata;
320  loadData(is, rampdata);
321  if (rampdata.isstring())
322  {
323  v.reset(new UT_Ramp());
324  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
325  v->load(istr);
326  }
327  else v.reset();
328  }
331  loadData(is, data);
332  if (data.isstring())
333  {
334  // Find the data type.
335  const char *colon = UT_StringWrap(data).findChar(':');
336  if (colon)
337  {
338  int typelen = colon - data.buffer();
340  type.strncpy(data.buffer(), typelen);
341  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
342 
343  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
344  }
345  }
346  else v.reset();
347  }
348 
349  static void saveData(std::ostream &os, int64 v)
350  { UTwrite(os, &v); }
351  static void saveData(std::ostream &os, bool v)
352  { int64 iv = v; UTwrite(os, &iv); }
353  static void saveData(std::ostream &os, fpreal64 v)
354  { UTwrite<fpreal64>(os, &v); }
355  static void saveData(std::ostream &os, UT_Vector2D v)
356  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
357  static void saveData(std::ostream &os, UT_Vector3D v)
358  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
359  UTwrite<fpreal64>(os, &v.z()); }
360  static void saveData(std::ostream &os, UT_Vector4D v)
361  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
362  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
363  static void saveData(std::ostream &os, UT_Matrix2D v)
365  static void saveData(std::ostream &os, UT_Matrix3D v)
367  static void saveData(std::ostream &os, UT_Matrix4D v)
369  static void saveData(std::ostream &os, UT_StringHolder s)
370  { UT_StringWrap(s).saveBinary(os); }
371  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
373  UT_OStringStream ostr;
374  if (s) s->save(ostr);
375  result = ostr.str();
376  saveData(os, result);
377  }
378  static void saveData(std::ostream &os, PRM_DataItemHandle s)
380  UT_OStringStream ostr;
381  if (s)
382  {
383  ostr << s->getDataTypeToken();
384  ostr << ":";
385  s->saveBinary(ostr);
386  }
387  result = ostr.str();
388  saveData(os, result);
389  }
390 
391 
392  void save(std::ostream &os) const
393  {
394  int32 v = version();
395  UTwrite(os, &v);
396  saveData(os, myGroup);
397  saveData(os, myAction);
398  saveData(os, myApplyTo);
399  saveData(os, myViewport);
400  saveData(os, myCumulative);
401 
402  }
403 
404  bool load(UT_IStream &is)
405  {
406  int32 v;
407  is.bread(&v, 1);
408  if (version() != v)
409  {
410  // Fail incompatible versions
411  return false;
412  }
413  loadData(is, myGroup);
414  loadData(is, myAction);
415  loadData(is, myApplyTo);
416  loadData(is, myViewport);
417  loadData(is, myCumulative);
418 
419  return true;
420  }
421 
422  const UT_StringHolder & getGroup() const { return myGroup; }
423  void setGroup(const UT_StringHolder & val) { myGroup = val; }
425  {
426  SOP_Node *thissop = cookparms.getNode();
427  if (!thissop) return getGroup();
429  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
430  return result;
431  }
432  Action getAction() const { return Action(myAction); }
433  void setAction(Action val) { myAction = int64(val); }
434  Action opAction(const SOP_NodeVerb::CookParms &cookparms) const
435  {
436  SOP_Node *thissop = cookparms.getNode();
437  if (!thissop) return getAction();
438  int64 result;
439  OP_Utils::evalOpParm(result, thissop, "action", cookparms.getCookTime(), 0);
440  return Action(result);
441  }
442  ApplyTo getApplyTo() const { return ApplyTo(myApplyTo); }
443  void setApplyTo(ApplyTo val) { myApplyTo = int64(val); }
444  ApplyTo opApplyTo(const SOP_NodeVerb::CookParms &cookparms) const
445  {
446  SOP_Node *thissop = cookparms.getNode();
447  if (!thissop) return getApplyTo();
448  int64 result;
449  OP_Utils::evalOpParm(result, thissop, "applyto", cookparms.getCookTime(), 0);
450  return ApplyTo(result);
451  }
452  Viewport getViewport() const { return Viewport(myViewport); }
453  void setViewport(Viewport val) { myViewport = int64(val); }
455  {
456  SOP_Node *thissop = cookparms.getNode();
457  if (!thissop) return getViewport();
458  int64 result;
459  OP_Utils::evalOpParm(result, thissop, "viewport", cookparms.getCookTime(), 0);
460  return Viewport(result);
461  }
462  bool getCumulative() const { return myCumulative; }
463  void setCumulative(bool val) { myCumulative = val; }
464  bool opCumulative(const SOP_NodeVerb::CookParms &cookparms) const
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getCumulative();
468  bool result;
469  OP_Utils::evalOpParm(result, thissop, "cumulative", cookparms.getCookTime(), 0);
470  return result;
471  }
472 
473 private:
474  UT_StringHolder myGroup;
475  int64 myAction;
476  int64 myApplyTo;
477  int64 myViewport;
478  bool myCumulative;
479 
480 };
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)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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 coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
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