HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PCA.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_PCAEnums
24 {
25  enum class DataType
26  {
27  POINT = 0,
28  VOLUME
29  };
30  enum class Mode
31  {
32  ANALYSE = 0,
33  SCREE,
34  PROJECT,
36  };
37 }
38 
39 
41 {
42 public:
43  static int version() { return 1; }
44 
46  {
47  myDataType = 0;
48  myAttribs = "P"_UTsh;
49  myStride = 1024;
50  myMode = 0;
51  myIncludeMeanWeight = true;
52  mySkip = 0;
53  myComp = 10;
54  myXscale = 0.1;
55  myYscale = 1;
56  myPropcolor = UT_Vector3D(1,1,0);
57  myCumcolor = UT_Vector3D(0,1,1);
58 
59  }
60 
61  explicit SOP_PCAParms(const SOP_PCAParms &) = default;
62  SOP_PCAParms &operator=(const SOP_PCAParms &) = default;
63  SOP_PCAParms(SOP_PCAParms &&) noexcept = default;
64  SOP_PCAParms &operator=(SOP_PCAParms &&) noexcept = default;
65 
66  ~SOP_PCAParms() override {}
67 
68  bool operator==(const SOP_PCAParms &src) const
69  {
70  if (myDataType != src.myDataType) return false;
71  if (myAttribs != src.myAttribs) return false;
72  if (myStride != src.myStride) return false;
73  if (myMode != src.myMode) return false;
74  if (myIncludeMeanWeight != src.myIncludeMeanWeight) return false;
75  if (mySkip != src.mySkip) return false;
76  if (myComp != src.myComp) return false;
77  if (myXscale != src.myXscale) return false;
78  if (myYscale != src.myYscale) return false;
79  if (myPropcolor != src.myPropcolor) return false;
80  if (myCumcolor != src.myCumcolor) return false;
81 
82  return true;
83  }
84  bool operator!=(const SOP_PCAParms &src) const
85  {
86  return !operator==(src);
87  }
90 
91 
92 
93  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
94  {
95  myDataType = 0;
96  if (true)
97  graph->evalOpParm(myDataType, nodeidx, "datatype", time, 0);
98  myAttribs = "P"_UTsh;
99  if (true && ( (true&&!(((int64(getDataType())!=0)))) ) )
100  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
101  myStride = 1024;
102  if (true && ( (true&&!(((int64(getDataType())!=0)))) ) )
103  graph->evalOpParm(myStride, nodeidx, "stride", time, 0);
104  myMode = 0;
105  if (true)
106  graph->evalOpParm(myMode, nodeidx, "mode", time, 0);
107  myIncludeMeanWeight = true;
108  if (true && ( (true&&!(((int64(getMode())==0))||((int64(getMode())==1)))) ) )
109  graph->evalOpParm(myIncludeMeanWeight, nodeidx, "includemeanweight", time, 0);
110  mySkip = 0;
111  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
112  graph->evalOpParm(mySkip, nodeidx, "skip", time, 0);
113  myComp = 10;
114  if (true && ( (true&&!(((int64(getMode())!=0)&&(int64(getMode())!=1)))) ) )
115  graph->evalOpParm(myComp, nodeidx, "comp", time, 0);
116  myXscale = 0.1;
117  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
118  graph->evalOpParm(myXscale, nodeidx, "xscale", time, 0);
119  myYscale = 1;
120  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
121  graph->evalOpParm(myYscale, nodeidx, "yscale", time, 0);
122  myPropcolor = UT_Vector3D(1,1,0);
123  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
124  graph->evalOpParm(myPropcolor, nodeidx, "propcolor", time, 0);
125  myCumcolor = UT_Vector3D(0,1,1);
126  if (true && ( (true&&!(((int64(getMode())!=1)))) ) )
127  graph->evalOpParm(myCumcolor, nodeidx, "cumcolor", time, 0);
128 
129  }
130 
131 
132  void loadFromOpSubclass(const LoadParms &loadparms) override
133  {
134  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
135  }
136 
137 
138  void copyFrom(const OP_NodeParms *src) override
139  {
140  *this = *((const SOP_PCAParms *)src);
141  }
142 
143  template <typename T>
144  void
145  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
146  {
147  if (idx.size() < 1)
148  return;
149  UT_ASSERT(idx.size() == instance.size()+1);
150  if (idx.size() != instance.size()+1)
151  return;
152  switch (idx[0])
153  {
154  case 0:
155  coerceValue(value, myDataType);
156  break;
157  case 1:
158  coerceValue(value, myAttribs);
159  break;
160  case 2:
161  coerceValue(value, myStride);
162  break;
163  case 3:
164  coerceValue(value, myMode);
165  break;
166  case 4:
167  coerceValue(value, myIncludeMeanWeight);
168  break;
169  case 5:
170  coerceValue(value, mySkip);
171  break;
172  case 6:
173  coerceValue(value, myComp);
174  break;
175  case 7:
176  coerceValue(value, myXscale);
177  break;
178  case 8:
179  coerceValue(value, myYscale);
180  break;
181  case 9:
182  coerceValue(value, myPropcolor);
183  break;
184  case 10:
185  coerceValue(value, myCumcolor);
186  break;
187 
188  }
189  }
190 
191  bool isParmColorRamp(exint idx) const override
192  {
193  switch (idx)
194  {
195 
196  }
197  return false;
198  }
199 
200  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
221  { doGetParmValue(idx, instance, value); }
222 
223  template <typename T>
224  void
225  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
226  {
227  if (idx.size() < 1)
228  return;
229  UT_ASSERT(idx.size() == instance.size()+1);
230  if (idx.size() != instance.size()+1)
231  return;
232  switch (idx[0])
233  {
234  case 0:
235  coerceValue(myDataType, clampMinValue(0, clampMaxValue(1, value ) ));
236  break;
237  case 1:
238  coerceValue(myAttribs, ( ( value ) ));
239  break;
240  case 2:
241  coerceValue(myStride, clampMinValue(1, ( value ) ));
242  break;
243  case 3:
244  coerceValue(myMode, clampMinValue(0, clampMaxValue(3, value ) ));
245  break;
246  case 4:
247  coerceValue(myIncludeMeanWeight, ( ( value ) ));
248  break;
249  case 5:
250  coerceValue(mySkip, clampMinValue(0, ( value ) ));
251  break;
252  case 6:
253  coerceValue(myComp, clampMinValue(0, ( value ) ));
254  break;
255  case 7:
256  coerceValue(myXscale, clampMinValue(0, ( value ) ));
257  break;
258  case 8:
259  coerceValue(myYscale, clampMinValue(0, ( value ) ));
260  break;
261  case 9:
262  coerceValue(myPropcolor, ( ( value ) ));
263  break;
264  case 10:
265  coerceValue(myCumcolor, ( ( value ) ));
266  break;
267 
268  }
269  }
270 
271  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
292  { doSetParmValue(idx, instance, value); }
293 
294  exint getNestNumParms(TempIndex idx) const override
295  {
296  if (idx.size() == 0)
297  return 11;
298  switch (idx[0])
299  {
300 
301  }
302  // Invalid
303  return 0;
304  }
305 
306  const char *getNestParmName(TempIndex fieldnum) const override
307  {
308  if (fieldnum.size() < 1)
309  return 0;
310  switch (fieldnum[0])
311  {
312  case 0:
313  return "datatype";
314  case 1:
315  return "attribs";
316  case 2:
317  return "stride";
318  case 3:
319  return "mode";
320  case 4:
321  return "includemeanweight";
322  case 5:
323  return "skip";
324  case 6:
325  return "comp";
326  case 7:
327  return "xscale";
328  case 8:
329  return "yscale";
330  case 9:
331  return "propcolor";
332  case 10:
333  return "cumcolor";
334 
335  }
336  return 0;
337  }
338 
339  ParmType getNestParmType(TempIndex fieldnum) const override
340  {
341  if (fieldnum.size() < 1)
342  return PARM_UNSUPPORTED;
343  switch (fieldnum[0])
344  {
345  case 0:
346  return PARM_INTEGER;
347  case 1:
348  return PARM_STRING;
349  case 2:
350  return PARM_INTEGER;
351  case 3:
352  return PARM_INTEGER;
353  case 4:
354  return PARM_INTEGER;
355  case 5:
356  return PARM_INTEGER;
357  case 6:
358  return PARM_INTEGER;
359  case 7:
360  return PARM_FLOAT;
361  case 8:
362  return PARM_FLOAT;
363  case 9:
364  return PARM_VECTOR3;
365  case 10:
366  return PARM_VECTOR3;
367 
368  }
369  return PARM_UNSUPPORTED;
370  }
371 
372  // Boiler plate to load individual types.
373  static void loadData(UT_IStream &is, int64 &v)
374  { is.bread(&v, 1); }
375  static void loadData(UT_IStream &is, bool &v)
376  { int64 iv; is.bread(&iv, 1); v = iv; }
377  static void loadData(UT_IStream &is, fpreal64 &v)
378  { is.bread<fpreal64>(&v, 1); }
379  static void loadData(UT_IStream &is, UT_Vector2D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
381  static void loadData(UT_IStream &is, UT_Vector3D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
383  is.bread<fpreal64>(&v.z(), 1); }
384  static void loadData(UT_IStream &is, UT_Vector4D &v)
385  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
386  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix2D &v)
388  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix3D &v)
390  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix4D &v)
392  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Vector2I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector3I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
397  is.bread<int64>(&v.z(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector4I &v)
399  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
400  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
402  { is.bread(v); }
404  { UT_StringHolder rampdata;
405  loadData(is, rampdata);
406  if (rampdata.isstring())
407  {
408  v.reset(new UT_Ramp());
409  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
410  v->load(istr);
411  }
412  else v.reset();
413  }
416  loadData(is, data);
417  if (data.isstring())
418  {
419  // Find the data type.
420  const char *colon = UT_StringWrap(data).findChar(':');
421  if (colon)
422  {
423  int typelen = colon - data.buffer();
425  type.strncpy(data.buffer(), typelen);
426  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
427 
428  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
429  }
430  }
431  else v.reset();
432  }
433 
434  static void saveData(std::ostream &os, int64 v)
435  { UTwrite(os, &v); }
436  static void saveData(std::ostream &os, bool v)
437  { int64 iv = v; UTwrite(os, &iv); }
438  static void saveData(std::ostream &os, fpreal64 v)
439  { UTwrite<fpreal64>(os, &v); }
440  static void saveData(std::ostream &os, UT_Vector2D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
442  static void saveData(std::ostream &os, UT_Vector3D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
444  UTwrite<fpreal64>(os, &v.z()); }
445  static void saveData(std::ostream &os, UT_Vector4D v)
446  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
447  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
448  static void saveData(std::ostream &os, UT_Matrix2D v)
450  static void saveData(std::ostream &os, UT_Matrix3D v)
452  static void saveData(std::ostream &os, UT_Matrix4D v)
454  static void saveData(std::ostream &os, UT_StringHolder s)
455  { UT_StringWrap(s).saveBinary(os); }
456  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
458  UT_OStringStream ostr;
459  if (s) s->save(ostr);
460  result = ostr.str();
461  saveData(os, result);
462  }
463  static void saveData(std::ostream &os, PRM_DataItemHandle s)
465  UT_OStringStream ostr;
466  if (s)
467  {
468  ostr << s->getDataTypeToken();
469  ostr << ":";
470  s->saveBinary(ostr);
471  }
472  result = ostr.str();
473  saveData(os, result);
474  }
475 
476 
477  void save(std::ostream &os) const
478  {
479  int32 v = version();
480  UTwrite(os, &v);
481  saveData(os, myDataType);
482  saveData(os, myAttribs);
483  saveData(os, myStride);
484  saveData(os, myMode);
485  saveData(os, myIncludeMeanWeight);
486  saveData(os, mySkip);
487  saveData(os, myComp);
488  saveData(os, myXscale);
489  saveData(os, myYscale);
490  saveData(os, myPropcolor);
491  saveData(os, myCumcolor);
492 
493  }
494 
495  bool load(UT_IStream &is)
496  {
497  int32 v;
498  is.bread(&v, 1);
499  if (version() != v)
500  {
501  // Fail incompatible versions
502  return false;
503  }
504  loadData(is, myDataType);
505  loadData(is, myAttribs);
506  loadData(is, myStride);
507  loadData(is, myMode);
508  loadData(is, myIncludeMeanWeight);
509  loadData(is, mySkip);
510  loadData(is, myComp);
511  loadData(is, myXscale);
512  loadData(is, myYscale);
513  loadData(is, myPropcolor);
514  loadData(is, myCumcolor);
515 
516  return true;
517  }
518 
519  DataType getDataType() const { return DataType(myDataType); }
520  void setDataType(DataType val) { myDataType = int64(val); }
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getDataType();
525  int64 result;
526  OP_Utils::evalOpParm(result, thissop, "datatype", cookparms.getCookTime(), 0);
527  return DataType(result);
528  }
529  const UT_StringHolder & getAttribs() const { return myAttribs; }
530  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return getAttribs();
536  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
537  return result;
538  }
539  int64 getStride() const { return myStride; }
540  void setStride(int64 val) { myStride = val; }
541  int64 opStride(const SOP_NodeVerb::CookParms &cookparms) const
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return getStride();
545  int64 result;
546  OP_Utils::evalOpParm(result, thissop, "stride", cookparms.getCookTime(), 0);
547  return result;
548  }
549  Mode getMode() const { return Mode(myMode); }
550  void setMode(Mode val) { myMode = int64(val); }
551  Mode opMode(const SOP_NodeVerb::CookParms &cookparms) const
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getMode();
555  int64 result;
556  OP_Utils::evalOpParm(result, thissop, "mode", cookparms.getCookTime(), 0);
557  return Mode(result);
558  }
559  bool getIncludeMeanWeight() const { return myIncludeMeanWeight; }
560  void setIncludeMeanWeight(bool val) { myIncludeMeanWeight = val; }
561  bool opIncludeMeanWeight(const SOP_NodeVerb::CookParms &cookparms) const
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getIncludeMeanWeight();
565  bool result;
566  OP_Utils::evalOpParm(result, thissop, "includemeanweight", cookparms.getCookTime(), 0);
567  return result;
568  }
569  int64 getSkip() const { return mySkip; }
570  void setSkip(int64 val) { mySkip = val; }
571  int64 opSkip(const SOP_NodeVerb::CookParms &cookparms) const
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getSkip();
575  int64 result;
576  OP_Utils::evalOpParm(result, thissop, "skip", cookparms.getCookTime(), 0);
577  return result;
578  }
579  int64 getComp() const { return myComp; }
580  void setComp(int64 val) { myComp = val; }
581  int64 opComp(const SOP_NodeVerb::CookParms &cookparms) const
582  {
583  SOP_Node *thissop = cookparms.getNode();
584  if (!thissop) return getComp();
585  int64 result;
586  OP_Utils::evalOpParm(result, thissop, "comp", cookparms.getCookTime(), 0);
587  return result;
588  }
589  fpreal64 getXscale() const { return myXscale; }
590  void setXscale(fpreal64 val) { myXscale = val; }
591  fpreal64 opXscale(const SOP_NodeVerb::CookParms &cookparms) const
592  {
593  SOP_Node *thissop = cookparms.getNode();
594  if (!thissop) return getXscale();
596  OP_Utils::evalOpParm(result, thissop, "xscale", cookparms.getCookTime(), 0);
597  return result;
598  }
599  fpreal64 getYscale() const { return myYscale; }
600  void setYscale(fpreal64 val) { myYscale = val; }
601  fpreal64 opYscale(const SOP_NodeVerb::CookParms &cookparms) const
602  {
603  SOP_Node *thissop = cookparms.getNode();
604  if (!thissop) return getYscale();
606  OP_Utils::evalOpParm(result, thissop, "yscale", cookparms.getCookTime(), 0);
607  return result;
608  }
609  UT_Vector3D getPropcolor() const { return myPropcolor; }
610  void setPropcolor(UT_Vector3D val) { myPropcolor = val; }
612  {
613  SOP_Node *thissop = cookparms.getNode();
614  if (!thissop) return getPropcolor();
616  OP_Utils::evalOpParm(result, thissop, "propcolor", cookparms.getCookTime(), 0);
617  return result;
618  }
619  UT_Vector3D getCumcolor() const { return myCumcolor; }
620  void setCumcolor(UT_Vector3D val) { myCumcolor = val; }
622  {
623  SOP_Node *thissop = cookparms.getNode();
624  if (!thissop) return getCumcolor();
626  OP_Utils::evalOpParm(result, thissop, "cumcolor", cookparms.getCookTime(), 0);
627  return result;
628  }
629 
630 private:
631  int64 myDataType;
632  UT_StringHolder myAttribs;
633  int64 myStride;
634  int64 myMode;
635  bool myIncludeMeanWeight;
636  int64 mySkip;
637  int64 myComp;
638  fpreal64 myXscale;
639  fpreal64 myYscale;
640  UT_Vector3D myPropcolor;
641  UT_Vector3D myCumcolor;
642 
643 };
static void loadData(UT_IStream &is, UT_Vector2D &v)
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
void setMode(Mode val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
const char * getNestParmName(TempIndex fieldnum) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
int64 getStride() const
static void saveData(std::ostream &os, UT_Vector3D v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool operator!=(const SOP_PCAParms &src) const
Definition: SOP_PCA.proto.h:84
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
DataType getDataType() const
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, bool &v)
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
UT_Vector3D getCumcolor() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
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
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
void setDataType(DataType val)
An output stream object that owns its own string buffer storage.
bool operator==(const SOP_PCAParms &src) const
Definition: SOP_PCA.proto.h:68
**But if you need a result
Definition: thread.h:613
int64 getComp() const
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_StringHolder & getAttribs() const
bool load(UT_IStream &is)
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.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setPropcolor(UT_Vector3D val)
void save(std::ostream &os) const
DataType opDataType(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
double fpreal64
Definition: SYS_Types.h:201
bool opIncludeMeanWeight(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
int64 getSkip() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
bool isParmColorRamp(exint idx) const override
UT_Vector3D getPropcolor() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
UT_Vector3D opPropcolor(const SOP_NodeVerb::CookParms &cookparms) const
int64 opStride(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, UT_StringHolder s)
fpreal64 opXscale(const SOP_NodeVerb::CookParms &cookparms) const
void setStride(int64 val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
exint length() const
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
fpreal64 getYscale() const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
UT_StringHolder opAttribs(const SOP_NodeVerb::CookParms &cookparms) const
Mode opMode(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
long long int64
Definition: SYS_Types.h:116
UT_Vector3T< fpreal64 > UT_Vector3D
ParmType getNestParmType(TempIndex fieldnum) const override
int64 opComp(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setAttribs(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix4D v)
static int version()
Definition: SOP_PCA.proto.h:43
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, bool v)
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setYscale(fpreal64 val)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
fpreal64 opYscale(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
static void loadData(UT_IStream &is, UT_Vector4I &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setCumcolor(UT_Vector3D val)
int64 opSkip(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void setXscale(fpreal64 val)
fpreal64 getXscale() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setSkip(int64 val)
GLboolean r
Definition: glcorearb.h:1222
static void saveData(std::ostream &os, fpreal64 v)
bool getIncludeMeanWeight() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
Mode getMode() const
UT_Vector3D opCumcolor(const SOP_NodeVerb::CookParms &cookparms) const
void setIncludeMeanWeight(bool val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setComp(int64 val)
GLenum src
Definition: glcorearb.h:1793
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
Definition: SOP_PCA.proto.h:93
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663