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 <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_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 
112  if (baseGetSignature() != src.baseGetSignature()) return false;
113 
114  return true;
115  }
116  bool operator!=(const SOP_VisibilityParms &src) const
117  {
118  return !operator==(src);
119  }
123 
124 
125 
126  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
127  {
128  myGroup = ""_UTsh;
129  if (true)
130  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
131  myAction = 0;
132  if (true)
133  graph->evalOpParm(myAction, nodeidx, "action", time, graph->isDirect()?nullptr:depnode);
134  myApplyTo = 0;
135  if (true)
136  graph->evalOpParm(myApplyTo, nodeidx, "applyto", time, graph->isDirect()?nullptr:depnode);
137  myViewport = 2;
138  if (true)
139  graph->evalOpParm(myViewport, nodeidx, "viewport", time, graph->isDirect()?nullptr:depnode);
140  myCumulative = true;
141  if (true)
142  graph->evalOpParm(myCumulative, nodeidx, "cumulative", time, graph->isDirect()?nullptr:depnode);
143 
144  }
145 
146 
147  void loadFromOpSubclass(const LoadParms &loadparms) override
148  {
149  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
150  }
151 
152 
153  void copyFrom(const OP_NodeParms *src) override
154  {
155  *this = *((const SOP_VisibilityParms *)src);
156  }
157 
158  template <typename T>
159  void
160  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
161  {
162  if (idx.size() < 1)
163  return;
164  UT_ASSERT(idx.size() == instance.size()+1);
165  if (idx.size() != instance.size()+1)
166  return;
167  switch (idx[0])
168  {
169  case 0:
170  coerceValue(value, myGroup);
171  break;
172  case 1:
173  coerceValue(value, myAction);
174  break;
175  case 2:
176  coerceValue(value, myApplyTo);
177  break;
178  case 3:
179  coerceValue(value, myViewport);
180  break;
181  case 4:
182  coerceValue(value, myCumulative);
183  break;
184 
185  }
186  }
187 
188  bool isParmColorRamp(exint idx) const override
189  {
190  switch (idx)
191  {
192 
193  }
194  return false;
195  }
196 
197  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
218  { doGetParmValue(idx, instance, value); }
219 
220  template <typename T>
221  void
222  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
223  {
224  if (idx.size() < 1)
225  return;
226  UT_ASSERT(idx.size() == instance.size()+1);
227  if (idx.size() != instance.size()+1)
228  return;
229  switch (idx[0])
230  {
231  case 0:
232  coerceValue(myGroup, ( ( value ) ));
233  break;
234  case 1:
235  coerceValue(myAction, clampMinValue(0, clampMaxValue(1, value ) ));
236  break;
237  case 2:
238  coerceValue(myApplyTo, clampMinValue(0, clampMaxValue(1, value ) ));
239  break;
240  case 3:
241  coerceValue(myViewport, clampMinValue(0, clampMaxValue(2, value ) ));
242  break;
243  case 4:
244  coerceValue(myCumulative, ( ( value ) ));
245  break;
246 
247  }
248  }
249 
250  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
271  { doSetParmValue(idx, instance, value); }
272 
273  exint getNestNumParms(TempIndex idx) const override
274  {
275  if (idx.size() == 0)
276  return 5;
277  switch (idx[0])
278  {
279 
280  }
281  // Invalid
282  return 0;
283  }
284 
285  const char *getNestParmName(TempIndex fieldnum) const override
286  {
287  if (fieldnum.size() < 1)
288  return 0;
289  switch (fieldnum[0])
290  {
291  case 0:
292  return "group";
293  case 1:
294  return "action";
295  case 2:
296  return "applyto";
297  case 3:
298  return "viewport";
299  case 4:
300  return "cumulative";
301 
302  }
303  return 0;
304  }
305 
306  ParmType getNestParmType(TempIndex fieldnum) const override
307  {
308  if (fieldnum.size() < 1)
309  return PARM_UNSUPPORTED;
310  switch (fieldnum[0])
311  {
312  case 0:
313  return PARM_STRING;
314  case 1:
315  return PARM_INTEGER;
316  case 2:
317  return PARM_INTEGER;
318  case 3:
319  return PARM_INTEGER;
320  case 4:
321  return PARM_INTEGER;
322 
323  }
324  return PARM_UNSUPPORTED;
325  }
326 
327  // Boiler plate to load individual types.
328  static void loadData(UT_IStream &is, int64 &v)
329  { is.bread(&v, 1); }
330  static void loadData(UT_IStream &is, bool &v)
331  { int64 iv; is.bread(&iv, 1); v = iv; }
332  static void loadData(UT_IStream &is, fpreal64 &v)
333  { is.bread<fpreal64>(&v, 1); }
334  static void loadData(UT_IStream &is, UT_Vector2D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
341  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix2D &v)
343  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Matrix3D &v)
345  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
346  static void loadData(UT_IStream &is, UT_Matrix4D &v)
347  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
348  static void loadData(UT_IStream &is, UT_Vector2I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
355  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
357  { is.bread(v); }
359  { UT_StringHolder rampdata;
360  loadData(is, rampdata);
361  if (rampdata.isstring())
362  {
363  v.reset(new UT_Ramp());
364  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
365  v->load(istr);
366  }
367  else v.reset();
368  }
371  loadData(is, data);
372  if (data.isstring())
373  {
374  // Find the data type.
375  const char *colon = UT_StringWrap(data).findChar(':');
376  if (colon)
377  {
378  int typelen = colon - data.buffer();
380  type.strncpy(data.buffer(), typelen);
381  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
382 
383  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
384  }
385  }
386  else v.reset();
387  }
388 
389  static void saveData(std::ostream &os, int64 v)
390  { UTwrite(os, &v); }
391  static void saveData(std::ostream &os, bool v)
392  { int64 iv = v; UTwrite(os, &iv); }
393  static void saveData(std::ostream &os, fpreal64 v)
394  { UTwrite<fpreal64>(os, &v); }
395  static void saveData(std::ostream &os, UT_Vector2D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
397  static void saveData(std::ostream &os, UT_Vector3D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); }
400  static void saveData(std::ostream &os, UT_Vector4D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
402  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
403  static void saveData(std::ostream &os, UT_Matrix2D v)
405  static void saveData(std::ostream &os, UT_Matrix3D v)
407  static void saveData(std::ostream &os, UT_Matrix4D v)
409  static void saveData(std::ostream &os, UT_StringHolder s)
410  { UT_StringWrap(s).saveBinary(os); }
411  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
413  UT_OStringStream ostr;
414  if (s) s->save(ostr);
415  result = ostr.str();
416  saveData(os, result);
417  }
418  static void saveData(std::ostream &os, PRM_DataItemHandle s)
420  UT_OStringStream ostr;
421  if (s)
422  {
423  ostr << s->getDataTypeToken();
424  ostr << ":";
425  s->saveBinary(ostr);
426  }
427  result = ostr.str();
428  saveData(os, result);
429  }
430 
431 
432  void save(std::ostream &os) const
433  {
434  int32 v = version();
435  UTwrite(os, &v);
436  saveData(os, myGroup);
437  saveData(os, myAction);
438  saveData(os, myApplyTo);
439  saveData(os, myViewport);
440  saveData(os, myCumulative);
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, myAction);
455  loadData(is, myApplyTo);
456  loadData(is, myViewport);
457  loadData(is, myCumulative);
458 
459  return true;
460  }
461 
462  const UT_StringHolder & getGroup() const { return myGroup; }
463  void setGroup(const UT_StringHolder & val) { myGroup = val; }
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getGroup();
469  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
470  return result;
471  }
472  Action getAction() const { return Action(myAction); }
473  void setAction(Action val) { myAction = int64(val); }
474  Action opAction(const SOP_NodeVerb::CookParms &cookparms) const
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getAction();
478  int64 result;
479  OP_Utils::evalOpParm(result, thissop, "action", cookparms.getCookTime(), 0);
480  return Action(result);
481  }
482  ApplyTo getApplyTo() const { return ApplyTo(myApplyTo); }
483  void setApplyTo(ApplyTo val) { myApplyTo = int64(val); }
484  ApplyTo opApplyTo(const SOP_NodeVerb::CookParms &cookparms) const
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getApplyTo();
488  int64 result;
489  OP_Utils::evalOpParm(result, thissop, "applyto", cookparms.getCookTime(), 0);
490  return ApplyTo(result);
491  }
492  Viewport getViewport() const { return Viewport(myViewport); }
493  void setViewport(Viewport val) { myViewport = int64(val); }
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getViewport();
498  int64 result;
499  OP_Utils::evalOpParm(result, thissop, "viewport", cookparms.getCookTime(), 0);
500  return Viewport(result);
501  }
502  bool getCumulative() const { return myCumulative; }
503  void setCumulative(bool val) { myCumulative = val; }
504  bool opCumulative(const SOP_NodeVerb::CookParms &cookparms) const
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getCumulative();
508  bool result;
509  OP_Utils::evalOpParm(result, thissop, "cumulative", cookparms.getCookTime(), 0);
510  return result;
511  }
512 
513 private:
514  UT_StringHolder myGroup;
515  int64 myAction;
516  int64 myApplyTo;
517  int64 myViewport;
518  bool myCumulative;
519 
520 };
bool opCumulative(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:556
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:63
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
static void saveData(std::ostream &os, bool v)
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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)
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