HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_WeightArrayBiharmonic.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_WeightArrayBiharmonicEnums
24 {
25  enum class PrimType
26  {
27  TRIANGLES = 0,
29  };
30 
32  getToken(PrimType enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case PrimType::TRIANGLES: return "triangles"_sh;
37  case PrimType::TETRAHEDRA: return "tetrahedra"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myGroup = ""_UTsh;
53  myPrimType = 0;
54  myMaxIterations = 1;
55  myIndexattrib = "guides"_UTsh;
56  myWeightattrib = "weights"_UTsh;
57  myDiffTol = 1e-4;
58  myVerbose = false;
59 
60  }
61 
65  SOP_WeightArrayBiharmonicParms &operator=(SOP_WeightArrayBiharmonicParms &&) noexcept = default;
66 
68 
70  {
71  if (myGroup != src.myGroup) return false;
72  if (myPrimType != src.myPrimType) return false;
73  if (myMaxIterations != src.myMaxIterations) return false;
74  if (myIndexattrib != src.myIndexattrib) return false;
75  if (myWeightattrib != src.myWeightattrib) return false;
76  if (myDiffTol != src.myDiffTol) return false;
77  if (myVerbose != src.myVerbose) return false;
78 
79 
80  if (baseGetSignature() != src.baseGetSignature()) return false;
81 
82  return true;
83  }
85  {
86  return !operator==(src);
87  }
89 
90 
91 
92  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
93  {
94  myGroup = ""_UTsh;
95  if (true)
96  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
97  myPrimType = 0;
98  if (true)
99  graph->evalOpParm(myPrimType, nodeidx, "primtype", time, graph->isDirect()?nullptr:depnode);
100  myMaxIterations = 1;
101  if (true)
102  graph->evalOpParm(myMaxIterations, nodeidx, "maxiter", time, graph->isDirect()?nullptr:depnode);
103  myIndexattrib = "guides"_UTsh;
104  if (true)
105  graph->evalOpParm(myIndexattrib, nodeidx, "indexattrib", time, graph->isDirect()?nullptr:depnode);
106  myWeightattrib = "weights"_UTsh;
107  if (true)
108  graph->evalOpParm(myWeightattrib, nodeidx, "weightattrib", time, graph->isDirect()?nullptr:depnode);
109  myDiffTol = 1e-4;
110  if (true)
111  graph->evalOpParm(myDiffTol, nodeidx, "difftol", time, graph->isDirect()?nullptr:depnode);
112  myVerbose = false;
113  if (true)
114  graph->evalOpParm(myVerbose, nodeidx, "verbose", time, graph->isDirect()?nullptr:depnode);
115 
116  }
117 
118 
119  void loadFromOpSubclass(const LoadParms &loadparms) override
120  {
121  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
122  }
123 
124 
125  void copyFrom(const OP_NodeParms *src) override
126  {
127  *this = *((const SOP_WeightArrayBiharmonicParms *)src);
128  }
129 
130  template <typename T>
131  void
132  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
133  {
134  if (idx.size() < 1)
135  return;
136  UT_ASSERT(idx.size() == instance.size()+1);
137  if (idx.size() != instance.size()+1)
138  return;
139  switch (idx[0])
140  {
141  case 0:
142  coerceValue(value, myGroup);
143  break;
144  case 1:
145  coerceValue(value, myPrimType);
146  break;
147  case 2:
148  coerceValue(value, myMaxIterations);
149  break;
150  case 3:
151  coerceValue(value, myIndexattrib);
152  break;
153  case 4:
154  coerceValue(value, myWeightattrib);
155  break;
156  case 5:
157  coerceValue(value, myDiffTol);
158  break;
159  case 6:
160  coerceValue(value, myVerbose);
161  break;
162 
163  }
164  }
165 
166  bool isParmColorRamp(exint idx) const override
167  {
168  switch (idx)
169  {
170 
171  }
172  return false;
173  }
174 
175  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
196  { doGetParmValue(idx, instance, value); }
197 
198  template <typename T>
199  void
200  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
201  {
202  if (idx.size() < 1)
203  return;
204  UT_ASSERT(idx.size() == instance.size()+1);
205  if (idx.size() != instance.size()+1)
206  return;
207  switch (idx[0])
208  {
209  case 0:
210  coerceValue(myGroup, ( ( value ) ));
211  break;
212  case 1:
213  coerceValue(myPrimType, clampMinValue(0, clampMaxValue(1, value ) ));
214  break;
215  case 2:
216  coerceValue(myMaxIterations, clampMinValue(0, ( value ) ));
217  break;
218  case 3:
219  coerceValue(myIndexattrib, ( ( value ) ));
220  break;
221  case 4:
222  coerceValue(myWeightattrib, ( ( value ) ));
223  break;
224  case 5:
225  coerceValue(myDiffTol, ( ( value ) ));
226  break;
227  case 6:
228  coerceValue(myVerbose, ( ( value ) ));
229  break;
230 
231  }
232  }
233 
234  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
255  { doSetParmValue(idx, instance, value); }
256 
257  exint getNestNumParms(TempIndex idx) const override
258  {
259  if (idx.size() == 0)
260  return 7;
261  switch (idx[0])
262  {
263 
264  }
265  // Invalid
266  return 0;
267  }
268 
269  const char *getNestParmName(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return 0;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return "group";
277  case 1:
278  return "primtype";
279  case 2:
280  return "maxiter";
281  case 3:
282  return "indexattrib";
283  case 4:
284  return "weightattrib";
285  case 5:
286  return "difftol";
287  case 6:
288  return "verbose";
289 
290  }
291  return 0;
292  }
293 
294  ParmType getNestParmType(TempIndex fieldnum) const override
295  {
296  if (fieldnum.size() < 1)
297  return PARM_UNSUPPORTED;
298  switch (fieldnum[0])
299  {
300  case 0:
301  return PARM_STRING;
302  case 1:
303  return PARM_INTEGER;
304  case 2:
305  return PARM_INTEGER;
306  case 3:
307  return PARM_STRING;
308  case 4:
309  return PARM_STRING;
310  case 5:
311  return PARM_FLOAT;
312  case 6:
313  return PARM_INTEGER;
314 
315  }
316  return PARM_UNSUPPORTED;
317  }
318 
319  // Boiler plate to load individual types.
320  static void loadData(UT_IStream &is, int64 &v)
321  { is.bread(&v, 1); }
322  static void loadData(UT_IStream &is, bool &v)
323  { int64 iv; is.bread(&iv, 1); v = iv; }
324  static void loadData(UT_IStream &is, fpreal64 &v)
325  { is.bread<fpreal64>(&v, 1); }
326  static void loadData(UT_IStream &is, UT_Vector2D &v)
327  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
328  static void loadData(UT_IStream &is, UT_Vector3D &v)
329  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
330  is.bread<fpreal64>(&v.z(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector4D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
334  static void loadData(UT_IStream &is, UT_Matrix2D &v)
335  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
336  static void loadData(UT_IStream &is, UT_Matrix3D &v)
337  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
338  static void loadData(UT_IStream &is, UT_Matrix4D &v)
339  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
340  static void loadData(UT_IStream &is, UT_Vector2I &v)
341  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
342  static void loadData(UT_IStream &is, UT_Vector3I &v)
343  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
344  is.bread<int64>(&v.z(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector4I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
349  { is.bread(v); }
351  { UT_StringHolder rampdata;
352  loadData(is, rampdata);
353  if (rampdata.isstring())
354  {
355  v.reset(new UT_Ramp());
356  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
357  v->load(istr);
358  }
359  else v.reset();
360  }
363  loadData(is, data);
364  if (data.isstring())
365  {
366  // Find the data type.
367  const char *colon = UT_StringWrap(data).findChar(':');
368  if (colon)
369  {
370  int typelen = colon - data.buffer();
372  type.strncpy(data.buffer(), typelen);
373  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
374 
375  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
376  }
377  }
378  else v.reset();
379  }
380 
381  static void saveData(std::ostream &os, int64 v)
382  { UTwrite(os, &v); }
383  static void saveData(std::ostream &os, bool v)
384  { int64 iv = v; UTwrite(os, &iv); }
385  static void saveData(std::ostream &os, fpreal64 v)
386  { UTwrite<fpreal64>(os, &v); }
387  static void saveData(std::ostream &os, UT_Vector2D v)
388  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
389  static void saveData(std::ostream &os, UT_Vector3D v)
390  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
391  UTwrite<fpreal64>(os, &v.z()); }
392  static void saveData(std::ostream &os, UT_Vector4D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
395  static void saveData(std::ostream &os, UT_Matrix2D v)
397  static void saveData(std::ostream &os, UT_Matrix3D v)
399  static void saveData(std::ostream &os, UT_Matrix4D v)
401  static void saveData(std::ostream &os, UT_StringHolder s)
402  { UT_StringWrap(s).saveBinary(os); }
403  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
405  UT_OStringStream ostr;
406  if (s) s->save(ostr);
407  result = ostr.str();
408  saveData(os, result);
409  }
410  static void saveData(std::ostream &os, PRM_DataItemHandle s)
412  UT_OStringStream ostr;
413  if (s)
414  {
415  ostr << s->getDataTypeToken();
416  ostr << ":";
417  s->saveBinary(ostr);
418  }
419  result = ostr.str();
420  saveData(os, result);
421  }
422 
423 
424  void save(std::ostream &os) const
425  {
426  int32 v = version();
427  UTwrite(os, &v);
428  saveData(os, myGroup);
429  saveData(os, myPrimType);
430  saveData(os, myMaxIterations);
431  saveData(os, myIndexattrib);
432  saveData(os, myWeightattrib);
433  saveData(os, myDiffTol);
434  saveData(os, myVerbose);
435 
436  }
437 
438  bool load(UT_IStream &is)
439  {
440  int32 v;
441  is.bread(&v, 1);
442  if (version() != v)
443  {
444  // Fail incompatible versions
445  return false;
446  }
447  loadData(is, myGroup);
448  loadData(is, myPrimType);
449  loadData(is, myMaxIterations);
450  loadData(is, myIndexattrib);
451  loadData(is, myWeightattrib);
452  loadData(is, myDiffTol);
453  loadData(is, myVerbose);
454 
455  return true;
456  }
457 
458  const UT_StringHolder & getGroup() const { return myGroup; }
459  void setGroup(const UT_StringHolder & val) { myGroup = val; }
461  {
462  SOP_Node *thissop = cookparms.getNode();
463  if (!thissop) return getGroup();
465  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
466  return result;
467  }
468  PrimType getPrimType() const { return PrimType(myPrimType); }
469  void setPrimType(PrimType val) { myPrimType = int64(val); }
471  {
472  SOP_Node *thissop = cookparms.getNode();
473  if (!thissop) return getPrimType();
474  int64 result;
475  OP_Utils::evalOpParm(result, thissop, "primtype", cookparms.getCookTime(), 0);
476  return PrimType(result);
477  }
478  int64 getMaxIterations() const { return myMaxIterations; }
479  void setMaxIterations(int64 val) { myMaxIterations = val; }
481  {
482  SOP_Node *thissop = cookparms.getNode();
483  if (!thissop) return getMaxIterations();
484  int64 result;
485  OP_Utils::evalOpParm(result, thissop, "maxiter", cookparms.getCookTime(), 0);
486  return result;
487  }
488  const UT_StringHolder & getIndexattrib() const { return myIndexattrib; }
489  void setIndexattrib(const UT_StringHolder & val) { myIndexattrib = val; }
491  {
492  SOP_Node *thissop = cookparms.getNode();
493  if (!thissop) return getIndexattrib();
495  OP_Utils::evalOpParm(result, thissop, "indexattrib", cookparms.getCookTime(), 0);
496  return result;
497  }
498  const UT_StringHolder & getWeightattrib() const { return myWeightattrib; }
499  void setWeightattrib(const UT_StringHolder & val) { myWeightattrib = val; }
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getWeightattrib();
505  OP_Utils::evalOpParm(result, thissop, "weightattrib", cookparms.getCookTime(), 0);
506  return result;
507  }
508  fpreal64 getDiffTol() const { return myDiffTol; }
509  void setDiffTol(fpreal64 val) { myDiffTol = val; }
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getDiffTol();
515  OP_Utils::evalOpParm(result, thissop, "difftol", cookparms.getCookTime(), 0);
516  return result;
517  }
518  bool getVerbose() const { return myVerbose; }
519  void setVerbose(bool val) { myVerbose = val; }
520  bool opVerbose(const SOP_NodeVerb::CookParms &cookparms) const
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getVerbose();
524  bool result;
525  OP_Utils::evalOpParm(result, thissop, "verbose", cookparms.getCookTime(), 0);
526  return result;
527  }
528 
529 private:
530  UT_StringHolder myGroup;
531  int64 myPrimType;
532  int64 myMaxIterations;
533  UT_StringHolder myIndexattrib;
534  UT_StringHolder myWeightattrib;
535  fpreal64 myDiffTol;
536  bool myVerbose;
537 
538 };
PrimType opPrimType(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:556
SYS_FORCE_INLINE UT_StringHolder getToken(PrimType enum_value)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
const char * getNestParmName(TempIndex fieldnum) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, int64 v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, UT_Vector3I &v)
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
fpreal getTime() const
Definition: OP_Context.h:63
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GLsizei const GLfloat * value
Definition: glcorearb.h:824
bool operator!=(const SOP_WeightArrayBiharmonicParms &src) const
static void saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
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
fpreal64 opDiffTol(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Matrix4D v)
int64 opMaxIterations(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
**But if you need a result
Definition: thread.h:622
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
bool operator==(const SOP_WeightArrayBiharmonicParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, UT_StringHolder s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_StringHolder opIndexattrib(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
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool isParmColorRamp(exint idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setIndexattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
exint length() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
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 loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
bool opVerbose(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opWeightattrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, fpreal64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, int64 &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GT_API const UT_StringHolder version
void setGroup(const UT_StringHolder &val)
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setWeightattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
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
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
void copyFrom(const OP_NodeParms *src) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const UT_StringHolder & getIndexattrib() const
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
const UT_StringHolder & getWeightattrib() const
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const UT_StringHolder & getGroup() const
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
GEO_API int getPrimType(const TypeMask &mask)
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)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663