HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribFill.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_AttribFillEnums
24 {
25  enum class Mode
26  {
27  EIKONAL = 0,
28  POISSON,
29  HEAT
30  };
31 
33  getToken(Mode enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case Mode::EIKONAL: return "eikonal"_sh;
38  case Mode::POISSON: return "poisson"_sh;
39  case Mode::HEAT: return "heat"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myMode = 1;
55  myAttrib = ""_UTsh;
56  mySource = ""_UTsh;
57  myWeights = ""_UTsh;
58  mySpeed = ""_UTsh;
59  myBoundary = ""_UTsh;
60  myMindist = 1e-8;
61  myMinspeed = 1e-8;
62  myTimestep = 0.02;
63  myUnreachableval = -1;
64 
65  }
66 
67  explicit SOP_AttribFillParms(const SOP_AttribFillParms &) = default;
69  SOP_AttribFillParms(SOP_AttribFillParms &&) noexcept = default;
70  SOP_AttribFillParms &operator=(SOP_AttribFillParms &&) noexcept = default;
71 
72  ~SOP_AttribFillParms() override {}
73 
74  bool operator==(const SOP_AttribFillParms &src) const
75  {
76  if (myMode != src.myMode) return false;
77  if (myAttrib != src.myAttrib) return false;
78  if (mySource != src.mySource) return false;
79  if (myWeights != src.myWeights) return false;
80  if (mySpeed != src.mySpeed) return false;
81  if (myBoundary != src.myBoundary) return false;
82  if (myMindist != src.myMindist) return false;
83  if (myMinspeed != src.myMinspeed) return false;
84  if (myTimestep != src.myTimestep) return false;
85  if (myUnreachableval != src.myUnreachableval) return false;
86 
87  return true;
88  }
89  bool operator!=(const SOP_AttribFillParms &src) const
90  {
91  return !operator==(src);
92  }
94 
95 
96 
97  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
98  {
99  myMode = 1;
100  if (true)
101  graph->evalOpParm(myMode, nodeidx, "mode", time, 0);
102  myAttrib = ""_UTsh;
103  if (true)
104  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
105  mySource = ""_UTsh;
106  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
107  graph->evalOpParm(mySource, nodeidx, "source", time, 0);
108  myWeights = ""_UTsh;
109  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
110  graph->evalOpParm(myWeights, nodeidx, "weights", time, 0);
111  mySpeed = ""_UTsh;
112  if (true && ( (true&&!(((int64(getMode())!=0)&&(int64(getMode())!=2)))) ) )
113  graph->evalOpParm(mySpeed, nodeidx, "speed", time, 0);
114  myBoundary = ""_UTsh;
115  if (true)
116  graph->evalOpParm(myBoundary, nodeidx, "boundary", time, 0);
117  myMindist = 1e-8;
118  if (true && ( (true&&!(((int64(getMode())!=1)&&(int64(getMode())!=2)))) ) )
119  graph->evalOpParm(myMindist, nodeidx, "mindist", time, 0);
120  myMinspeed = 1e-8;
121  if (true && ( (true&&!(((int64(getMode())!=2)))) ) )
122  graph->evalOpParm(myMinspeed, nodeidx, "minspeed", time, 0);
123  myTimestep = 0.02;
124  if (true && ( (true&&!(((int64(getMode())!=2)))) ) )
125  graph->evalOpParm(myTimestep, nodeidx, "timestep", time, 0);
126  myUnreachableval = -1;
127  if (true && ( (true&&!(((int64(getMode())!=0)))) ) )
128  graph->evalOpParm(myUnreachableval, nodeidx, "unreachableval", time, 0);
129 
130  }
131 
132 
133  void loadFromOpSubclass(const LoadParms &loadparms) override
134  {
135  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
136  }
137 
138 
139  void copyFrom(const OP_NodeParms *src) override
140  {
141  *this = *((const SOP_AttribFillParms *)src);
142  }
143 
144  template <typename T>
145  void
146  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
147  {
148  if (idx.size() < 1)
149  return;
150  UT_ASSERT(idx.size() == instance.size()+1);
151  if (idx.size() != instance.size()+1)
152  return;
153  switch (idx[0])
154  {
155  case 0:
156  coerceValue(value, myMode);
157  break;
158  case 1:
159  coerceValue(value, myAttrib);
160  break;
161  case 2:
162  coerceValue(value, mySource);
163  break;
164  case 3:
165  coerceValue(value, myWeights);
166  break;
167  case 4:
168  coerceValue(value, mySpeed);
169  break;
170  case 5:
171  coerceValue(value, myBoundary);
172  break;
173  case 6:
174  coerceValue(value, myMindist);
175  break;
176  case 7:
177  coerceValue(value, myMinspeed);
178  break;
179  case 8:
180  coerceValue(value, myTimestep);
181  break;
182  case 9:
183  coerceValue(value, myUnreachableval);
184  break;
185 
186  }
187  }
188 
189  bool isParmColorRamp(exint idx) const override
190  {
191  switch (idx)
192  {
193 
194  }
195  return false;
196  }
197 
198  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
219  { doGetParmValue(idx, instance, value); }
220 
221  template <typename T>
222  void
223  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
224  {
225  if (idx.size() < 1)
226  return;
227  UT_ASSERT(idx.size() == instance.size()+1);
228  if (idx.size() != instance.size()+1)
229  return;
230  switch (idx[0])
231  {
232  case 0:
233  coerceValue(myMode, clampMinValue(0, clampMaxValue(2, value ) ));
234  break;
235  case 1:
236  coerceValue(myAttrib, ( ( value ) ));
237  break;
238  case 2:
239  coerceValue(mySource, ( ( value ) ));
240  break;
241  case 3:
242  coerceValue(myWeights, ( ( value ) ));
243  break;
244  case 4:
245  coerceValue(mySpeed, ( ( value ) ));
246  break;
247  case 5:
248  coerceValue(myBoundary, ( ( value ) ));
249  break;
250  case 6:
251  coerceValue(myMindist, clampMinValue(0, ( value ) ));
252  break;
253  case 7:
254  coerceValue(myMinspeed, clampMinValue(0, ( value ) ));
255  break;
256  case 8:
257  coerceValue(myTimestep, clampMinValue(0, ( value ) ));
258  break;
259  case 9:
260  coerceValue(myUnreachableval, ( ( value ) ));
261  break;
262 
263  }
264  }
265 
266  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
287  { doSetParmValue(idx, instance, value); }
288 
289  exint getNestNumParms(TempIndex idx) const override
290  {
291  if (idx.size() == 0)
292  return 10;
293  switch (idx[0])
294  {
295 
296  }
297  // Invalid
298  return 0;
299  }
300 
301  const char *getNestParmName(TempIndex fieldnum) const override
302  {
303  if (fieldnum.size() < 1)
304  return 0;
305  switch (fieldnum[0])
306  {
307  case 0:
308  return "mode";
309  case 1:
310  return "attrib";
311  case 2:
312  return "source";
313  case 3:
314  return "weights";
315  case 4:
316  return "speed";
317  case 5:
318  return "boundary";
319  case 6:
320  return "mindist";
321  case 7:
322  return "minspeed";
323  case 8:
324  return "timestep";
325  case 9:
326  return "unreachableval";
327 
328  }
329  return 0;
330  }
331 
332  ParmType getNestParmType(TempIndex fieldnum) const override
333  {
334  if (fieldnum.size() < 1)
335  return PARM_UNSUPPORTED;
336  switch (fieldnum[0])
337  {
338  case 0:
339  return PARM_INTEGER;
340  case 1:
341  return PARM_STRING;
342  case 2:
343  return PARM_STRING;
344  case 3:
345  return PARM_STRING;
346  case 4:
347  return PARM_STRING;
348  case 5:
349  return PARM_STRING;
350  case 6:
351  return PARM_FLOAT;
352  case 7:
353  return PARM_FLOAT;
354  case 8:
355  return PARM_FLOAT;
356  case 9:
357  return PARM_FLOAT;
358 
359  }
360  return PARM_UNSUPPORTED;
361  }
362 
363  // Boiler plate to load individual types.
364  static void loadData(UT_IStream &is, int64 &v)
365  { is.bread(&v, 1); }
366  static void loadData(UT_IStream &is, bool &v)
367  { int64 iv; is.bread(&iv, 1); v = iv; }
368  static void loadData(UT_IStream &is, fpreal64 &v)
369  { is.bread<fpreal64>(&v, 1); }
370  static void loadData(UT_IStream &is, UT_Vector2D &v)
371  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector3D &v)
373  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
374  is.bread<fpreal64>(&v.z(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector4D &v)
376  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
377  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
378  static void loadData(UT_IStream &is, UT_Matrix2D &v)
379  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
380  static void loadData(UT_IStream &is, UT_Matrix3D &v)
381  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
382  static void loadData(UT_IStream &is, UT_Matrix4D &v)
383  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
384  static void loadData(UT_IStream &is, UT_Vector2I &v)
385  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
386  static void loadData(UT_IStream &is, UT_Vector3I &v)
387  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
388  is.bread<int64>(&v.z(), 1); }
389  static void loadData(UT_IStream &is, UT_Vector4I &v)
390  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
391  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
393  { is.bread(v); }
395  { UT_StringHolder rampdata;
396  loadData(is, rampdata);
397  if (rampdata.isstring())
398  {
399  v.reset(new UT_Ramp());
400  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
401  v->load(istr);
402  }
403  else v.reset();
404  }
407  loadData(is, data);
408  if (data.isstring())
409  {
410  // Find the data type.
411  const char *colon = UT_StringWrap(data).findChar(':');
412  if (colon)
413  {
414  int typelen = colon - data.buffer();
416  type.strncpy(data.buffer(), typelen);
417  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
418 
419  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
420  }
421  }
422  else v.reset();
423  }
424 
425  static void saveData(std::ostream &os, int64 v)
426  { UTwrite(os, &v); }
427  static void saveData(std::ostream &os, bool v)
428  { int64 iv = v; UTwrite(os, &iv); }
429  static void saveData(std::ostream &os, fpreal64 v)
430  { UTwrite<fpreal64>(os, &v); }
431  static void saveData(std::ostream &os, UT_Vector2D v)
432  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
433  static void saveData(std::ostream &os, UT_Vector3D v)
434  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
435  UTwrite<fpreal64>(os, &v.z()); }
436  static void saveData(std::ostream &os, UT_Vector4D v)
437  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
438  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
439  static void saveData(std::ostream &os, UT_Matrix2D v)
441  static void saveData(std::ostream &os, UT_Matrix3D v)
443  static void saveData(std::ostream &os, UT_Matrix4D v)
445  static void saveData(std::ostream &os, UT_StringHolder s)
446  { UT_StringWrap(s).saveBinary(os); }
447  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
449  UT_OStringStream ostr;
450  if (s) s->save(ostr);
451  result = ostr.str();
452  saveData(os, result);
453  }
454  static void saveData(std::ostream &os, PRM_DataItemHandle s)
456  UT_OStringStream ostr;
457  if (s)
458  {
459  ostr << s->getDataTypeToken();
460  ostr << ":";
461  s->saveBinary(ostr);
462  }
463  result = ostr.str();
464  saveData(os, result);
465  }
466 
467 
468  void save(std::ostream &os) const
469  {
470  int32 v = version();
471  UTwrite(os, &v);
472  saveData(os, myMode);
473  saveData(os, myAttrib);
474  saveData(os, mySource);
475  saveData(os, myWeights);
476  saveData(os, mySpeed);
477  saveData(os, myBoundary);
478  saveData(os, myMindist);
479  saveData(os, myMinspeed);
480  saveData(os, myTimestep);
481  saveData(os, myUnreachableval);
482 
483  }
484 
485  bool load(UT_IStream &is)
486  {
487  int32 v;
488  is.bread(&v, 1);
489  if (version() != v)
490  {
491  // Fail incompatible versions
492  return false;
493  }
494  loadData(is, myMode);
495  loadData(is, myAttrib);
496  loadData(is, mySource);
497  loadData(is, myWeights);
498  loadData(is, mySpeed);
499  loadData(is, myBoundary);
500  loadData(is, myMindist);
501  loadData(is, myMinspeed);
502  loadData(is, myTimestep);
503  loadData(is, myUnreachableval);
504 
505  return true;
506  }
507 
508  Mode getMode() const { return Mode(myMode); }
509  void setMode(Mode val) { myMode = int64(val); }
510  Mode opMode(const SOP_NodeVerb::CookParms &cookparms) const
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getMode();
514  int64 result;
515  OP_Utils::evalOpParm(result, thissop, "mode", cookparms.getCookTime(), 0);
516  return Mode(result);
517  }
518  const UT_StringHolder & getAttrib() const { return myAttrib; }
519  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getAttrib();
525  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
526  return result;
527  }
528  const UT_StringHolder & getSource() const { return mySource; }
529  void setSource(const UT_StringHolder & val) { mySource = val; }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getSource();
535  OP_Utils::evalOpParm(result, thissop, "source", cookparms.getCookTime(), 0);
536  return result;
537  }
538  const UT_StringHolder & getWeights() const { return myWeights; }
539  void setWeights(const UT_StringHolder & val) { myWeights = val; }
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getWeights();
545  OP_Utils::evalOpParm(result, thissop, "weights", cookparms.getCookTime(), 0);
546  return result;
547  }
548  const UT_StringHolder & getSpeed() const { return mySpeed; }
549  void setSpeed(const UT_StringHolder & val) { mySpeed = val; }
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getSpeed();
555  OP_Utils::evalOpParm(result, thissop, "speed", cookparms.getCookTime(), 0);
556  return result;
557  }
558  const UT_StringHolder & getBoundary() const { return myBoundary; }
559  void setBoundary(const UT_StringHolder & val) { myBoundary = val; }
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getBoundary();
565  OP_Utils::evalOpParm(result, thissop, "boundary", cookparms.getCookTime(), 0);
566  return result;
567  }
568  fpreal64 getMindist() const { return myMindist; }
569  void setMindist(fpreal64 val) { myMindist = val; }
571  {
572  SOP_Node *thissop = cookparms.getNode();
573  if (!thissop) return getMindist();
575  OP_Utils::evalOpParm(result, thissop, "mindist", cookparms.getCookTime(), 0);
576  return result;
577  }
578  fpreal64 getMinspeed() const { return myMinspeed; }
579  void setMinspeed(fpreal64 val) { myMinspeed = val; }
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getMinspeed();
585  OP_Utils::evalOpParm(result, thissop, "minspeed", cookparms.getCookTime(), 0);
586  return result;
587  }
588  fpreal64 getTimestep() const { return myTimestep; }
589  void setTimestep(fpreal64 val) { myTimestep = val; }
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return getTimestep();
595  OP_Utils::evalOpParm(result, thissop, "timestep", cookparms.getCookTime(), 0);
596  return result;
597  }
598  fpreal64 getUnreachableval() const { return myUnreachableval; }
599  void setUnreachableval(fpreal64 val) { myUnreachableval = val; }
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getUnreachableval();
605  OP_Utils::evalOpParm(result, thissop, "unreachableval", cookparms.getCookTime(), 0);
606  return result;
607  }
608 
609 private:
610  int64 myMode;
611  UT_StringHolder myAttrib;
612  UT_StringHolder mySource;
613  UT_StringHolder myWeights;
614  UT_StringHolder mySpeed;
615  UT_StringHolder myBoundary;
616  fpreal64 myMindist;
617  fpreal64 myMinspeed;
618  fpreal64 myTimestep;
619  fpreal64 myUnreachableval;
620 
621 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 opMindist(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opSpeed(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal64 opMinspeed(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const UT_StringHolder & getAttrib() const
static void saveData(std::ostream &os, UT_StringHolder s)
void setMinspeed(fpreal64 val)
Mode opMode(const SOP_NodeVerb::CookParms &cookparms) const
void setUnreachableval(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, UT_StringHolder &v)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
void setMindist(fpreal64 val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
int getSource() override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
fpreal64 opUnreachableval(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_StringHolder opSource(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
bool operator!=(const SOP_AttribFillParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
**But if you need a result
Definition: thread.h:613
const UT_StringHolder & getBoundary() const
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
exint getNestNumParms(TempIndex idx) const override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
fpreal64 opTimestep(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, int64 v)
double fpreal64
Definition: SYS_Types.h:201
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
const UT_StringHolder & getWeights() const
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void save(std::ostream &os) const
UT_StringHolder opWeights(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint length() const
static void saveData(std::ostream &os, fpreal64 v)
fpreal64 getMindist() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
fpreal64 getUnreachableval() const
void setBoundary(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, int64 &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void saveData(std::ostream &os, UT_Vector2D v)
bool operator==(const SOP_AttribFillParms &src) const
long long int64
Definition: SYS_Types.h:116
bool isParmColorRamp(exint idx) const override
const UT_StringHolder & getSpeed() const
fpreal64 getMinspeed() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setTimestep(fpreal64 val)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GT_API const UT_StringHolder version
void setWeights(const UT_StringHolder &val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setSource(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
void setAttrib(const UT_StringHolder &val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
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
UT_StringHolder opBoundary(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const UT_StringHolder & getSource() const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void loadFromOpSubclass(const LoadParms &loadparms) override
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
SYS_FORCE_INLINE UT_StringHolder getToken(Mode enum_value)
fpreal64 getTimestep() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
void setSpeed(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, fpreal64 &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Vector4D 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