HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_TextureFeature.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_TextureFeatureEnums
24 {
25  enum class Method
26  {
27  CORNER = 0,
28  MINEIG
29  };
30 
32  getToken(Method enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Method::CORNER: return "corner"_sh;
37  case Method::MINEIG: return "mineig"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class Output
43  {
44  GEOMETRY = 0,
45  VOLUME
46  };
47 
49  getToken(Output enum_value)
50  {
51  using namespace UT::Literal;
52  switch (enum_value) {
53  case Output::GEOMETRY: return "geometry"_sh;
54  case Output::VOLUME: return "volume"_sh;
55  default: UT_ASSERT(false); return ""_sh;
56  }
57  }
58 
59 }
60 
61 
63 {
64 public:
65  static int version() { return 1; }
66 
68  {
69  myGroup = ""_UTsh;
70  myMaximumFeatureSize = 200;
71  myMinimumSpacing = 32;
72  myQualityTolerance = .01;
73  myBlurringWindowRadius = 10;
74  myGradientWindowRadius = 1;
75  myMethod = 0;
76  myCornerWeight = .04;
77  myOutput = 0;
78  myOutputName = "features"_UTsh;
79 
80  }
81 
82  explicit SOP_TextureFeatureParms(const SOP_TextureFeatureParms &) = default;
84  SOP_TextureFeatureParms(SOP_TextureFeatureParms &&) noexcept = default;
85  SOP_TextureFeatureParms &operator=(SOP_TextureFeatureParms &&) noexcept = default;
86 
87  ~SOP_TextureFeatureParms() override {}
88 
90  {
91  if (myGroup != src.myGroup) return false;
92  if (myMaximumFeatureSize != src.myMaximumFeatureSize) return false;
93  if (myMinimumSpacing != src.myMinimumSpacing) return false;
94  if (myQualityTolerance != src.myQualityTolerance) return false;
95  if (myBlurringWindowRadius != src.myBlurringWindowRadius) return false;
96  if (myGradientWindowRadius != src.myGradientWindowRadius) return false;
97  if (myMethod != src.myMethod) return false;
98  if (myCornerWeight != src.myCornerWeight) return false;
99  if (myOutput != src.myOutput) return false;
100  if (myOutputName != src.myOutputName) return false;
101 
102  return true;
103  }
105  {
106  return !operator==(src);
107  }
110 
111 
112 
113  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
114  {
115  myGroup = ""_UTsh;
116  if (true)
117  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
118  myMaximumFeatureSize = 200;
119  if (true)
120  graph->evalOpParm(myMaximumFeatureSize, nodeidx, "maxfeaturesize", time, 0);
121  myMinimumSpacing = 32;
122  if (true)
123  graph->evalOpParm(myMinimumSpacing, nodeidx, "minimumspacing", time, 0);
124  myQualityTolerance = .01;
125  if (true)
126  graph->evalOpParm(myQualityTolerance, nodeidx, "qualitytolerance", time, 0);
127  myBlurringWindowRadius = 10;
128  if (true)
129  graph->evalOpParm(myBlurringWindowRadius, nodeidx, "blurringwindowradius", time, 0);
130  myGradientWindowRadius = 1;
131  if (true)
132  graph->evalOpParm(myGradientWindowRadius, nodeidx, "gradientwindowradius", time, 0);
133  myMethod = 0;
134  if (true)
135  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
136  myCornerWeight = .04;
137  if (true && ( (true&&!(((int64(getMethod())!=0)))) ) )
138  graph->evalOpParm(myCornerWeight, nodeidx, "cornerweight", time, 0);
139  myOutput = 0;
140  if (true)
141  graph->evalOpParm(myOutput, nodeidx, "output", time, 0);
142  myOutputName = "features"_UTsh;
143  if (true && ( (true&&!(((int64(getOutput())!=1)))) ) )
144  graph->evalOpParm(myOutputName, nodeidx, "outputname", time, 0);
145 
146  }
147 
148 
149  void loadFromOpSubclass(const LoadParms &loadparms) override
150  {
151  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
152  }
153 
154 
155  void copyFrom(const OP_NodeParms *src) override
156  {
157  *this = *((const SOP_TextureFeatureParms *)src);
158  }
159 
160  template <typename T>
161  void
162  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
163  {
164  if (idx.size() < 1)
165  return;
166  UT_ASSERT(idx.size() == instance.size()+1);
167  if (idx.size() != instance.size()+1)
168  return;
169  switch (idx[0])
170  {
171  case 0:
172  coerceValue(value, myGroup);
173  break;
174  case 1:
175  coerceValue(value, myMaximumFeatureSize);
176  break;
177  case 2:
178  coerceValue(value, myMinimumSpacing);
179  break;
180  case 3:
181  coerceValue(value, myQualityTolerance);
182  break;
183  case 4:
184  coerceValue(value, myBlurringWindowRadius);
185  break;
186  case 5:
187  coerceValue(value, myGradientWindowRadius);
188  break;
189  case 6:
190  coerceValue(value, myMethod);
191  break;
192  case 7:
193  coerceValue(value, myCornerWeight);
194  break;
195  case 8:
196  coerceValue(value, myOutput);
197  break;
198  case 9:
199  coerceValue(value, myOutputName);
200  break;
201 
202  }
203  }
204 
205  bool isParmColorRamp(exint idx) const override
206  {
207  switch (idx)
208  {
209 
210  }
211  return false;
212  }
213 
214  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
235  { doGetParmValue(idx, instance, value); }
236 
237  template <typename T>
238  void
239  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
240  {
241  if (idx.size() < 1)
242  return;
243  UT_ASSERT(idx.size() == instance.size()+1);
244  if (idx.size() != instance.size()+1)
245  return;
246  switch (idx[0])
247  {
248  case 0:
249  coerceValue(myGroup, ( ( value ) ));
250  break;
251  case 1:
252  coerceValue(myMaximumFeatureSize, clampMinValue(0, ( value ) ));
253  break;
254  case 2:
255  coerceValue(myMinimumSpacing, clampMinValue(0, ( value ) ));
256  break;
257  case 3:
258  coerceValue(myQualityTolerance, ( clampMaxValue(-12, value ) ));
259  break;
260  case 4:
261  coerceValue(myBlurringWindowRadius, clampMinValue(1, ( value ) ));
262  break;
263  case 5:
264  coerceValue(myGradientWindowRadius, clampMinValue(0, clampMaxValue(15, value ) ));
265  break;
266  case 6:
267  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
268  break;
269  case 7:
270  coerceValue(myCornerWeight, clampMinValue(0, clampMaxValue(1., value ) ));
271  break;
272  case 8:
273  coerceValue(myOutput, clampMinValue(0, clampMaxValue(1, value ) ));
274  break;
275  case 9:
276  coerceValue(myOutputName, ( ( value ) ));
277  break;
278 
279  }
280  }
281 
282  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
303  { doSetParmValue(idx, instance, value); }
304 
305  exint getNestNumParms(TempIndex idx) const override
306  {
307  if (idx.size() == 0)
308  return 10;
309  switch (idx[0])
310  {
311 
312  }
313  // Invalid
314  return 0;
315  }
316 
317  const char *getNestParmName(TempIndex fieldnum) const override
318  {
319  if (fieldnum.size() < 1)
320  return 0;
321  switch (fieldnum[0])
322  {
323  case 0:
324  return "group";
325  case 1:
326  return "maxfeaturesize";
327  case 2:
328  return "minimumspacing";
329  case 3:
330  return "qualitytolerance";
331  case 4:
332  return "blurringwindowradius";
333  case 5:
334  return "gradientwindowradius";
335  case 6:
336  return "method";
337  case 7:
338  return "cornerweight";
339  case 8:
340  return "output";
341  case 9:
342  return "outputname";
343 
344  }
345  return 0;
346  }
347 
348  ParmType getNestParmType(TempIndex fieldnum) const override
349  {
350  if (fieldnum.size() < 1)
351  return PARM_UNSUPPORTED;
352  switch (fieldnum[0])
353  {
354  case 0:
355  return PARM_STRING;
356  case 1:
357  return PARM_INTEGER;
358  case 2:
359  return PARM_INTEGER;
360  case 3:
361  return PARM_FLOAT;
362  case 4:
363  return PARM_INTEGER;
364  case 5:
365  return PARM_INTEGER;
366  case 6:
367  return PARM_INTEGER;
368  case 7:
369  return PARM_FLOAT;
370  case 8:
371  return PARM_INTEGER;
372  case 9:
373  return PARM_STRING;
374 
375  }
376  return PARM_UNSUPPORTED;
377  }
378 
379  // Boiler plate to load individual types.
380  static void loadData(UT_IStream &is, int64 &v)
381  { is.bread(&v, 1); }
382  static void loadData(UT_IStream &is, bool &v)
383  { int64 iv; is.bread(&iv, 1); v = iv; }
384  static void loadData(UT_IStream &is, fpreal64 &v)
385  { is.bread<fpreal64>(&v, 1); }
386  static void loadData(UT_IStream &is, UT_Vector2D &v)
387  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector3D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); }
391  static void loadData(UT_IStream &is, UT_Vector4D &v)
392  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
393  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
394  static void loadData(UT_IStream &is, UT_Matrix2D &v)
395  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
396  static void loadData(UT_IStream &is, UT_Matrix3D &v)
397  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
398  static void loadData(UT_IStream &is, UT_Matrix4D &v)
399  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
400  static void loadData(UT_IStream &is, UT_Vector2I &v)
401  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector3I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); }
405  static void loadData(UT_IStream &is, UT_Vector4I &v)
406  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
407  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
409  { is.bread(v); }
411  { UT_StringHolder rampdata;
412  loadData(is, rampdata);
413  if (rampdata.isstring())
414  {
415  v.reset(new UT_Ramp());
416  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
417  v->load(istr);
418  }
419  else v.reset();
420  }
423  loadData(is, data);
424  if (data.isstring())
425  {
426  // Find the data type.
427  const char *colon = UT_StringWrap(data).findChar(':');
428  if (colon)
429  {
430  int typelen = colon - data.buffer();
432  type.strncpy(data.buffer(), typelen);
433  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
434 
435  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
436  }
437  }
438  else v.reset();
439  }
440 
441  static void saveData(std::ostream &os, int64 v)
442  { UTwrite(os, &v); }
443  static void saveData(std::ostream &os, bool v)
444  { int64 iv = v; UTwrite(os, &iv); }
445  static void saveData(std::ostream &os, fpreal64 v)
446  { UTwrite<fpreal64>(os, &v); }
447  static void saveData(std::ostream &os, UT_Vector2D v)
448  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
449  static void saveData(std::ostream &os, UT_Vector3D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); }
452  static void saveData(std::ostream &os, UT_Vector4D v)
453  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
454  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
455  static void saveData(std::ostream &os, UT_Matrix2D v)
457  static void saveData(std::ostream &os, UT_Matrix3D v)
459  static void saveData(std::ostream &os, UT_Matrix4D v)
461  static void saveData(std::ostream &os, UT_StringHolder s)
462  { UT_StringWrap(s).saveBinary(os); }
463  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
465  UT_OStringStream ostr;
466  if (s) s->save(ostr);
467  result = ostr.str();
468  saveData(os, result);
469  }
470  static void saveData(std::ostream &os, PRM_DataItemHandle s)
472  UT_OStringStream ostr;
473  if (s)
474  {
475  ostr << s->getDataTypeToken();
476  ostr << ":";
477  s->saveBinary(ostr);
478  }
479  result = ostr.str();
480  saveData(os, result);
481  }
482 
483 
484  void save(std::ostream &os) const
485  {
486  int32 v = version();
487  UTwrite(os, &v);
488  saveData(os, myGroup);
489  saveData(os, myMaximumFeatureSize);
490  saveData(os, myMinimumSpacing);
491  saveData(os, myQualityTolerance);
492  saveData(os, myBlurringWindowRadius);
493  saveData(os, myGradientWindowRadius);
494  saveData(os, myMethod);
495  saveData(os, myCornerWeight);
496  saveData(os, myOutput);
497  saveData(os, myOutputName);
498 
499  }
500 
501  bool load(UT_IStream &is)
502  {
503  int32 v;
504  is.bread(&v, 1);
505  if (version() != v)
506  {
507  // Fail incompatible versions
508  return false;
509  }
510  loadData(is, myGroup);
511  loadData(is, myMaximumFeatureSize);
512  loadData(is, myMinimumSpacing);
513  loadData(is, myQualityTolerance);
514  loadData(is, myBlurringWindowRadius);
515  loadData(is, myGradientWindowRadius);
516  loadData(is, myMethod);
517  loadData(is, myCornerWeight);
518  loadData(is, myOutput);
519  loadData(is, myOutputName);
520 
521  return true;
522  }
523 
524  const UT_StringHolder & getGroup() const { return myGroup; }
525  void setGroup(const UT_StringHolder & val) { myGroup = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getGroup();
531  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
532  return result;
533  }
534  int64 getMaximumFeatureSize() const { return myMaximumFeatureSize; }
535  void setMaximumFeatureSize(int64 val) { myMaximumFeatureSize = val; }
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getMaximumFeatureSize();
540  int64 result;
541  OP_Utils::evalOpParm(result, thissop, "maxfeaturesize", cookparms.getCookTime(), 0);
542  return result;
543  }
544  int64 getMinimumSpacing() const { return myMinimumSpacing; }
545  void setMinimumSpacing(int64 val) { myMinimumSpacing = val; }
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getMinimumSpacing();
550  int64 result;
551  OP_Utils::evalOpParm(result, thissop, "minimumspacing", cookparms.getCookTime(), 0);
552  return result;
553  }
554  fpreal64 getQualityTolerance() const { return myQualityTolerance; }
555  void setQualityTolerance(fpreal64 val) { myQualityTolerance = val; }
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getQualityTolerance();
561  OP_Utils::evalOpParm(result, thissop, "qualitytolerance", cookparms.getCookTime(), 0);
562  return result;
563  }
564  int64 getBlurringWindowRadius() const { return myBlurringWindowRadius; }
565  void setBlurringWindowRadius(int64 val) { myBlurringWindowRadius = val; }
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getBlurringWindowRadius();
570  int64 result;
571  OP_Utils::evalOpParm(result, thissop, "blurringwindowradius", cookparms.getCookTime(), 0);
572  return result;
573  }
574  int64 getGradientWindowRadius() const { return myGradientWindowRadius; }
575  void setGradientWindowRadius(int64 val) { myGradientWindowRadius = val; }
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getGradientWindowRadius();
580  int64 result;
581  OP_Utils::evalOpParm(result, thissop, "gradientwindowradius", cookparms.getCookTime(), 0);
582  return result;
583  }
584  Method getMethod() const { return Method(myMethod); }
585  void setMethod(Method val) { myMethod = int64(val); }
586  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getMethod();
590  int64 result;
591  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
592  return Method(result);
593  }
594  fpreal64 getCornerWeight() const { return myCornerWeight; }
595  void setCornerWeight(fpreal64 val) { myCornerWeight = val; }
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getCornerWeight();
601  OP_Utils::evalOpParm(result, thissop, "cornerweight", cookparms.getCookTime(), 0);
602  return result;
603  }
604  Output getOutput() const { return Output(myOutput); }
605  void setOutput(Output val) { myOutput = int64(val); }
606  Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
607  {
608  SOP_Node *thissop = cookparms.getNode();
609  if (!thissop) return getOutput();
610  int64 result;
611  OP_Utils::evalOpParm(result, thissop, "output", cookparms.getCookTime(), 0);
612  return Output(result);
613  }
614  const UT_StringHolder & getOutputName() const { return myOutputName; }
615  void setOutputName(const UT_StringHolder & val) { myOutputName = val; }
617  {
618  SOP_Node *thissop = cookparms.getNode();
619  if (!thissop) return getOutputName();
621  OP_Utils::evalOpParm(result, thissop, "outputname", cookparms.getCookTime(), 0);
622  return result;
623  }
624 
625 private:
626  UT_StringHolder myGroup;
627  int64 myMaximumFeatureSize;
628  int64 myMinimumSpacing;
629  fpreal64 myQualityTolerance;
630  int64 myBlurringWindowRadius;
631  int64 myGradientWindowRadius;
632  int64 myMethod;
633  fpreal64 myCornerWeight;
634  int64 myOutput;
635  UT_StringHolder myOutputName;
636 
637 };
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool operator==(const SOP_TextureFeatureParms &src) const
bool isParmColorRamp(exint idx) const override
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
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
fpreal64 opCornerWeight(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
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
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_StringHolder &v)
int64 opMaximumFeatureSize(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void copyFrom(const OP_NodeParms *src) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
SYS_FORCE_INLINE const char * buffer() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLdouble s
Definition: glad.h:3009
static void saveData(std::ostream &os, UT_Vector2D v)
An output stream object that owns its own string buffer storage.
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
**But if you need a result
Definition: thread.h:613
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.
UT_StringHolder opOutputName(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
double fpreal64
Definition: SYS_Types.h:201
void setOutputName(const UT_StringHolder &val)
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
int64 opGradientWindowRadius(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void save(std::ostream &os) const
exint length() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, 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
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int64 opBlurringWindowRadius(const SOP_NodeVerb::CookParms &cookparms) const
void loadFromOpSubclass(const LoadParms &loadparms) override
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, PRM_DataItemHandle 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 UT_Matrix2D &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
fpreal64 opQualityTolerance(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, fpreal64 v)
const UT_StringHolder & getOutputName() const
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, int64 v)
void setQualityTolerance(fpreal64 val)
fpreal64 fpreal
Definition: SYS_Types.h:277
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:92
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
int64 opMinimumSpacing(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
bool operator!=(const SOP_TextureFeatureParms &src) const
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_Vector4I &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
type
Definition: core.h:1059
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override