HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Trace.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_TraceEnums
24 {
25  enum class Channel
26  {
27  MONO = 0,
28  RED,
29  GREEN,
30  BLUE,
31  ALPHA
32  };
33  enum class Boundary
34  {
35  BLACK = 0,
36  WHITE,
37  FIRST,
38  CUSTOM
39  };
40  enum class MissingFrame
41  {
42  ERROR = 0,
43  EMPTY
44  };
45 }
46 
47 
49 {
50 public:
51  static int version() { return 1; }
52 
54  {
55  myTraceLayer = ""_UTsh;
56  myT = UT_Vector3D(0,0,0);
57  myR = UT_Vector3D(0,0,0);
58  myS = UT_Vector2D(1,1);
59  myThresh = 0.5;
60  myAddtexture = false;
61  myChannel = 0;
62  myFile = "circle.pic"_UTsh;
63  myOverridesize = false;
64  myImagesize = UT_Vector2I(100,100);
65  myUsecop = 0;
66  myCoppath = ""_UTsh;
67  myCopframe = 0;
68  myCopcolor = "(Default Color)"_UTsh;
69  myCopalpha = "(Default Alpha)"_UTsh;
70  myDelborder = false;
71  myBordwidth = 2;
72  myDoresample = false;
73  myStep = 1;
74  myDosmooth = false;
75  myCorner = 1;
76  myFitcurve = false;
77  myError = 2;
78  myConvpoly = false;
79  myLod = 1;
80  myHole = false;
81  myBoundary = 0;
82  myBoundaryvalue = 0;
83  myMissingFrame = 0;
84 
85  }
86 
87  explicit SOP_TraceParms(const SOP_TraceParms &) = default;
88  SOP_TraceParms &operator=(const SOP_TraceParms &) = default;
89  SOP_TraceParms(SOP_TraceParms &&) noexcept = default;
90  SOP_TraceParms &operator=(SOP_TraceParms &&) noexcept = default;
91 
92  ~SOP_TraceParms() override {}
93 
94  bool operator==(const SOP_TraceParms &src) const
95  {
96  if (myTraceLayer != src.myTraceLayer) return false;
97  if (myT != src.myT) return false;
98  if (myR != src.myR) return false;
99  if (myS != src.myS) return false;
100  if (myThresh != src.myThresh) return false;
101  if (myAddtexture != src.myAddtexture) return false;
102  if (myChannel != src.myChannel) return false;
103  if (myFile != src.myFile) return false;
104  if (myOverridesize != src.myOverridesize) return false;
105  if (myImagesize != src.myImagesize) return false;
106  if (myUsecop != src.myUsecop) return false;
107  if (myCoppath != src.myCoppath) return false;
108  if (myCopframe != src.myCopframe) return false;
109  if (myCopcolor != src.myCopcolor) return false;
110  if (myCopalpha != src.myCopalpha) return false;
111  if (myDelborder != src.myDelborder) return false;
112  if (myBordwidth != src.myBordwidth) return false;
113  if (myDoresample != src.myDoresample) return false;
114  if (myStep != src.myStep) return false;
115  if (myDosmooth != src.myDosmooth) return false;
116  if (myCorner != src.myCorner) return false;
117  if (myFitcurve != src.myFitcurve) return false;
118  if (myError != src.myError) return false;
119  if (myConvpoly != src.myConvpoly) return false;
120  if (myLod != src.myLod) return false;
121  if (myHole != src.myHole) return false;
122  if (myBoundary != src.myBoundary) return false;
123  if (myBoundaryvalue != src.myBoundaryvalue) return false;
124  if (myMissingFrame != src.myMissingFrame) return false;
125 
126  return true;
127  }
128  bool operator!=(const SOP_TraceParms &src) const
129  {
130  return !operator==(src);
131  }
135 
136 
137 
138  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
139  {
140  myTraceLayer = ""_UTsh;
141  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==0)))) ) )
142  graph->evalOpParm(myTraceLayer, nodeidx, "tracelayer", time, 0);
143  myT = UT_Vector3D(0,0,0);
144  if (true)
145  graph->evalOpParm(myT, nodeidx, "t", time, 0);
146  myR = UT_Vector3D(0,0,0);
147  if (true)
148  graph->evalOpParm(myR, nodeidx, "r", time, 0);
149  myS = UT_Vector2D(1,1);
150  if (true)
151  graph->evalOpParm(myS, nodeidx, "s", time, 0);
152  myThresh = 0.5;
153  if (true)
154  graph->evalOpParm(myThresh, nodeidx, "thresh", time, 0);
155  myAddtexture = false;
156  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==1)))) ) )
157  graph->evalOpParm(myAddtexture, nodeidx, "addtexture", time, 0);
158  myChannel = 0;
159  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==1)))) ) )
160  graph->evalOpParm(myChannel, nodeidx, "channel", time, 0);
161  myFile = "circle.pic"_UTsh;
162  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==1)))) ) )
163  graph->evalOpParm(myFile, nodeidx, "file", time, 0);
164  myOverridesize = false;
165  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==1)))) ) )
166  graph->evalOpParm(myOverridesize, nodeidx, "overridesize", time, 0);
167  myImagesize = UT_Vector2I(100,100);
168  if (true && ( (true&&!(((getOverridesize()==0))||(((graph->getInput(nodeidx,0)>=0)==1)))) ) )
169  graph->evalOpParm(myImagesize, nodeidx, "imagesize", time, 0);
170  myUsecop = 0;
171  if (true)
172  graph->evalOpParm(myUsecop, nodeidx, "usecop", time, 0);
173  myCoppath = ""_UTsh;
174  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==1)))) ) )
175  graph->evalOpParm(myCoppath, nodeidx, "coppath", time, 0);
176  myCopframe = 0;
177  if (true && ( (true&&!(((getCoppath()==""))||(((graph->getInput(nodeidx,0)>=0)==1)))) ) )
178  graph->evalOpParm(myCopframe, nodeidx, "copframe", time, 0);
179  myCopcolor = "(Default Color)"_UTsh;
180  if (true && ( (true&&!(((getCoppath()==""))||(((graph->getInput(nodeidx,0)>=0)==1)))) ) )
181  graph->evalOpParm(myCopcolor, nodeidx, "copcolor", time, 0);
182  myCopalpha = "(Default Alpha)"_UTsh;
183  if (true && ( (true&&!(((getCoppath()==""))||(((graph->getInput(nodeidx,0)>=0)==1)))) ) )
184  graph->evalOpParm(myCopalpha, nodeidx, "copalpha", time, 0);
185  myDelborder = false;
186  if (true)
187  graph->evalOpParm(myDelborder, nodeidx, "delborder", time, 0);
188  myBordwidth = 2;
189  if (true && ( (true&&!(((getDelborder()==0)))) ) )
190  graph->evalOpParm(myBordwidth, nodeidx, "bordwidth", time, 0);
191  myDoresample = false;
192  if (true)
193  graph->evalOpParm(myDoresample, nodeidx, "doresample", time, 0);
194  myStep = 1;
195  if (true && ( (true&&!(((getDoresample()==0)))) ) )
196  graph->evalOpParm(myStep, nodeidx, "step", time, 0);
197  myDosmooth = false;
198  if (true)
199  graph->evalOpParm(myDosmooth, nodeidx, "dosmooth", time, 0);
200  myCorner = 1;
201  if (true && ( (true&&!(((getDosmooth()==0)))) ) )
202  graph->evalOpParm(myCorner, nodeidx, "corner", time, 0);
203  myFitcurve = false;
204  if (true)
205  graph->evalOpParm(myFitcurve, nodeidx, "fitcurve", time, 0);
206  myError = 2;
207  if (true && ( (true&&!(((getFitcurve()==0)))) ) )
208  graph->evalOpParm(myError, nodeidx, "error", time, 0);
209  myConvpoly = false;
210  if (true && ( (true&&!(((getFitcurve()==0)))) ) )
211  graph->evalOpParm(myConvpoly, nodeidx, "convpoly", time, 0);
212  myLod = 1;
213  if (true && ( (true&&!(((getFitcurve()==0))||((getConvpoly()==0)))) ) )
214  graph->evalOpParm(myLod, nodeidx, "lod", time, 0);
215  myHole = false;
216  if (true)
217  graph->evalOpParm(myHole, nodeidx, "hole", time, 0);
218  myBoundary = 0;
219  if (true)
220  graph->evalOpParm(myBoundary, nodeidx, "boundary", time, 0);
221  myBoundaryvalue = 0;
222  if (true && ( (true&&!(((int64(getBoundary())!=3)))) ) )
223  graph->evalOpParm(myBoundaryvalue, nodeidx, "boundaryvalue", time, 0);
224  myMissingFrame = 0;
225  if (true)
226  graph->evalOpParm(myMissingFrame, nodeidx, "missingframe", time, 0);
227 
228  }
229 
230 
231  void loadFromOpSubclass(const LoadParms &loadparms) override
232  {
233  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
234  }
235 
236 
237  void copyFrom(const OP_NodeParms *src) override
238  {
239  *this = *((const SOP_TraceParms *)src);
240  }
241 
242  template <typename T>
243  void
244  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
245  {
246  if (idx.size() < 1)
247  return;
248  UT_ASSERT(idx.size() == instance.size()+1);
249  if (idx.size() != instance.size()+1)
250  return;
251  switch (idx[0])
252  {
253  case 0:
254  coerceValue(value, myTraceLayer);
255  break;
256  case 1:
257  coerceValue(value, myT);
258  break;
259  case 2:
260  coerceValue(value, myR);
261  break;
262  case 3:
263  coerceValue(value, myS);
264  break;
265  case 4:
266  coerceValue(value, myThresh);
267  break;
268  case 5:
269  coerceValue(value, myAddtexture);
270  break;
271  case 6:
272  coerceValue(value, myChannel);
273  break;
274  case 7:
275  coerceValue(value, myFile);
276  break;
277  case 8:
278  coerceValue(value, myOverridesize);
279  break;
280  case 9:
281  coerceValue(value, myImagesize);
282  break;
283  case 10:
284  coerceValue(value, myUsecop);
285  break;
286  case 11:
287  coerceValue(value, myCoppath);
288  break;
289  case 12:
290  coerceValue(value, myCopframe);
291  break;
292  case 13:
293  coerceValue(value, myCopcolor);
294  break;
295  case 14:
296  coerceValue(value, myCopalpha);
297  break;
298  case 15:
299  coerceValue(value, myDelborder);
300  break;
301  case 16:
302  coerceValue(value, myBordwidth);
303  break;
304  case 17:
305  coerceValue(value, myDoresample);
306  break;
307  case 18:
308  coerceValue(value, myStep);
309  break;
310  case 19:
311  coerceValue(value, myDosmooth);
312  break;
313  case 20:
314  coerceValue(value, myCorner);
315  break;
316  case 21:
317  coerceValue(value, myFitcurve);
318  break;
319  case 22:
320  coerceValue(value, myError);
321  break;
322  case 23:
323  coerceValue(value, myConvpoly);
324  break;
325  case 24:
326  coerceValue(value, myLod);
327  break;
328  case 25:
329  coerceValue(value, myHole);
330  break;
331  case 26:
332  coerceValue(value, myBoundary);
333  break;
334  case 27:
335  coerceValue(value, myBoundaryvalue);
336  break;
337  case 28:
338  coerceValue(value, myMissingFrame);
339  break;
340 
341  }
342  }
343 
344  bool isParmColorRamp(exint idx) const override
345  {
346  switch (idx)
347  {
348 
349  }
350  return false;
351  }
352 
353  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
354  { doGetParmValue(idx, instance, value); }
355  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
356  { doGetParmValue(idx, instance, value); }
357  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
358  { doGetParmValue(idx, instance, value); }
359  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
360  { doGetParmValue(idx, instance, value); }
361  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
362  { doGetParmValue(idx, instance, value); }
363  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
364  { doGetParmValue(idx, instance, value); }
365  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
366  { doGetParmValue(idx, instance, value); }
367  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
368  { doGetParmValue(idx, instance, value); }
369  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
370  { doGetParmValue(idx, instance, value); }
371  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
372  { doGetParmValue(idx, instance, value); }
373  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
374  { doGetParmValue(idx, instance, value); }
375 
376  template <typename T>
377  void
378  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
379  {
380  if (idx.size() < 1)
381  return;
382  UT_ASSERT(idx.size() == instance.size()+1);
383  if (idx.size() != instance.size()+1)
384  return;
385  switch (idx[0])
386  {
387  case 0:
388  coerceValue(myTraceLayer, ( ( value ) ));
389  break;
390  case 1:
391  coerceValue(myT, ( ( value ) ));
392  break;
393  case 2:
394  coerceValue(myR, ( ( value ) ));
395  break;
396  case 3:
397  coerceValue(myS, ( ( value ) ));
398  break;
399  case 4:
400  coerceValue(myThresh, ( ( value ) ));
401  break;
402  case 5:
403  coerceValue(myAddtexture, ( ( value ) ));
404  break;
405  case 6:
406  coerceValue(myChannel, clampMinValue(0, clampMaxValue(4, value ) ));
407  break;
408  case 7:
409  coerceValue(myFile, ( ( value ) ));
410  break;
411  case 8:
412  coerceValue(myOverridesize, ( ( value ) ));
413  break;
414  case 9:
415  coerceValue(myImagesize, ( ( value ) ));
416  break;
417  case 10:
418  coerceValue(myUsecop, ( ( value ) ));
419  break;
420  case 11:
421  coerceValue(myCoppath, ( ( value ) ));
422  break;
423  case 12:
424  coerceValue(myCopframe, ( ( value ) ));
425  break;
426  case 13:
427  coerceValue(myCopcolor, ( ( value ) ));
428  break;
429  case 14:
430  coerceValue(myCopalpha, ( ( value ) ));
431  break;
432  case 15:
433  coerceValue(myDelborder, ( ( value ) ));
434  break;
435  case 16:
436  coerceValue(myBordwidth, clampMinValue(0.001, ( value ) ));
437  break;
438  case 17:
439  coerceValue(myDoresample, ( ( value ) ));
440  break;
441  case 18:
442  coerceValue(myStep, clampMinValue(0.001, ( value ) ));
443  break;
444  case 19:
445  coerceValue(myDosmooth, ( ( value ) ));
446  break;
447  case 20:
448  coerceValue(myCorner, clampMinValue(0, ( value ) ));
449  break;
450  case 21:
451  coerceValue(myFitcurve, ( ( value ) ));
452  break;
453  case 22:
454  coerceValue(myError, ( ( value ) ));
455  break;
456  case 23:
457  coerceValue(myConvpoly, ( ( value ) ));
458  break;
459  case 24:
460  coerceValue(myLod, clampMinValue(0.001, ( value ) ));
461  break;
462  case 25:
463  coerceValue(myHole, ( ( value ) ));
464  break;
465  case 26:
466  coerceValue(myBoundary, clampMinValue(0, clampMaxValue(3, value ) ));
467  break;
468  case 27:
469  coerceValue(myBoundaryvalue, ( ( value ) ));
470  break;
471  case 28:
472  coerceValue(myMissingFrame, clampMinValue(0, clampMaxValue(1, value ) ));
473  break;
474 
475  }
476  }
477 
478  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
479  { doSetParmValue(idx, instance, value); }
480  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
481  { doSetParmValue(idx, instance, value); }
482  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
483  { doSetParmValue(idx, instance, value); }
484  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
485  { doSetParmValue(idx, instance, value); }
486  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
487  { doSetParmValue(idx, instance, value); }
488  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
489  { doSetParmValue(idx, instance, value); }
490  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
491  { doSetParmValue(idx, instance, value); }
492  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
493  { doSetParmValue(idx, instance, value); }
494  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
495  { doSetParmValue(idx, instance, value); }
496  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
497  { doSetParmValue(idx, instance, value); }
498  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
499  { doSetParmValue(idx, instance, value); }
500 
501  exint getNestNumParms(TempIndex idx) const override
502  {
503  if (idx.size() == 0)
504  return 29;
505  switch (idx[0])
506  {
507 
508  }
509  // Invalid
510  return 0;
511  }
512 
513  const char *getNestParmName(TempIndex fieldnum) const override
514  {
515  if (fieldnum.size() < 1)
516  return 0;
517  switch (fieldnum[0])
518  {
519  case 0:
520  return "tracelayer";
521  case 1:
522  return "t";
523  case 2:
524  return "r";
525  case 3:
526  return "s";
527  case 4:
528  return "thresh";
529  case 5:
530  return "addtexture";
531  case 6:
532  return "channel";
533  case 7:
534  return "file";
535  case 8:
536  return "overridesize";
537  case 9:
538  return "imagesize";
539  case 10:
540  return "usecop";
541  case 11:
542  return "coppath";
543  case 12:
544  return "copframe";
545  case 13:
546  return "copcolor";
547  case 14:
548  return "copalpha";
549  case 15:
550  return "delborder";
551  case 16:
552  return "bordwidth";
553  case 17:
554  return "doresample";
555  case 18:
556  return "step";
557  case 19:
558  return "dosmooth";
559  case 20:
560  return "corner";
561  case 21:
562  return "fitcurve";
563  case 22:
564  return "error";
565  case 23:
566  return "convpoly";
567  case 24:
568  return "lod";
569  case 25:
570  return "hole";
571  case 26:
572  return "boundary";
573  case 27:
574  return "boundaryvalue";
575  case 28:
576  return "missingframe";
577 
578  }
579  return 0;
580  }
581 
582  ParmType getNestParmType(TempIndex fieldnum) const override
583  {
584  if (fieldnum.size() < 1)
585  return PARM_UNSUPPORTED;
586  switch (fieldnum[0])
587  {
588  case 0:
589  return PARM_STRING;
590  case 1:
591  return PARM_VECTOR3;
592  case 2:
593  return PARM_VECTOR3;
594  case 3:
595  return PARM_VECTOR2;
596  case 4:
597  return PARM_FLOAT;
598  case 5:
599  return PARM_INTEGER;
600  case 6:
601  return PARM_INTEGER;
602  case 7:
603  return PARM_STRING;
604  case 8:
605  return PARM_INTEGER;
606  case 9:
607  return PARM_VECTOR2;
608  case 10:
609  return PARM_INTEGER;
610  case 11:
611  return PARM_STRING;
612  case 12:
613  return PARM_FLOAT;
614  case 13:
615  return PARM_STRING;
616  case 14:
617  return PARM_STRING;
618  case 15:
619  return PARM_INTEGER;
620  case 16:
621  return PARM_INTEGER;
622  case 17:
623  return PARM_INTEGER;
624  case 18:
625  return PARM_FLOAT;
626  case 19:
627  return PARM_INTEGER;
628  case 20:
629  return PARM_FLOAT;
630  case 21:
631  return PARM_INTEGER;
632  case 22:
633  return PARM_FLOAT;
634  case 23:
635  return PARM_INTEGER;
636  case 24:
637  return PARM_FLOAT;
638  case 25:
639  return PARM_INTEGER;
640  case 26:
641  return PARM_INTEGER;
642  case 27:
643  return PARM_FLOAT;
644  case 28:
645  return PARM_INTEGER;
646 
647  }
648  return PARM_UNSUPPORTED;
649  }
650 
651  // Boiler plate to load individual types.
652  static void loadData(UT_IStream &is, int64 &v)
653  { is.bread(&v, 1); }
654  static void loadData(UT_IStream &is, bool &v)
655  { int64 iv; is.bread(&iv, 1); v = iv; }
656  static void loadData(UT_IStream &is, fpreal64 &v)
657  { is.bread<fpreal64>(&v, 1); }
658  static void loadData(UT_IStream &is, UT_Vector2D &v)
659  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
660  static void loadData(UT_IStream &is, UT_Vector3D &v)
661  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
662  is.bread<fpreal64>(&v.z(), 1); }
663  static void loadData(UT_IStream &is, UT_Vector4D &v)
664  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
665  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
666  static void loadData(UT_IStream &is, UT_Matrix2D &v)
667  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
668  static void loadData(UT_IStream &is, UT_Matrix3D &v)
669  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
670  static void loadData(UT_IStream &is, UT_Matrix4D &v)
671  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
672  static void loadData(UT_IStream &is, UT_Vector2I &v)
673  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
674  static void loadData(UT_IStream &is, UT_Vector3I &v)
675  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
676  is.bread<int64>(&v.z(), 1); }
677  static void loadData(UT_IStream &is, UT_Vector4I &v)
678  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
679  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
681  { is.bread(v); }
683  { UT_StringHolder rampdata;
684  loadData(is, rampdata);
685  if (rampdata.isstring())
686  {
687  v.reset(new UT_Ramp());
688  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
689  v->load(istr);
690  }
691  else v.reset();
692  }
695  loadData(is, data);
696  if (data.isstring())
697  {
698  // Find the data type.
699  const char *colon = UT_StringWrap(data).findChar(':');
700  if (colon)
701  {
702  int typelen = colon - data.buffer();
704  type.strncpy(data.buffer(), typelen);
705  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
706 
707  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
708  }
709  }
710  else v.reset();
711  }
712 
713  static void saveData(std::ostream &os, int64 v)
714  { UTwrite(os, &v); }
715  static void saveData(std::ostream &os, bool v)
716  { int64 iv = v; UTwrite(os, &iv); }
717  static void saveData(std::ostream &os, fpreal64 v)
718  { UTwrite<fpreal64>(os, &v); }
719  static void saveData(std::ostream &os, UT_Vector2D v)
720  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
721  static void saveData(std::ostream &os, UT_Vector3D v)
722  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
723  UTwrite<fpreal64>(os, &v.z()); }
724  static void saveData(std::ostream &os, UT_Vector4D v)
725  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
726  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
727  static void saveData(std::ostream &os, UT_Matrix2D v)
729  static void saveData(std::ostream &os, UT_Matrix3D v)
731  static void saveData(std::ostream &os, UT_Matrix4D v)
733  static void saveData(std::ostream &os, UT_StringHolder s)
734  { UT_StringWrap(s).saveBinary(os); }
735  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
737  UT_OStringStream ostr;
738  if (s) s->save(ostr);
739  result = ostr.str();
740  saveData(os, result);
741  }
742  static void saveData(std::ostream &os, PRM_DataItemHandle s)
744  UT_OStringStream ostr;
745  if (s)
746  {
747  ostr << s->getDataTypeToken();
748  ostr << ":";
749  s->saveBinary(ostr);
750  }
751  result = ostr.str();
752  saveData(os, result);
753  }
754 
755 
756  void save(std::ostream &os) const
757  {
758  int32 v = version();
759  UTwrite(os, &v);
760  saveData(os, myTraceLayer);
761  saveData(os, myT);
762  saveData(os, myR);
763  saveData(os, myS);
764  saveData(os, myThresh);
765  saveData(os, myAddtexture);
766  saveData(os, myChannel);
767  saveData(os, myFile);
768  saveData(os, myOverridesize);
769  saveData(os, myImagesize);
770  saveData(os, myUsecop);
771  saveData(os, myCoppath);
772  saveData(os, myCopframe);
773  saveData(os, myCopcolor);
774  saveData(os, myCopalpha);
775  saveData(os, myDelborder);
776  saveData(os, myBordwidth);
777  saveData(os, myDoresample);
778  saveData(os, myStep);
779  saveData(os, myDosmooth);
780  saveData(os, myCorner);
781  saveData(os, myFitcurve);
782  saveData(os, myError);
783  saveData(os, myConvpoly);
784  saveData(os, myLod);
785  saveData(os, myHole);
786  saveData(os, myBoundary);
787  saveData(os, myBoundaryvalue);
788  saveData(os, myMissingFrame);
789 
790  }
791 
792  bool load(UT_IStream &is)
793  {
794  int32 v;
795  is.bread(&v, 1);
796  if (version() != v)
797  {
798  // Fail incompatible versions
799  return false;
800  }
801  loadData(is, myTraceLayer);
802  loadData(is, myT);
803  loadData(is, myR);
804  loadData(is, myS);
805  loadData(is, myThresh);
806  loadData(is, myAddtexture);
807  loadData(is, myChannel);
808  loadData(is, myFile);
809  loadData(is, myOverridesize);
810  loadData(is, myImagesize);
811  loadData(is, myUsecop);
812  loadData(is, myCoppath);
813  loadData(is, myCopframe);
814  loadData(is, myCopcolor);
815  loadData(is, myCopalpha);
816  loadData(is, myDelborder);
817  loadData(is, myBordwidth);
818  loadData(is, myDoresample);
819  loadData(is, myStep);
820  loadData(is, myDosmooth);
821  loadData(is, myCorner);
822  loadData(is, myFitcurve);
823  loadData(is, myError);
824  loadData(is, myConvpoly);
825  loadData(is, myLod);
826  loadData(is, myHole);
827  loadData(is, myBoundary);
828  loadData(is, myBoundaryvalue);
829  loadData(is, myMissingFrame);
830 
831  return true;
832  }
833 
834  const UT_StringHolder & getTraceLayer() const { return myTraceLayer; }
835  void setTraceLayer(const UT_StringHolder & val) { myTraceLayer = val; }
837  {
838  SOP_Node *thissop = cookparms.getNode();
839  if (!thissop) return getTraceLayer();
841  OP_Utils::evalOpParm(result, thissop, "tracelayer", cookparms.getCookTime(), 0);
842  return result;
843  }
844  UT_Vector3D getT() const { return myT; }
845  void setT(UT_Vector3D val) { myT = val; }
846  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
847  {
848  SOP_Node *thissop = cookparms.getNode();
849  if (!thissop) return getT();
851  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
852  return result;
853  }
854  UT_Vector3D getR() const { return myR; }
855  void setR(UT_Vector3D val) { myR = val; }
856  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
857  {
858  SOP_Node *thissop = cookparms.getNode();
859  if (!thissop) return getR();
861  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
862  return result;
863  }
864  UT_Vector2D getS() const { return myS; }
865  void setS(UT_Vector2D val) { myS = val; }
866  UT_Vector2D opS(const SOP_NodeVerb::CookParms &cookparms) const
867  {
868  SOP_Node *thissop = cookparms.getNode();
869  if (!thissop) return getS();
871  OP_Utils::evalOpParm(result, thissop, "s", cookparms.getCookTime(), 0);
872  return result;
873  }
874  fpreal64 getThresh() const { return myThresh; }
875  void setThresh(fpreal64 val) { myThresh = val; }
876  fpreal64 opThresh(const SOP_NodeVerb::CookParms &cookparms) const
877  {
878  SOP_Node *thissop = cookparms.getNode();
879  if (!thissop) return getThresh();
881  OP_Utils::evalOpParm(result, thissop, "thresh", cookparms.getCookTime(), 0);
882  return result;
883  }
884  bool getAddtexture() const { return myAddtexture; }
885  void setAddtexture(bool val) { myAddtexture = val; }
886  bool opAddtexture(const SOP_NodeVerb::CookParms &cookparms) const
887  {
888  SOP_Node *thissop = cookparms.getNode();
889  if (!thissop) return getAddtexture();
890  bool result;
891  OP_Utils::evalOpParm(result, thissop, "addtexture", cookparms.getCookTime(), 0);
892  return result;
893  }
894  Channel getChannel() const { return Channel(myChannel); }
895  void setChannel(Channel val) { myChannel = int64(val); }
896  Channel opChannel(const SOP_NodeVerb::CookParms &cookparms) const
897  {
898  SOP_Node *thissop = cookparms.getNode();
899  if (!thissop) return getChannel();
900  int64 result;
901  OP_Utils::evalOpParm(result, thissop, "channel", cookparms.getCookTime(), 0);
902  return Channel(result);
903  }
904  const UT_StringHolder & getFile() const { return myFile; }
905  void setFile(const UT_StringHolder & val) { myFile = val; }
907  {
908  SOP_Node *thissop = cookparms.getNode();
909  if (!thissop) return getFile();
911  OP_Utils::evalOpParm(result, thissop, "file", cookparms.getCookTime(), 0);
912  return result;
913  }
914  bool getOverridesize() const { return myOverridesize; }
915  void setOverridesize(bool val) { myOverridesize = val; }
916  bool opOverridesize(const SOP_NodeVerb::CookParms &cookparms) const
917  {
918  SOP_Node *thissop = cookparms.getNode();
919  if (!thissop) return getOverridesize();
920  bool result;
921  OP_Utils::evalOpParm(result, thissop, "overridesize", cookparms.getCookTime(), 0);
922  return result;
923  }
924  UT_Vector2I getImagesize() const { return myImagesize; }
925  void setImagesize(UT_Vector2I val) { myImagesize = val; }
927  {
928  SOP_Node *thissop = cookparms.getNode();
929  if (!thissop) return getImagesize();
931  OP_Utils::evalOpParm(result, thissop, "imagesize", cookparms.getCookTime(), 0);
932  return result;
933  }
934  int64 getUsecop() const { return myUsecop; }
935  void setUsecop(int64 val) { myUsecop = val; }
936  int64 opUsecop(const SOP_NodeVerb::CookParms &cookparms) const
937  {
938  SOP_Node *thissop = cookparms.getNode();
939  if (!thissop) return getUsecop();
940  int64 result;
941  OP_Utils::evalOpParm(result, thissop, "usecop", cookparms.getCookTime(), 0);
942  return result;
943  }
944  const UT_StringHolder & getCoppath() const { return myCoppath; }
945  void setCoppath(const UT_StringHolder & val) { myCoppath = val; }
947  {
948  SOP_Node *thissop = cookparms.getNode();
949  if (!thissop) return getCoppath();
951  OP_Utils::evalOpParm(result, thissop, "coppath", cookparms.getCookTime(), 0);
952  return result;
953  }
954  fpreal64 getCopframe() const { return myCopframe; }
955  void setCopframe(fpreal64 val) { myCopframe = val; }
957  {
958  SOP_Node *thissop = cookparms.getNode();
959  if (!thissop) return getCopframe();
961  OP_Utils::evalOpParm(result, thissop, "copframe", cookparms.getCookTime(), 0);
962  return result;
963  }
964  const UT_StringHolder & getCopcolor() const { return myCopcolor; }
965  void setCopcolor(const UT_StringHolder & val) { myCopcolor = val; }
967  {
968  SOP_Node *thissop = cookparms.getNode();
969  if (!thissop) return getCopcolor();
971  OP_Utils::evalOpParm(result, thissop, "copcolor", cookparms.getCookTime(), 0);
972  return result;
973  }
974  const UT_StringHolder & getCopalpha() const { return myCopalpha; }
975  void setCopalpha(const UT_StringHolder & val) { myCopalpha = val; }
977  {
978  SOP_Node *thissop = cookparms.getNode();
979  if (!thissop) return getCopalpha();
981  OP_Utils::evalOpParm(result, thissop, "copalpha", cookparms.getCookTime(), 0);
982  return result;
983  }
984  bool getDelborder() const { return myDelborder; }
985  void setDelborder(bool val) { myDelborder = val; }
986  bool opDelborder(const SOP_NodeVerb::CookParms &cookparms) const
987  {
988  SOP_Node *thissop = cookparms.getNode();
989  if (!thissop) return getDelborder();
990  bool result;
991  OP_Utils::evalOpParm(result, thissop, "delborder", cookparms.getCookTime(), 0);
992  return result;
993  }
994  int64 getBordwidth() const { return myBordwidth; }
995  void setBordwidth(int64 val) { myBordwidth = val; }
996  int64 opBordwidth(const SOP_NodeVerb::CookParms &cookparms) const
997  {
998  SOP_Node *thissop = cookparms.getNode();
999  if (!thissop) return getBordwidth();
1000  int64 result;
1001  OP_Utils::evalOpParm(result, thissop, "bordwidth", cookparms.getCookTime(), 0);
1002  return result;
1003  }
1004  bool getDoresample() const { return myDoresample; }
1005  void setDoresample(bool val) { myDoresample = val; }
1006  bool opDoresample(const SOP_NodeVerb::CookParms &cookparms) const
1007  {
1008  SOP_Node *thissop = cookparms.getNode();
1009  if (!thissop) return getDoresample();
1010  bool result;
1011  OP_Utils::evalOpParm(result, thissop, "doresample", cookparms.getCookTime(), 0);
1012  return result;
1013  }
1014  fpreal64 getStep() const { return myStep; }
1016  fpreal64 opStep(const SOP_NodeVerb::CookParms &cookparms) const
1017  {
1018  SOP_Node *thissop = cookparms.getNode();
1019  if (!thissop) return getStep();
1020  fpreal64 result;
1021  OP_Utils::evalOpParm(result, thissop, "step", cookparms.getCookTime(), 0);
1022  return result;
1023  }
1024  bool getDosmooth() const { return myDosmooth; }
1025  void setDosmooth(bool val) { myDosmooth = val; }
1026  bool opDosmooth(const SOP_NodeVerb::CookParms &cookparms) const
1027  {
1028  SOP_Node *thissop = cookparms.getNode();
1029  if (!thissop) return getDosmooth();
1030  bool result;
1031  OP_Utils::evalOpParm(result, thissop, "dosmooth", cookparms.getCookTime(), 0);
1032  return result;
1033  }
1034  fpreal64 getCorner() const { return myCorner; }
1035  void setCorner(fpreal64 val) { myCorner = val; }
1037  {
1038  SOP_Node *thissop = cookparms.getNode();
1039  if (!thissop) return getCorner();
1040  fpreal64 result;
1041  OP_Utils::evalOpParm(result, thissop, "corner", cookparms.getCookTime(), 0);
1042  return result;
1043  }
1044  bool getFitcurve() const { return myFitcurve; }
1045  void setFitcurve(bool val) { myFitcurve = val; }
1046  bool opFitcurve(const SOP_NodeVerb::CookParms &cookparms) const
1047  {
1048  SOP_Node *thissop = cookparms.getNode();
1049  if (!thissop) return getFitcurve();
1050  bool result;
1051  OP_Utils::evalOpParm(result, thissop, "fitcurve", cookparms.getCookTime(), 0);
1052  return result;
1053  }
1054  fpreal64 getError() const { return myError; }
1055  void setError(fpreal64 val) { myError = val; }
1056  fpreal64 opError(const SOP_NodeVerb::CookParms &cookparms) const
1057  {
1058  SOP_Node *thissop = cookparms.getNode();
1059  if (!thissop) return getError();
1060  fpreal64 result;
1061  OP_Utils::evalOpParm(result, thissop, "error", cookparms.getCookTime(), 0);
1062  return result;
1063  }
1064  bool getConvpoly() const { return myConvpoly; }
1065  void setConvpoly(bool val) { myConvpoly = val; }
1066  bool opConvpoly(const SOP_NodeVerb::CookParms &cookparms) const
1067  {
1068  SOP_Node *thissop = cookparms.getNode();
1069  if (!thissop) return getConvpoly();
1070  bool result;
1071  OP_Utils::evalOpParm(result, thissop, "convpoly", cookparms.getCookTime(), 0);
1072  return result;
1073  }
1074  fpreal64 getLod() const { return myLod; }
1075  void setLod(fpreal64 val) { myLod = val; }
1076  fpreal64 opLod(const SOP_NodeVerb::CookParms &cookparms) const
1077  {
1078  SOP_Node *thissop = cookparms.getNode();
1079  if (!thissop) return getLod();
1080  fpreal64 result;
1081  OP_Utils::evalOpParm(result, thissop, "lod", cookparms.getCookTime(), 0);
1082  return result;
1083  }
1084  bool getHole() const { return myHole; }
1085  void setHole(bool val) { myHole = val; }
1086  bool opHole(const SOP_NodeVerb::CookParms &cookparms) const
1087  {
1088  SOP_Node *thissop = cookparms.getNode();
1089  if (!thissop) return getHole();
1090  bool result;
1091  OP_Utils::evalOpParm(result, thissop, "hole", cookparms.getCookTime(), 0);
1092  return result;
1093  }
1094  Boundary getBoundary() const { return Boundary(myBoundary); }
1095  void setBoundary(Boundary val) { myBoundary = int64(val); }
1097  {
1098  SOP_Node *thissop = cookparms.getNode();
1099  if (!thissop) return getBoundary();
1100  int64 result;
1101  OP_Utils::evalOpParm(result, thissop, "boundary", cookparms.getCookTime(), 0);
1102  return Boundary(result);
1103  }
1104  fpreal64 getBoundaryvalue() const { return myBoundaryvalue; }
1105  void setBoundaryvalue(fpreal64 val) { myBoundaryvalue = val; }
1107  {
1108  SOP_Node *thissop = cookparms.getNode();
1109  if (!thissop) return getBoundaryvalue();
1110  fpreal64 result;
1111  OP_Utils::evalOpParm(result, thissop, "boundaryvalue", cookparms.getCookTime(), 0);
1112  return result;
1113  }
1114  MissingFrame getMissingFrame() const { return MissingFrame(myMissingFrame); }
1115  void setMissingFrame(MissingFrame val) { myMissingFrame = int64(val); }
1117  {
1118  SOP_Node *thissop = cookparms.getNode();
1119  if (!thissop) return getMissingFrame();
1120  int64 result;
1121  OP_Utils::evalOpParm(result, thissop, "missingframe", cookparms.getCookTime(), 0);
1122  return MissingFrame(result);
1123  }
1124 
1125 private:
1126  UT_StringHolder myTraceLayer;
1127  UT_Vector3D myT;
1128  UT_Vector3D myR;
1129  UT_Vector2D myS;
1130  fpreal64 myThresh;
1131  bool myAddtexture;
1132  int64 myChannel;
1133  UT_StringHolder myFile;
1134  bool myOverridesize;
1135  UT_Vector2I myImagesize;
1136  int64 myUsecop;
1137  UT_StringHolder myCoppath;
1138  fpreal64 myCopframe;
1139  UT_StringHolder myCopcolor;
1140  UT_StringHolder myCopalpha;
1141  bool myDelborder;
1142  int64 myBordwidth;
1143  bool myDoresample;
1144  fpreal64 myStep;
1145  bool myDosmooth;
1146  fpreal64 myCorner;
1147  bool myFitcurve;
1148  fpreal64 myError;
1149  bool myConvpoly;
1150  fpreal64 myLod;
1151  bool myHole;
1152  int64 myBoundary;
1153  fpreal64 myBoundaryvalue;
1154  int64 myMissingFrame;
1155 
1156 };
static void loadData(UT_IStream &is, bool &v)
UT_Vector2T< int64 > UT_Vector2I
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setFile(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_StringHolder s)
int64 opBordwidth(const SOP_NodeVerb::CookParms &cookparms) const
void setImagesize(UT_Vector2I val)
void setBoundaryvalue(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
Boundary opBoundary(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_Vector2D getS() const
void setError(fpreal64 val)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
void setUsecop(int64 val)
UT_Vector2T< fpreal64 > UT_Vector2D
bool getFitcurve() const
int64 getUsecop() const
bool opFitcurve(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setDoresample(bool val)
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
int myStep
Definition: GT_CurveEval.h:264
bool isParmColorRamp(exint idx) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
UT_Vector3D getR() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, UT_Vector3D v)
GLdouble s
Definition: glad.h:3009
UT_StringHolder opCoppath(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
fpreal64 opError(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setMissingFrame(MissingFrame val)
void setAddtexture(bool val)
**But if you need a result
Definition: thread.h:613
void setFitcurve(bool val)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
void setThresh(fpreal64 val)
static void saveData(std::ostream &os, int64 v)
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.
bool opDoresample(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opCopalpha(const SOP_NodeVerb::CookParms &cookparms) const
bool getAddtexture() const
bool opAddtexture(const SOP_NodeVerb::CookParms &cookparms) const
void setStep(fpreal64 val)
fpreal64 opBoundaryvalue(const SOP_NodeVerb::CookParms &cookparms) const
virtual NodeIdx getInput(NodeIdx idx, int input, bool markused=false) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
const UT_StringHolder & getCopcolor() const
MissingFrame getMissingFrame() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
UT_Vector2D opS(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opStep(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool getHole() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setCopalpha(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
bool opDosmooth(const SOP_NodeVerb::CookParms &cookparms) const
void setChannel(Channel val)
exint length() const
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void setR(UT_Vector3D val)
void setCoppath(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
Channel opChannel(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool opHole(const SOP_NodeVerb::CookParms &cookparms) const
bool getOverridesize() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
UT_StringHolder opTraceLayer(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Vector2D v)
fpreal64 getStep() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setBoundary(Boundary val)
bool opConvpoly(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
long long int64
Definition: SYS_Types.h:116
UT_Vector3T< fpreal64 > UT_Vector3D
void setDosmooth(bool val)
void setTraceLayer(const UT_StringHolder &val)
Channel getChannel() const
fpreal64 getCorner() const
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getError() const
UT_StringHolder opCopcolor(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setOverridesize(bool val)
void setLod(fpreal64 val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
UT_Vector2I opImagesize(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getCopframe() const
void setHole(bool val)
void setCopcolor(const UT_StringHolder &val)
static void saveData(std::ostream &os, bool v)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_Vector3D getT() const
const UT_StringHolder & getTraceLayer() const
MissingFrame opMissingFrame(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool getDosmooth() const
void setCorner(fpreal64 val)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
fpreal64 getLod() const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static int version()
fpreal64 getBoundaryvalue() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
bool operator!=(const SOP_TraceParms &src) const
Boundary getBoundary() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setS(UT_Vector2D val)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
bool operator==(const SOP_TraceParms &src) const
fpreal64 opCorner(const SOP_NodeVerb::CookParms &cookparms) const
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
fpreal64 opCopframe(const SOP_NodeVerb::CookParms &cookparms) const
int64 opUsecop(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
void setBordwidth(int64 val)
const UT_StringHolder & getCopalpha() const
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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, int64 &v)
GLboolean r
Definition: glcorearb.h:1222
bool opOverridesize(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setCopframe(fpreal64 val)
type
Definition: core.h:1059
int64 getBordwidth() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
UT_StringHolder opFile(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setConvpoly(bool val)
fpreal64 opThresh(const SOP_NodeVerb::CookParms &cookparms) const
struct IMF_EXPORT_TYPE Channel
Definition: ImfForward.h:24
bool getDoresample() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
const UT_StringHolder & getCoppath() const
fpreal64 opLod(const SOP_NodeVerb::CookParms &cookparms) const
void setDelborder(bool val)
void copyFrom(const OP_NodeParms *src) override
bool getDelborder() const
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
bool load(UT_IStream &is)
fpreal64 getThresh() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
void setT(UT_Vector3D val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool opDelborder(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getFile() const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool getConvpoly() const
UT_Vector2I getImagesize() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override