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 <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_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 
103  if (baseGetSignature() != src.baseGetSignature()) return false;
104 
105  return true;
106  }
108  {
109  return !operator==(src);
110  }
113 
114 
115 
116  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
117  {
118  myGroup = ""_UTsh;
119  if (true)
120  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
121  myMaximumFeatureSize = 200;
122  if (true)
123  graph->evalOpParm(myMaximumFeatureSize, nodeidx, "maxfeaturesize", time, graph->isDirect()?nullptr:depnode);
124  myMinimumSpacing = 32;
125  if (true)
126  graph->evalOpParm(myMinimumSpacing, nodeidx, "minimumspacing", time, graph->isDirect()?nullptr:depnode);
127  myQualityTolerance = .01;
128  if (true)
129  graph->evalOpParm(myQualityTolerance, nodeidx, "qualitytolerance", time, graph->isDirect()?nullptr:depnode);
130  myBlurringWindowRadius = 10;
131  if (true)
132  graph->evalOpParm(myBlurringWindowRadius, nodeidx, "blurringwindowradius", time, graph->isDirect()?nullptr:depnode);
133  myGradientWindowRadius = 1;
134  if (true)
135  graph->evalOpParm(myGradientWindowRadius, nodeidx, "gradientwindowradius", time, graph->isDirect()?nullptr:depnode);
136  myMethod = 0;
137  if (true)
138  graph->evalOpParm(myMethod, nodeidx, "method", time, graph->isDirect()?nullptr:depnode);
139  myCornerWeight = .04;
140  if (true && ( (true&&!(((int64(getMethod())!=0)))) ) )
141  graph->evalOpParm(myCornerWeight, nodeidx, "cornerweight", time, graph->isDirect()?nullptr:depnode);
142  myOutput = 0;
143  if (true)
144  graph->evalOpParm(myOutput, nodeidx, "output", time, graph->isDirect()?nullptr:depnode);
145  myOutputName = "features"_UTsh;
146  if (true && ( (true&&!(((int64(getOutput())!=1)))) ) )
147  graph->evalOpParm(myOutputName, nodeidx, "outputname", time, graph->isDirect()?nullptr:depnode);
148 
149  }
150 
151 
152  void loadFromOpSubclass(const LoadParms &loadparms) override
153  {
154  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
155  }
156 
157 
158  void copyFrom(const OP_NodeParms *src) override
159  {
160  *this = *((const SOP_TextureFeatureParms *)src);
161  }
162 
163  template <typename T>
164  void
165  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
166  {
167  if (idx.size() < 1)
168  return;
169  UT_ASSERT(idx.size() == instance.size()+1);
170  if (idx.size() != instance.size()+1)
171  return;
172  switch (idx[0])
173  {
174  case 0:
175  coerceValue(value, myGroup);
176  break;
177  case 1:
178  coerceValue(value, myMaximumFeatureSize);
179  break;
180  case 2:
181  coerceValue(value, myMinimumSpacing);
182  break;
183  case 3:
184  coerceValue(value, myQualityTolerance);
185  break;
186  case 4:
187  coerceValue(value, myBlurringWindowRadius);
188  break;
189  case 5:
190  coerceValue(value, myGradientWindowRadius);
191  break;
192  case 6:
193  coerceValue(value, myMethod);
194  break;
195  case 7:
196  coerceValue(value, myCornerWeight);
197  break;
198  case 8:
199  coerceValue(value, myOutput);
200  break;
201  case 9:
202  coerceValue(value, myOutputName);
203  break;
204 
205  }
206  }
207 
208  bool isParmColorRamp(exint idx) const override
209  {
210  switch (idx)
211  {
212 
213  }
214  return false;
215  }
216 
217  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
228  { doGetParmValue(idx, instance, value); }
229  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
230  { doGetParmValue(idx, instance, value); }
231  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
232  { doGetParmValue(idx, instance, value); }
233  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
234  { doGetParmValue(idx, instance, value); }
235  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
236  { doGetParmValue(idx, instance, value); }
237  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
238  { doGetParmValue(idx, instance, value); }
239 
240  template <typename T>
241  void
242  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
243  {
244  if (idx.size() < 1)
245  return;
246  UT_ASSERT(idx.size() == instance.size()+1);
247  if (idx.size() != instance.size()+1)
248  return;
249  switch (idx[0])
250  {
251  case 0:
252  coerceValue(myGroup, ( ( value ) ));
253  break;
254  case 1:
255  coerceValue(myMaximumFeatureSize, clampMinValue(0, ( value ) ));
256  break;
257  case 2:
258  coerceValue(myMinimumSpacing, clampMinValue(0, ( value ) ));
259  break;
260  case 3:
261  coerceValue(myQualityTolerance, ( clampMaxValue(-12, value ) ));
262  break;
263  case 4:
264  coerceValue(myBlurringWindowRadius, clampMinValue(1, ( value ) ));
265  break;
266  case 5:
267  coerceValue(myGradientWindowRadius, clampMinValue(0, clampMaxValue(15, value ) ));
268  break;
269  case 6:
270  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
271  break;
272  case 7:
273  coerceValue(myCornerWeight, clampMinValue(0, clampMaxValue(1., value ) ));
274  break;
275  case 8:
276  coerceValue(myOutput, clampMinValue(0, clampMaxValue(1, value ) ));
277  break;
278  case 9:
279  coerceValue(myOutputName, ( ( value ) ));
280  break;
281 
282  }
283  }
284 
285  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
298  { doSetParmValue(idx, instance, value); }
299  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
300  { doSetParmValue(idx, instance, value); }
301  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
302  { doSetParmValue(idx, instance, value); }
303  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
304  { doSetParmValue(idx, instance, value); }
305  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
306  { doSetParmValue(idx, instance, value); }
307 
308  exint getNestNumParms(TempIndex idx) const override
309  {
310  if (idx.size() == 0)
311  return 10;
312  switch (idx[0])
313  {
314 
315  }
316  // Invalid
317  return 0;
318  }
319 
320  const char *getNestParmName(TempIndex fieldnum) const override
321  {
322  if (fieldnum.size() < 1)
323  return 0;
324  switch (fieldnum[0])
325  {
326  case 0:
327  return "group";
328  case 1:
329  return "maxfeaturesize";
330  case 2:
331  return "minimumspacing";
332  case 3:
333  return "qualitytolerance";
334  case 4:
335  return "blurringwindowradius";
336  case 5:
337  return "gradientwindowradius";
338  case 6:
339  return "method";
340  case 7:
341  return "cornerweight";
342  case 8:
343  return "output";
344  case 9:
345  return "outputname";
346 
347  }
348  return 0;
349  }
350 
351  ParmType getNestParmType(TempIndex fieldnum) const override
352  {
353  if (fieldnum.size() < 1)
354  return PARM_UNSUPPORTED;
355  switch (fieldnum[0])
356  {
357  case 0:
358  return PARM_STRING;
359  case 1:
360  return PARM_INTEGER;
361  case 2:
362  return PARM_INTEGER;
363  case 3:
364  return PARM_FLOAT;
365  case 4:
366  return PARM_INTEGER;
367  case 5:
368  return PARM_INTEGER;
369  case 6:
370  return PARM_INTEGER;
371  case 7:
372  return PARM_FLOAT;
373  case 8:
374  return PARM_INTEGER;
375  case 9:
376  return PARM_STRING;
377 
378  }
379  return PARM_UNSUPPORTED;
380  }
381 
382  // Boiler plate to load individual types.
383  static void loadData(UT_IStream &is, int64 &v)
384  { is.bread(&v, 1); }
385  static void loadData(UT_IStream &is, bool &v)
386  { int64 iv; is.bread(&iv, 1); v = iv; }
387  static void loadData(UT_IStream &is, fpreal64 &v)
388  { is.bread<fpreal64>(&v, 1); }
389  static void loadData(UT_IStream &is, UT_Vector2D &v)
390  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
391  static void loadData(UT_IStream &is, UT_Vector3D &v)
392  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
393  is.bread<fpreal64>(&v.z(), 1); }
394  static void loadData(UT_IStream &is, UT_Vector4D &v)
395  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
396  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
397  static void loadData(UT_IStream &is, UT_Matrix2D &v)
398  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
399  static void loadData(UT_IStream &is, UT_Matrix3D &v)
400  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
401  static void loadData(UT_IStream &is, UT_Matrix4D &v)
402  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
403  static void loadData(UT_IStream &is, UT_Vector2I &v)
404  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
405  static void loadData(UT_IStream &is, UT_Vector3I &v)
406  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
407  is.bread<int64>(&v.z(), 1); }
408  static void loadData(UT_IStream &is, UT_Vector4I &v)
409  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
410  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
412  { is.bread(v); }
414  { UT_StringHolder rampdata;
415  loadData(is, rampdata);
416  if (rampdata.isstring())
417  {
418  v.reset(new UT_Ramp());
419  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
420  v->load(istr);
421  }
422  else v.reset();
423  }
426  loadData(is, data);
427  if (data.isstring())
428  {
429  // Find the data type.
430  const char *colon = UT_StringWrap(data).findChar(':');
431  if (colon)
432  {
433  int typelen = colon - data.buffer();
435  type.strncpy(data.buffer(), typelen);
436  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
437 
438  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
439  }
440  }
441  else v.reset();
442  }
443 
444  static void saveData(std::ostream &os, int64 v)
445  { UTwrite(os, &v); }
446  static void saveData(std::ostream &os, bool v)
447  { int64 iv = v; UTwrite(os, &iv); }
448  static void saveData(std::ostream &os, fpreal64 v)
449  { UTwrite<fpreal64>(os, &v); }
450  static void saveData(std::ostream &os, UT_Vector2D v)
451  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
452  static void saveData(std::ostream &os, UT_Vector3D v)
453  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
454  UTwrite<fpreal64>(os, &v.z()); }
455  static void saveData(std::ostream &os, UT_Vector4D v)
456  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
457  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
458  static void saveData(std::ostream &os, UT_Matrix2D v)
460  static void saveData(std::ostream &os, UT_Matrix3D v)
462  static void saveData(std::ostream &os, UT_Matrix4D v)
464  static void saveData(std::ostream &os, UT_StringHolder s)
465  { UT_StringWrap(s).saveBinary(os); }
466  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
468  UT_OStringStream ostr;
469  if (s) s->save(ostr);
470  result = ostr.str();
471  saveData(os, result);
472  }
473  static void saveData(std::ostream &os, PRM_DataItemHandle s)
475  UT_OStringStream ostr;
476  if (s)
477  {
478  ostr << s->getDataTypeToken();
479  ostr << ":";
480  s->saveBinary(ostr);
481  }
482  result = ostr.str();
483  saveData(os, result);
484  }
485 
486 
487  void save(std::ostream &os) const
488  {
489  int32 v = version();
490  UTwrite(os, &v);
491  saveData(os, myGroup);
492  saveData(os, myMaximumFeatureSize);
493  saveData(os, myMinimumSpacing);
494  saveData(os, myQualityTolerance);
495  saveData(os, myBlurringWindowRadius);
496  saveData(os, myGradientWindowRadius);
497  saveData(os, myMethod);
498  saveData(os, myCornerWeight);
499  saveData(os, myOutput);
500  saveData(os, myOutputName);
501 
502  }
503 
504  bool load(UT_IStream &is)
505  {
506  int32 v;
507  is.bread(&v, 1);
508  if (version() != v)
509  {
510  // Fail incompatible versions
511  return false;
512  }
513  loadData(is, myGroup);
514  loadData(is, myMaximumFeatureSize);
515  loadData(is, myMinimumSpacing);
516  loadData(is, myQualityTolerance);
517  loadData(is, myBlurringWindowRadius);
518  loadData(is, myGradientWindowRadius);
519  loadData(is, myMethod);
520  loadData(is, myCornerWeight);
521  loadData(is, myOutput);
522  loadData(is, myOutputName);
523 
524  return true;
525  }
526 
527  const UT_StringHolder & getGroup() const { return myGroup; }
528  void setGroup(const UT_StringHolder & val) { myGroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getGroup();
534  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
535  return result;
536  }
537  int64 getMaximumFeatureSize() const { return myMaximumFeatureSize; }
538  void setMaximumFeatureSize(int64 val) { myMaximumFeatureSize = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getMaximumFeatureSize();
543  int64 result;
544  OP_Utils::evalOpParm(result, thissop, "maxfeaturesize", cookparms.getCookTime(), 0);
545  return result;
546  }
547  int64 getMinimumSpacing() const { return myMinimumSpacing; }
548  void setMinimumSpacing(int64 val) { myMinimumSpacing = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getMinimumSpacing();
553  int64 result;
554  OP_Utils::evalOpParm(result, thissop, "minimumspacing", cookparms.getCookTime(), 0);
555  return result;
556  }
557  fpreal64 getQualityTolerance() const { return myQualityTolerance; }
558  void setQualityTolerance(fpreal64 val) { myQualityTolerance = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getQualityTolerance();
564  OP_Utils::evalOpParm(result, thissop, "qualitytolerance", cookparms.getCookTime(), 0);
565  return result;
566  }
567  int64 getBlurringWindowRadius() const { return myBlurringWindowRadius; }
568  void setBlurringWindowRadius(int64 val) { myBlurringWindowRadius = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getBlurringWindowRadius();
573  int64 result;
574  OP_Utils::evalOpParm(result, thissop, "blurringwindowradius", cookparms.getCookTime(), 0);
575  return result;
576  }
577  int64 getGradientWindowRadius() const { return myGradientWindowRadius; }
578  void setGradientWindowRadius(int64 val) { myGradientWindowRadius = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getGradientWindowRadius();
583  int64 result;
584  OP_Utils::evalOpParm(result, thissop, "gradientwindowradius", cookparms.getCookTime(), 0);
585  return result;
586  }
587  Method getMethod() const { return Method(myMethod); }
588  void setMethod(Method val) { myMethod = int64(val); }
589  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getMethod();
593  int64 result;
594  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
595  return Method(result);
596  }
597  fpreal64 getCornerWeight() const { return myCornerWeight; }
598  void setCornerWeight(fpreal64 val) { myCornerWeight = val; }
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getCornerWeight();
604  OP_Utils::evalOpParm(result, thissop, "cornerweight", cookparms.getCookTime(), 0);
605  return result;
606  }
607  Output getOutput() const { return Output(myOutput); }
608  void setOutput(Output val) { myOutput = int64(val); }
609  Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getOutput();
613  int64 result;
614  OP_Utils::evalOpParm(result, thissop, "output", cookparms.getCookTime(), 0);
615  return Output(result);
616  }
617  const UT_StringHolder & getOutputName() const { return myOutputName; }
618  void setOutputName(const UT_StringHolder & val) { myOutputName = val; }
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getOutputName();
624  OP_Utils::evalOpParm(result, thissop, "outputname", cookparms.getCookTime(), 0);
625  return result;
626  }
627 
628 private:
629  UT_StringHolder myGroup;
630  int64 myMaximumFeatureSize;
631  int64 myMinimumSpacing;
632  fpreal64 myQualityTolerance;
633  int64 myBlurringWindowRadius;
634  int64 myGradientWindowRadius;
635  int64 myMethod;
636  fpreal64 myCornerWeight;
637  int64 myOutput;
638  UT_StringHolder myOutputName;
639 
640 };
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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)
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
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:303
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: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
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
int64 opMinimumSpacing(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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