HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribSort.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_AttribSortEnums
24 {
25  enum class Class
26  {
27  PRIMITIVE = 0,
28  POINT,
29  VERTEX
30  };
31 
33  getToken(Class enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case Class::PRIMITIVE: return "primitive"_sh;
38  case Class::POINT: return "point"_sh;
39  case Class::VERTEX: return "vertex"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44  enum class Order
45  {
46  ASCENDING = 0,
48  };
49 
51  getToken(Order enum_value)
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case Order::ASCENDING: return "ascending"_sh;
56  case Order::DESCENDING: return "descending"_sh;
57  default: UT_ASSERT(false); return ""_sh;
58  }
59  }
60 
61 }
62 
63 
65 {
66 public:
67  static int version() { return 1; }
68 
70  {
71  myClass = 1;
72  myAttrib = ""_UTsh;
73  myComponent = 0;
74  myOrder = 0;
75  myUseindices = false;
76  myIndices = "indices"_UTsh;
77  myUseopencl = false;
78 
79  }
80 
81  explicit SOP_AttribSortParms(const SOP_AttribSortParms &) = default;
83  SOP_AttribSortParms(SOP_AttribSortParms &&) noexcept = default;
84  SOP_AttribSortParms &operator=(SOP_AttribSortParms &&) noexcept = default;
85 
86  ~SOP_AttribSortParms() override {}
87 
88  bool operator==(const SOP_AttribSortParms &src) const
89  {
90  if (myClass != src.myClass) return false;
91  if (myAttrib != src.myAttrib) return false;
92  if (myComponent != src.myComponent) return false;
93  if (myOrder != src.myOrder) return false;
94  if (myUseindices != src.myUseindices) return false;
95  if (myIndices != src.myIndices) return false;
96  if (myUseopencl != src.myUseopencl) return false;
97 
98 
99  if (baseGetSignature() != src.baseGetSignature()) return false;
100 
101  return true;
102  }
103  bool operator!=(const SOP_AttribSortParms &src) const
104  {
105  return !operator==(src);
106  }
109 
110 
111 
112  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
113  {
114  myClass = 1;
115  if (true)
116  graph->evalOpParm(myClass, nodeidx, "class", time, graph->isDirect()?nullptr:depnode);
117  myAttrib = ""_UTsh;
118  if (true)
119  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, graph->isDirect()?nullptr:depnode);
120  myComponent = 0;
121  if (true)
122  graph->evalOpParm(myComponent, nodeidx, "component", time, graph->isDirect()?nullptr:depnode);
123  myOrder = 0;
124  if (true)
125  graph->evalOpParm(myOrder, nodeidx, "order", time, graph->isDirect()?nullptr:depnode);
126  myUseindices = false;
127  if (true)
128  graph->evalOpParm(myUseindices, nodeidx, "useindices", time, graph->isDirect()?nullptr:depnode);
129  myIndices = "indices"_UTsh;
130  if (true && ( (true&&!(((getUseindices()==0)))) ) )
131  graph->evalOpParm(myIndices, nodeidx, "indices", time, graph->isDirect()?nullptr:depnode);
132  myUseopencl = false;
133  if (true)
134  graph->evalOpParm(myUseopencl, nodeidx, "useopencl", time, graph->isDirect()?nullptr:depnode);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const OP_NodeParms *src) override
146  {
147  *this = *((const SOP_AttribSortParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myClass);
163  break;
164  case 1:
165  coerceValue(value, myAttrib);
166  break;
167  case 2:
168  coerceValue(value, myComponent);
169  break;
170  case 3:
171  coerceValue(value, myOrder);
172  break;
173  case 4:
174  coerceValue(value, myUseindices);
175  break;
176  case 5:
177  coerceValue(value, myIndices);
178  break;
179  case 6:
180  coerceValue(value, myUseopencl);
181  break;
182 
183  }
184  }
185 
186  bool isParmColorRamp(exint idx) const override
187  {
188  switch (idx)
189  {
190 
191  }
192  return false;
193  }
194 
195  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
216  { doGetParmValue(idx, instance, value); }
217 
218  template <typename T>
219  void
220  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
221  {
222  if (idx.size() < 1)
223  return;
224  UT_ASSERT(idx.size() == instance.size()+1);
225  if (idx.size() != instance.size()+1)
226  return;
227  switch (idx[0])
228  {
229  case 0:
230  coerceValue(myClass, clampMinValue(0, clampMaxValue(2, value ) ));
231  break;
232  case 1:
233  coerceValue(myAttrib, ( ( value ) ));
234  break;
235  case 2:
236  coerceValue(myComponent, ( ( value ) ));
237  break;
238  case 3:
239  coerceValue(myOrder, clampMinValue(0, clampMaxValue(1, value ) ));
240  break;
241  case 4:
242  coerceValue(myUseindices, ( ( value ) ));
243  break;
244  case 5:
245  coerceValue(myIndices, ( ( value ) ));
246  break;
247  case 6:
248  coerceValue(myUseopencl, ( ( value ) ));
249  break;
250 
251  }
252  }
253 
254  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
275  { doSetParmValue(idx, instance, value); }
276 
277  exint getNestNumParms(TempIndex idx) const override
278  {
279  if (idx.size() == 0)
280  return 7;
281  switch (idx[0])
282  {
283 
284  }
285  // Invalid
286  return 0;
287  }
288 
289  const char *getNestParmName(TempIndex fieldnum) const override
290  {
291  if (fieldnum.size() < 1)
292  return 0;
293  switch (fieldnum[0])
294  {
295  case 0:
296  return "class";
297  case 1:
298  return "attrib";
299  case 2:
300  return "component";
301  case 3:
302  return "order";
303  case 4:
304  return "useindices";
305  case 5:
306  return "indices";
307  case 6:
308  return "useopencl";
309 
310  }
311  return 0;
312  }
313 
314  ParmType getNestParmType(TempIndex fieldnum) const override
315  {
316  if (fieldnum.size() < 1)
317  return PARM_UNSUPPORTED;
318  switch (fieldnum[0])
319  {
320  case 0:
321  return PARM_INTEGER;
322  case 1:
323  return PARM_STRING;
324  case 2:
325  return PARM_INTEGER;
326  case 3:
327  return PARM_INTEGER;
328  case 4:
329  return PARM_INTEGER;
330  case 5:
331  return PARM_STRING;
332  case 6:
333  return PARM_INTEGER;
334 
335  }
336  return PARM_UNSUPPORTED;
337  }
338 
339  // Boiler plate to load individual types.
340  static void loadData(UT_IStream &is, int64 &v)
341  { is.bread(&v, 1); }
342  static void loadData(UT_IStream &is, bool &v)
343  { int64 iv; is.bread(&iv, 1); v = iv; }
344  static void loadData(UT_IStream &is, fpreal64 &v)
345  { is.bread<fpreal64>(&v, 1); }
346  static void loadData(UT_IStream &is, UT_Vector2D &v)
347  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
348  static void loadData(UT_IStream &is, UT_Vector3D &v)
349  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
350  is.bread<fpreal64>(&v.z(), 1); }
351  static void loadData(UT_IStream &is, UT_Vector4D &v)
352  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
353  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
354  static void loadData(UT_IStream &is, UT_Matrix2D &v)
355  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
356  static void loadData(UT_IStream &is, UT_Matrix3D &v)
357  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
358  static void loadData(UT_IStream &is, UT_Matrix4D &v)
359  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
360  static void loadData(UT_IStream &is, UT_Vector2I &v)
361  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
362  static void loadData(UT_IStream &is, UT_Vector3I &v)
363  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
364  is.bread<int64>(&v.z(), 1); }
365  static void loadData(UT_IStream &is, UT_Vector4I &v)
366  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
367  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
369  { is.bread(v); }
371  { UT_StringHolder rampdata;
372  loadData(is, rampdata);
373  if (rampdata.isstring())
374  {
375  v.reset(new UT_Ramp());
376  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
377  v->load(istr);
378  }
379  else v.reset();
380  }
383  loadData(is, data);
384  if (data.isstring())
385  {
386  // Find the data type.
387  const char *colon = UT_StringWrap(data).findChar(':');
388  if (colon)
389  {
390  int typelen = colon - data.buffer();
392  type.strncpy(data.buffer(), typelen);
393  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
394 
395  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
396  }
397  }
398  else v.reset();
399  }
400 
401  static void saveData(std::ostream &os, int64 v)
402  { UTwrite(os, &v); }
403  static void saveData(std::ostream &os, bool v)
404  { int64 iv = v; UTwrite(os, &iv); }
405  static void saveData(std::ostream &os, fpreal64 v)
406  { UTwrite<fpreal64>(os, &v); }
407  static void saveData(std::ostream &os, UT_Vector2D v)
408  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
409  static void saveData(std::ostream &os, UT_Vector3D v)
410  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
411  UTwrite<fpreal64>(os, &v.z()); }
412  static void saveData(std::ostream &os, UT_Vector4D v)
413  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
414  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
415  static void saveData(std::ostream &os, UT_Matrix2D v)
417  static void saveData(std::ostream &os, UT_Matrix3D v)
419  static void saveData(std::ostream &os, UT_Matrix4D v)
421  static void saveData(std::ostream &os, UT_StringHolder s)
422  { UT_StringWrap(s).saveBinary(os); }
423  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
425  UT_OStringStream ostr;
426  if (s) s->save(ostr);
427  result = ostr.str();
428  saveData(os, result);
429  }
430  static void saveData(std::ostream &os, PRM_DataItemHandle s)
432  UT_OStringStream ostr;
433  if (s)
434  {
435  ostr << s->getDataTypeToken();
436  ostr << ":";
437  s->saveBinary(ostr);
438  }
439  result = ostr.str();
440  saveData(os, result);
441  }
442 
443 
444  void save(std::ostream &os) const
445  {
446  int32 v = version();
447  UTwrite(os, &v);
448  saveData(os, myClass);
449  saveData(os, myAttrib);
450  saveData(os, myComponent);
451  saveData(os, myOrder);
452  saveData(os, myUseindices);
453  saveData(os, myIndices);
454  saveData(os, myUseopencl);
455 
456  }
457 
458  bool load(UT_IStream &is)
459  {
460  int32 v;
461  is.bread(&v, 1);
462  if (version() != v)
463  {
464  // Fail incompatible versions
465  return false;
466  }
467  loadData(is, myClass);
468  loadData(is, myAttrib);
469  loadData(is, myComponent);
470  loadData(is, myOrder);
471  loadData(is, myUseindices);
472  loadData(is, myIndices);
473  loadData(is, myUseopencl);
474 
475  return true;
476  }
477 
478  Class getClass() const { return Class(myClass); }
479  void setClass(Class val) { myClass = int64(val); }
480  Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
481  {
482  SOP_Node *thissop = cookparms.getNode();
483  if (!thissop) return getClass();
484  int64 result;
485  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
486  return Class(result);
487  }
488  const UT_StringHolder & getAttrib() const { return myAttrib; }
489  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
491  {
492  SOP_Node *thissop = cookparms.getNode();
493  if (!thissop) return getAttrib();
495  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
496  return result;
497  }
498  int64 getComponent() const { return myComponent; }
499  void setComponent(int64 val) { myComponent = val; }
500  int64 opComponent(const SOP_NodeVerb::CookParms &cookparms) const
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getComponent();
504  int64 result;
505  OP_Utils::evalOpParm(result, thissop, "component", cookparms.getCookTime(), 0);
506  return result;
507  }
508  Order getOrder() const { return Order(myOrder); }
509  void setOrder(Order val) { myOrder = int64(val); }
510  Order opOrder(const SOP_NodeVerb::CookParms &cookparms) const
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getOrder();
514  int64 result;
515  OP_Utils::evalOpParm(result, thissop, "order", cookparms.getCookTime(), 0);
516  return Order(result);
517  }
518  bool getUseindices() const { return myUseindices; }
519  void setUseindices(bool val) { myUseindices = val; }
520  bool opUseindices(const SOP_NodeVerb::CookParms &cookparms) const
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getUseindices();
524  bool result;
525  OP_Utils::evalOpParm(result, thissop, "useindices", cookparms.getCookTime(), 0);
526  return result;
527  }
528  const UT_StringHolder & getIndices() const { return myIndices; }
529  void setIndices(const UT_StringHolder & val) { myIndices = val; }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getIndices();
535  OP_Utils::evalOpParm(result, thissop, "indices", cookparms.getCookTime(), 0);
536  return result;
537  }
538  bool getUseopencl() const { return myUseopencl; }
539  void setUseopencl(bool val) { myUseopencl = val; }
540  bool opUseopencl(const SOP_NodeVerb::CookParms &cookparms) const
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getUseopencl();
544  bool result;
545  OP_Utils::evalOpParm(result, thissop, "useopencl", cookparms.getCookTime(), 0);
546  return result;
547  }
548 
549 private:
550  int64 myClass;
551  UT_StringHolder myAttrib;
552  int64 myComponent;
553  int64 myOrder;
554  bool myUseindices;
555  UT_StringHolder myIndices;
556  bool myUseopencl;
557 
558 };
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
type
Definition: core.h:556
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getAttrib() const
static void saveData(std::ostream &os, UT_Vector3D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector2D &v)
const UT_StringHolder & getIndices() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
int myOrder
Definition: GT_CurveEval.h:263
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 saveData(std::ostream &os, UT_Matrix4D v)
fpreal getTime() const
Definition: OP_Context.h:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
bool opUseopencl(const SOP_NodeVerb::CookParms &cookparms) const
Order opOrder(const SOP_NodeVerb::CookParms &cookparms) const
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
GLdouble s
Definition: glad.h:3009
exint getNestNumParms(TempIndex idx) const override
An output stream object that owns its own string buffer storage.
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
**But if you need a result
Definition: thread.h:622
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
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.
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, int64 v)
ParmType getNestParmType(TempIndex fieldnum) const override
int64 opComponent(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool opUseindices(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setIndices(const UT_StringHolder &val)
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator!=(const SOP_AttribSortParms &src) const
bool isParmColorRamp(exint idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
long long int64
Definition: SYS_Types.h:116
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setUseindices(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, bool v)
bool operator==(const SOP_AttribSortParms &src) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, fpreal64 &v)
Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setAttrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, bool &v)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
SYS_FORCE_INLINE UT_StringHolder getToken(Class enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, int64 &v)
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opIndices(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
void setComponent(int64 val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool load(UT_IStream &is)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
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