HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_IsoOffsetParms.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myOutput = 1;
32  myMode = 0;
33  myUniformSamples = 4;
34  myDivs = 10;
35  mySampleDiv = 10;
36  myDivSize = 0.1;
37  myOverrideOutput = false;
38  myIsoDiv = 10;
39  myPadBounds = false;
40  myOverrideBounds = false;
41  myMin = -1;
42  myMax = 0;
43  myTol = 0.001;
44  myOffset = 0;
45  myLaserScan = true;
46  myFixSigns = true;
47  myForceBounds = true;
48  myInvert = false;
49  myNumNeighbour = 1;
50  mySweepCount = 3;
51  mySweepThreshold = 2;
52  myTetraType = 0;
53  myFileMode = 3;
54  myFileName = "./sdf$F4.simdata"_UTsh;
55  myName = ""_UTsh;
56  myBuildPolySoup = false;
57 
58  }
59 
60  explicit SOP_IsoOffsetParms(const SOP_IsoOffsetParms &) = default;
62  SOP_IsoOffsetParms(SOP_IsoOffsetParms &&) noexcept = default;
63  SOP_IsoOffsetParms &operator=(SOP_IsoOffsetParms &&) noexcept = default;
64 
65  ~SOP_IsoOffsetParms() override {}
66 
67  bool operator==(const SOP_IsoOffsetParms &src) const
68  {
69  if (myOutput != src.myOutput) return false;
70  if (myMode != src.myMode) return false;
71  if (myUniformSamples != src.myUniformSamples) return false;
72  if (myDivs != src.myDivs) return false;
73  if (mySampleDiv != src.mySampleDiv) return false;
74  if (myDivSize != src.myDivSize) return false;
75  if (myOverrideOutput != src.myOverrideOutput) return false;
76  if (myIsoDiv != src.myIsoDiv) return false;
77  if (myPadBounds != src.myPadBounds) return false;
78  if (myOverrideBounds != src.myOverrideBounds) return false;
79  if (myMin != src.myMin) return false;
80  if (myMax != src.myMax) return false;
81  if (myTol != src.myTol) return false;
82  if (myOffset != src.myOffset) return false;
83  if (myLaserScan != src.myLaserScan) return false;
84  if (myFixSigns != src.myFixSigns) return false;
85  if (myForceBounds != src.myForceBounds) return false;
86  if (myInvert != src.myInvert) return false;
87  if (myNumNeighbour != src.myNumNeighbour) return false;
88  if (mySweepCount != src.mySweepCount) return false;
89  if (mySweepThreshold != src.mySweepThreshold) return false;
90  if (myTetraType != src.myTetraType) return false;
91  if (myFileMode != src.myFileMode) return false;
92  if (myFileName != src.myFileName) return false;
93  if (myName != src.myName) return false;
94  if (myBuildPolySoup != src.myBuildPolySoup) return false;
95 
96  return true;
97  }
98  bool operator!=(const SOP_IsoOffsetParms &src) const
99  {
100  return !operator==(src);
101  }
102 
103 
104 
105  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
106  {
107  myOutput = 1;
108  if (true)
109  graph->evalOpParm(myOutput, nodeidx, "output", time, 0);
110  myMode = 0;
111  if (true)
112  graph->evalOpParm(myMode, nodeidx, "mode", time, 0);
113  myUniformSamples = 4;
114  if (true)
115  graph->evalOpParm(myUniformSamples, nodeidx, "uniformsamples", time, 0);
116  myDivs = 10;
117  if (true)
118  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
119  mySampleDiv = 10;
120  if (true)
121  graph->evalOpParm(mySampleDiv, nodeidx, "samplediv", time, 0);
122  myDivSize = 0.1;
123  if (true)
124  graph->evalOpParm(myDivSize, nodeidx, "divsize", time, 0);
125  myOverrideOutput = false;
126  if (true)
127  graph->evalOpParm(myOverrideOutput, nodeidx, "overrideoutput", time, 0);
128  myIsoDiv = 10;
129  if (true)
130  graph->evalOpParm(myIsoDiv, nodeidx, "isodiv", time, 0);
131  myPadBounds = false;
132  if (true)
133  graph->evalOpParm(myPadBounds, nodeidx, "padbounds", time, 0);
134  myOverrideBounds = false;
135  if (true)
136  graph->evalOpParm(myOverrideBounds, nodeidx, "overridebounds", time, 0);
137  myMin = -1;
138  if (true)
139  graph->evalOpParm(myMin, nodeidx, "min", time, 0);
140  myMax = 0;
141  if (true)
142  graph->evalOpParm(myMax, nodeidx, "max", time, 0);
143  myTol = 0.001;
144  if (true)
145  graph->evalOpParm(myTol, nodeidx, "tol", time, 0);
146  myOffset = 0;
147  if (true)
148  graph->evalOpParm(myOffset, nodeidx, "offset", time, 0);
149  myLaserScan = true;
150  if (true)
151  graph->evalOpParm(myLaserScan, nodeidx, "laserscan", time, 0);
152  myFixSigns = true;
153  if (true)
154  graph->evalOpParm(myFixSigns, nodeidx, "fixsigns", time, 0);
155  myForceBounds = true;
156  if (true)
157  graph->evalOpParm(myForceBounds, nodeidx, "forcebounds", time, 0);
158  myInvert = false;
159  if (true)
160  graph->evalOpParm(myInvert, nodeidx, "invert", time, 0);
161  myNumNeighbour = 1;
162  if (true)
163  graph->evalOpParm(myNumNeighbour, nodeidx, "numneighbour", time, 0);
164  mySweepCount = 3;
165  if (true)
166  graph->evalOpParm(mySweepCount, nodeidx, "sweepcount", time, 0);
167  mySweepThreshold = 2;
168  if (true)
169  graph->evalOpParm(mySweepThreshold, nodeidx, "sweepalpha", time, 0);
170  myTetraType = 0;
171  if (true)
172  graph->evalOpParm(myTetraType, nodeidx, "tetratype", time, 0);
173  myFileMode = 3;
174  if (true)
175  graph->evalOpParm(myFileMode, nodeidx, "filemode", time, 0);
176  myFileName = "./sdf$F4.simdata"_UTsh;
177  if (true && ( (getFileMode()!=3) ) )
178  graph->evalOpParm(myFileName, nodeidx, "filename", time, 0);
179  myName = ""_UTsh;
180  if (true)
181  graph->evalOpParm(myName, nodeidx, "name", time, 0);
182  myBuildPolySoup = false;
183  if (true)
184  graph->evalOpParm(myBuildPolySoup, nodeidx, "buildpolysoup", time, 0);
185 
186  }
187 
188 
189  void loadFromOpSubclass(const LoadParms &loadparms) override
190  {
191  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
192  }
193 
194 
195  void copyFrom(const OP_NodeParms *src) override
196  {
197  *this = *((const SOP_IsoOffsetParms *)src);
198  }
199 
200  template <typename T>
201  void
202  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
203  {
204  if (idx.size() < 1)
205  return;
206  UT_ASSERT(idx.size() == instance.size()+1);
207  if (idx.size() != instance.size()+1)
208  return;
209  switch (idx[0])
210  {
211  case 0:
212  coerceValue(value, myOutput);
213  break;
214  case 1:
215  coerceValue(value, myMode);
216  break;
217  case 2:
218  coerceValue(value, myUniformSamples);
219  break;
220  case 3:
221  coerceValue(value, myDivs);
222  break;
223  case 4:
224  coerceValue(value, mySampleDiv);
225  break;
226  case 5:
227  coerceValue(value, myDivSize);
228  break;
229  case 6:
230  coerceValue(value, myOverrideOutput);
231  break;
232  case 7:
233  coerceValue(value, myIsoDiv);
234  break;
235  case 8:
236  coerceValue(value, myPadBounds);
237  break;
238  case 9:
239  coerceValue(value, myOverrideBounds);
240  break;
241  case 10:
242  coerceValue(value, myMin);
243  break;
244  case 11:
245  coerceValue(value, myMax);
246  break;
247  case 12:
248  coerceValue(value, myTol);
249  break;
250  case 13:
251  coerceValue(value, myOffset);
252  break;
253  case 14:
254  coerceValue(value, myLaserScan);
255  break;
256  case 15:
257  coerceValue(value, myFixSigns);
258  break;
259  case 16:
260  coerceValue(value, myForceBounds);
261  break;
262  case 17:
263  coerceValue(value, myInvert);
264  break;
265  case 18:
266  coerceValue(value, myNumNeighbour);
267  break;
268  case 19:
269  coerceValue(value, mySweepCount);
270  break;
271  case 20:
272  coerceValue(value, mySweepThreshold);
273  break;
274  case 21:
275  coerceValue(value, myTetraType);
276  break;
277  case 22:
278  coerceValue(value, myFileMode);
279  break;
280  case 23:
281  coerceValue(value, myFileName);
282  break;
283  case 24:
284  coerceValue(value, myName);
285  break;
286  case 25:
287  coerceValue(value, myBuildPolySoup);
288  break;
289 
290  }
291  }
292 
293  bool isParmColorRamp(exint idx) const override
294  {
295  switch (idx)
296  {
297 
298  }
299  return false;
300  }
301 
302  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
303  { doGetParmValue(idx, instance, value); }
304  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
305  { doGetParmValue(idx, instance, value); }
306  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
307  { doGetParmValue(idx, instance, value); }
308  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
309  { doGetParmValue(idx, instance, value); }
310  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
311  { doGetParmValue(idx, instance, value); }
312  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
313  { doGetParmValue(idx, instance, value); }
314  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
315  { doGetParmValue(idx, instance, value); }
316  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
317  { doGetParmValue(idx, instance, value); }
318  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
319  { doGetParmValue(idx, instance, value); }
320  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
321  { doGetParmValue(idx, instance, value); }
322  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
323  { doGetParmValue(idx, instance, value); }
324 
325  template <typename T>
326  void
327  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
328  {
329  if (idx.size() < 1)
330  return;
331  UT_ASSERT(idx.size() == instance.size()+1);
332  if (idx.size() != instance.size()+1)
333  return;
334  switch (idx[0])
335  {
336  case 0:
337  coerceValue(myOutput, ( ( value ) ));
338  break;
339  case 1:
340  coerceValue(myMode, ( ( value ) ));
341  break;
342  case 2:
343  coerceValue(myUniformSamples, ( ( value ) ));
344  break;
345  case 3:
346  coerceValue(myDivs, ( ( value ) ));
347  break;
348  case 4:
349  coerceValue(mySampleDiv, ( ( value ) ));
350  break;
351  case 5:
352  coerceValue(myDivSize, ( ( value ) ));
353  break;
354  case 6:
355  coerceValue(myOverrideOutput, ( ( value ) ));
356  break;
357  case 7:
358  coerceValue(myIsoDiv, ( ( value ) ));
359  break;
360  case 8:
361  coerceValue(myPadBounds, ( ( value ) ));
362  break;
363  case 9:
364  coerceValue(myOverrideBounds, ( ( value ) ));
365  break;
366  case 10:
367  coerceValue(myMin, ( ( value ) ));
368  break;
369  case 11:
370  coerceValue(myMax, ( ( value ) ));
371  break;
372  case 12:
373  coerceValue(myTol, ( ( value ) ));
374  break;
375  case 13:
376  coerceValue(myOffset, ( ( value ) ));
377  break;
378  case 14:
379  coerceValue(myLaserScan, ( ( value ) ));
380  break;
381  case 15:
382  coerceValue(myFixSigns, ( ( value ) ));
383  break;
384  case 16:
385  coerceValue(myForceBounds, ( ( value ) ));
386  break;
387  case 17:
388  coerceValue(myInvert, ( ( value ) ));
389  break;
390  case 18:
391  coerceValue(myNumNeighbour, ( ( value ) ));
392  break;
393  case 19:
394  coerceValue(mySweepCount, ( ( value ) ));
395  break;
396  case 20:
397  coerceValue(mySweepThreshold, ( ( value ) ));
398  break;
399  case 21:
400  coerceValue(myTetraType, ( ( value ) ));
401  break;
402  case 22:
403  coerceValue(myFileMode, ( ( value ) ));
404  break;
405  case 23:
406  coerceValue(myFileName, ( ( value ) ));
407  break;
408  case 24:
409  coerceValue(myName, ( ( value ) ));
410  break;
411  case 25:
412  coerceValue(myBuildPolySoup, ( ( value ) ));
413  break;
414 
415  }
416  }
417 
418  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
419  { doSetParmValue(idx, instance, value); }
420  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
421  { doSetParmValue(idx, instance, value); }
422  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
423  { doSetParmValue(idx, instance, value); }
424  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
425  { doSetParmValue(idx, instance, value); }
426  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
427  { doSetParmValue(idx, instance, value); }
428  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
429  { doSetParmValue(idx, instance, value); }
430  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
431  { doSetParmValue(idx, instance, value); }
432  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
433  { doSetParmValue(idx, instance, value); }
434  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
435  { doSetParmValue(idx, instance, value); }
436  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
437  { doSetParmValue(idx, instance, value); }
438  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
439  { doSetParmValue(idx, instance, value); }
440 
441  exint getNestNumParms(TempIndex idx) const override
442  {
443  if (idx.size() == 0)
444  return 26;
445  switch (idx[0])
446  {
447 
448  }
449  // Invalid
450  return 0;
451  }
452 
453  const char *getNestParmName(TempIndex fieldnum) const override
454  {
455  if (fieldnum.size() < 1)
456  return 0;
457  switch (fieldnum[0])
458  {
459  case 0:
460  return "output";
461  case 1:
462  return "mode";
463  case 2:
464  return "uniformsamples";
465  case 3:
466  return "divs";
467  case 4:
468  return "samplediv";
469  case 5:
470  return "divsize";
471  case 6:
472  return "overrideoutput";
473  case 7:
474  return "isodiv";
475  case 8:
476  return "padbounds";
477  case 9:
478  return "overridebounds";
479  case 10:
480  return "min";
481  case 11:
482  return "max";
483  case 12:
484  return "tol";
485  case 13:
486  return "offset";
487  case 14:
488  return "laserscan";
489  case 15:
490  return "fixsigns";
491  case 16:
492  return "forcebounds";
493  case 17:
494  return "invert";
495  case 18:
496  return "numneighbour";
497  case 19:
498  return "sweepcount";
499  case 20:
500  return "sweepalpha";
501  case 21:
502  return "tetratype";
503  case 22:
504  return "filemode";
505  case 23:
506  return "filename";
507  case 24:
508  return "name";
509  case 25:
510  return "buildpolysoup";
511 
512  }
513  return 0;
514  }
515 
516  ParmType getNestParmType(TempIndex fieldnum) const override
517  {
518  if (fieldnum.size() < 1)
519  return PARM_UNSUPPORTED;
520  switch (fieldnum[0])
521  {
522  case 0:
523  return PARM_INTEGER;
524  case 1:
525  return PARM_INTEGER;
526  case 2:
527  return PARM_INTEGER;
528  case 3:
529  return PARM_VECTOR3;
530  case 4:
531  return PARM_INTEGER;
532  case 5:
533  return PARM_FLOAT;
534  case 6:
535  return PARM_INTEGER;
536  case 7:
537  return PARM_VECTOR3;
538  case 8:
539  return PARM_INTEGER;
540  case 9:
541  return PARM_INTEGER;
542  case 10:
543  return PARM_VECTOR3;
544  case 11:
545  return PARM_VECTOR3;
546  case 12:
547  return PARM_FLOAT;
548  case 13:
549  return PARM_FLOAT;
550  case 14:
551  return PARM_INTEGER;
552  case 15:
553  return PARM_INTEGER;
554  case 16:
555  return PARM_INTEGER;
556  case 17:
557  return PARM_INTEGER;
558  case 18:
559  return PARM_INTEGER;
560  case 19:
561  return PARM_INTEGER;
562  case 20:
563  return PARM_INTEGER;
564  case 21:
565  return PARM_INTEGER;
566  case 22:
567  return PARM_INTEGER;
568  case 23:
569  return PARM_STRING;
570  case 24:
571  return PARM_STRING;
572  case 25:
573  return PARM_INTEGER;
574 
575  }
576  return PARM_UNSUPPORTED;
577  }
578 
579  // Boiler plate to load individual types.
580  static void loadData(UT_IStream &is, int64 &v)
581  { is.bread(&v, 1); }
582  static void loadData(UT_IStream &is, bool &v)
583  { int64 iv; is.bread(&iv, 1); v = iv; }
584  static void loadData(UT_IStream &is, fpreal64 &v)
585  { is.bread<fpreal64>(&v, 1); }
586  static void loadData(UT_IStream &is, UT_Vector2D &v)
587  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
588  static void loadData(UT_IStream &is, UT_Vector3D &v)
589  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
590  is.bread<fpreal64>(&v.z(), 1); }
591  static void loadData(UT_IStream &is, UT_Vector4D &v)
592  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
593  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
594  static void loadData(UT_IStream &is, UT_Matrix2D &v)
595  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
596  static void loadData(UT_IStream &is, UT_Matrix3D &v)
597  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
598  static void loadData(UT_IStream &is, UT_Matrix4D &v)
599  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
600  static void loadData(UT_IStream &is, UT_Vector2I &v)
601  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
602  static void loadData(UT_IStream &is, UT_Vector3I &v)
603  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
604  is.bread<int64>(&v.z(), 1); }
605  static void loadData(UT_IStream &is, UT_Vector4I &v)
606  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
607  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
609  { is.bread(v); }
611  { UT_StringHolder rampdata;
612  loadData(is, rampdata);
613  if (rampdata.isstring())
614  {
615  v.reset(new UT_Ramp());
616  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
617  v->load(istr);
618  }
619  else v.reset();
620  }
623  loadData(is, data);
624  if (data.isstring())
625  {
626  // Find the data type.
627  const char *colon = UT_StringWrap(data).findChar(':');
628  if (colon)
629  {
630  int typelen = colon - data.buffer();
632  type.strncpy(data.buffer(), typelen);
633  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
634 
635  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
636  }
637  }
638  else v.reset();
639  }
640 
641  static void saveData(std::ostream &os, int64 v)
642  { UTwrite(os, &v); }
643  static void saveData(std::ostream &os, bool v)
644  { int64 iv = v; UTwrite(os, &iv); }
645  static void saveData(std::ostream &os, fpreal64 v)
646  { UTwrite<fpreal64>(os, &v); }
647  static void saveData(std::ostream &os, UT_Vector2D v)
648  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
649  static void saveData(std::ostream &os, UT_Vector3D v)
650  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
651  UTwrite<fpreal64>(os, &v.z()); }
652  static void saveData(std::ostream &os, UT_Vector4D v)
653  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
654  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
655  static void saveData(std::ostream &os, UT_Matrix2D v)
657  static void saveData(std::ostream &os, UT_Matrix3D v)
659  static void saveData(std::ostream &os, UT_Matrix4D v)
661  static void saveData(std::ostream &os, UT_StringHolder s)
662  { UT_StringWrap(s).saveBinary(os); }
663  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
665  UT_OStringStream ostr;
666  if (s) s->save(ostr);
667  result = ostr.str();
668  saveData(os, result);
669  }
670  static void saveData(std::ostream &os, PRM_DataItemHandle s)
672  UT_OStringStream ostr;
673  if (s)
674  {
675  ostr << s->getDataTypeToken();
676  ostr << ":";
677  s->saveBinary(ostr);
678  }
679  result = ostr.str();
680  saveData(os, result);
681  }
682 
683 
684  void save(std::ostream &os) const
685  {
686  int32 v = version();
687  UTwrite(os, &v);
688  saveData(os, myOutput);
689  saveData(os, myMode);
690  saveData(os, myUniformSamples);
691  saveData(os, myDivs);
692  saveData(os, mySampleDiv);
693  saveData(os, myDivSize);
694  saveData(os, myOverrideOutput);
695  saveData(os, myIsoDiv);
696  saveData(os, myPadBounds);
697  saveData(os, myOverrideBounds);
698  saveData(os, myMin);
699  saveData(os, myMax);
700  saveData(os, myTol);
701  saveData(os, myOffset);
702  saveData(os, myLaserScan);
703  saveData(os, myFixSigns);
704  saveData(os, myForceBounds);
705  saveData(os, myInvert);
706  saveData(os, myNumNeighbour);
707  saveData(os, mySweepCount);
708  saveData(os, mySweepThreshold);
709  saveData(os, myTetraType);
710  saveData(os, myFileMode);
711  saveData(os, myFileName);
712  saveData(os, myName);
713  saveData(os, myBuildPolySoup);
714 
715  }
716 
717  bool load(UT_IStream &is)
718  {
719  int32 v;
720  is.bread(&v, 1);
721  if (version() != v)
722  {
723  // Fail incompatible versions
724  return false;
725  }
726  loadData(is, myOutput);
727  loadData(is, myMode);
728  loadData(is, myUniformSamples);
729  loadData(is, myDivs);
730  loadData(is, mySampleDiv);
731  loadData(is, myDivSize);
732  loadData(is, myOverrideOutput);
733  loadData(is, myIsoDiv);
734  loadData(is, myPadBounds);
735  loadData(is, myOverrideBounds);
736  loadData(is, myMin);
737  loadData(is, myMax);
738  loadData(is, myTol);
739  loadData(is, myOffset);
740  loadData(is, myLaserScan);
741  loadData(is, myFixSigns);
742  loadData(is, myForceBounds);
743  loadData(is, myInvert);
744  loadData(is, myNumNeighbour);
745  loadData(is, mySweepCount);
746  loadData(is, mySweepThreshold);
747  loadData(is, myTetraType);
748  loadData(is, myFileMode);
749  loadData(is, myFileName);
750  loadData(is, myName);
751  loadData(is, myBuildPolySoup);
752 
753  return true;
754  }
755 
756  int64 getOutput() const { return myOutput; }
757  void setOutput(int64 val) { myOutput = val; }
758  int64 opOutput(const SOP_NodeVerb::CookParms &cookparms) const
759  {
760  SOP_Node *thissop = cookparms.getNode();
761  if (!thissop) return getOutput();
762  int64 result;
763  OP_Utils::evalOpParm(result, thissop, "output", cookparms.getCookTime(), 0);
764  return result;
765  }
766  int64 getMode() const { return myMode; }
767  void setMode(int64 val) { myMode = val; }
768  int64 opMode(const SOP_NodeVerb::CookParms &cookparms) const
769  {
770  SOP_Node *thissop = cookparms.getNode();
771  if (!thissop) return getMode();
772  int64 result;
773  OP_Utils::evalOpParm(result, thissop, "mode", cookparms.getCookTime(), 0);
774  return result;
775  }
776  int64 getUniformSamples() const { return myUniformSamples; }
777  void setUniformSamples(int64 val) { myUniformSamples = val; }
779  {
780  SOP_Node *thissop = cookparms.getNode();
781  if (!thissop) return getUniformSamples();
782  int64 result;
783  OP_Utils::evalOpParm(result, thissop, "uniformsamples", cookparms.getCookTime(), 0);
784  return result;
785  }
786  UT_Vector3I getDivs() const { return myDivs; }
787  void setDivs(UT_Vector3I val) { myDivs = val; }
789  {
790  SOP_Node *thissop = cookparms.getNode();
791  if (!thissop) return getDivs();
793  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
794  return result;
795  }
796  int64 getSampleDiv() const { return mySampleDiv; }
797  void setSampleDiv(int64 val) { mySampleDiv = val; }
798  int64 opSampleDiv(const SOP_NodeVerb::CookParms &cookparms) const
799  {
800  SOP_Node *thissop = cookparms.getNode();
801  if (!thissop) return getSampleDiv();
802  int64 result;
803  OP_Utils::evalOpParm(result, thissop, "samplediv", cookparms.getCookTime(), 0);
804  return result;
805  }
806  fpreal64 getDivSize() const { return myDivSize; }
807  void setDivSize(fpreal64 val) { myDivSize = val; }
809  {
810  SOP_Node *thissop = cookparms.getNode();
811  if (!thissop) return getDivSize();
813  OP_Utils::evalOpParm(result, thissop, "divsize", cookparms.getCookTime(), 0);
814  return result;
815  }
816  bool getOverrideOutput() const { return myOverrideOutput; }
817  void setOverrideOutput(bool val) { myOverrideOutput = val; }
818  bool opOverrideOutput(const SOP_NodeVerb::CookParms &cookparms) const
819  {
820  SOP_Node *thissop = cookparms.getNode();
821  if (!thissop) return getOverrideOutput();
822  bool result;
823  OP_Utils::evalOpParm(result, thissop, "overrideoutput", cookparms.getCookTime(), 0);
824  return result;
825  }
826  UT_Vector3I getIsoDiv() const { return myIsoDiv; }
827  void setIsoDiv(UT_Vector3I val) { myIsoDiv = val; }
829  {
830  SOP_Node *thissop = cookparms.getNode();
831  if (!thissop) return getIsoDiv();
833  OP_Utils::evalOpParm(result, thissop, "isodiv", cookparms.getCookTime(), 0);
834  return result;
835  }
836  bool getPadBounds() const { return myPadBounds; }
837  void setPadBounds(bool val) { myPadBounds = val; }
838  bool opPadBounds(const SOP_NodeVerb::CookParms &cookparms) const
839  {
840  SOP_Node *thissop = cookparms.getNode();
841  if (!thissop) return getPadBounds();
842  bool result;
843  OP_Utils::evalOpParm(result, thissop, "padbounds", cookparms.getCookTime(), 0);
844  return result;
845  }
846  bool getOverrideBounds() const { return myOverrideBounds; }
847  void setOverrideBounds(bool val) { myOverrideBounds = val; }
848  bool opOverrideBounds(const SOP_NodeVerb::CookParms &cookparms) const
849  {
850  SOP_Node *thissop = cookparms.getNode();
851  if (!thissop) return getOverrideBounds();
852  bool result;
853  OP_Utils::evalOpParm(result, thissop, "overridebounds", cookparms.getCookTime(), 0);
854  return result;
855  }
856  UT_Vector3D getMin() const { return myMin; }
857  void setMin(UT_Vector3D val) { myMin = val; }
858  UT_Vector3D opMin(const SOP_NodeVerb::CookParms &cookparms) const
859  {
860  SOP_Node *thissop = cookparms.getNode();
861  if (!thissop) return getMin();
863  OP_Utils::evalOpParm(result, thissop, "min", cookparms.getCookTime(), 0);
864  return result;
865  }
866  UT_Vector3D getMax() const { return myMax; }
867  void setMax(UT_Vector3D val) { myMax = val; }
868  UT_Vector3D opMax(const SOP_NodeVerb::CookParms &cookparms) const
869  {
870  SOP_Node *thissop = cookparms.getNode();
871  if (!thissop) return getMax();
873  OP_Utils::evalOpParm(result, thissop, "max", cookparms.getCookTime(), 0);
874  return result;
875  }
876  fpreal64 getTol() const { return myTol; }
877  void setTol(fpreal64 val) { myTol = val; }
878  fpreal64 opTol(const SOP_NodeVerb::CookParms &cookparms) const
879  {
880  SOP_Node *thissop = cookparms.getNode();
881  if (!thissop) return getTol();
883  OP_Utils::evalOpParm(result, thissop, "tol", cookparms.getCookTime(), 0);
884  return result;
885  }
886  fpreal64 getOffset() const { return myOffset; }
887  void setOffset(fpreal64 val) { myOffset = val; }
888  fpreal64 opOffset(const SOP_NodeVerb::CookParms &cookparms) const
889  {
890  SOP_Node *thissop = cookparms.getNode();
891  if (!thissop) return getOffset();
893  OP_Utils::evalOpParm(result, thissop, "offset", cookparms.getCookTime(), 0);
894  return result;
895  }
896  bool getLaserScan() const { return myLaserScan; }
897  void setLaserScan(bool val) { myLaserScan = val; }
898  bool opLaserScan(const SOP_NodeVerb::CookParms &cookparms) const
899  {
900  SOP_Node *thissop = cookparms.getNode();
901  if (!thissop) return getLaserScan();
902  bool result;
903  OP_Utils::evalOpParm(result, thissop, "laserscan", cookparms.getCookTime(), 0);
904  return result;
905  }
906  bool getFixSigns() const { return myFixSigns; }
907  void setFixSigns(bool val) { myFixSigns = val; }
908  bool opFixSigns(const SOP_NodeVerb::CookParms &cookparms) const
909  {
910  SOP_Node *thissop = cookparms.getNode();
911  if (!thissop) return getFixSigns();
912  bool result;
913  OP_Utils::evalOpParm(result, thissop, "fixsigns", cookparms.getCookTime(), 0);
914  return result;
915  }
916  bool getForceBounds() const { return myForceBounds; }
917  void setForceBounds(bool val) { myForceBounds = val; }
918  bool opForceBounds(const SOP_NodeVerb::CookParms &cookparms) const
919  {
920  SOP_Node *thissop = cookparms.getNode();
921  if (!thissop) return getForceBounds();
922  bool result;
923  OP_Utils::evalOpParm(result, thissop, "forcebounds", cookparms.getCookTime(), 0);
924  return result;
925  }
926  bool getInvert() const { return myInvert; }
927  void setInvert(bool val) { myInvert = val; }
928  bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
929  {
930  SOP_Node *thissop = cookparms.getNode();
931  if (!thissop) return getInvert();
932  bool result;
933  OP_Utils::evalOpParm(result, thissop, "invert", cookparms.getCookTime(), 0);
934  return result;
935  }
936  int64 getNumNeighbour() const { return myNumNeighbour; }
937  void setNumNeighbour(int64 val) { myNumNeighbour = val; }
939  {
940  SOP_Node *thissop = cookparms.getNode();
941  if (!thissop) return getNumNeighbour();
942  int64 result;
943  OP_Utils::evalOpParm(result, thissop, "numneighbour", cookparms.getCookTime(), 0);
944  return result;
945  }
946  int64 getSweepCount() const { return mySweepCount; }
947  void setSweepCount(int64 val) { mySweepCount = val; }
949  {
950  SOP_Node *thissop = cookparms.getNode();
951  if (!thissop) return getSweepCount();
952  int64 result;
953  OP_Utils::evalOpParm(result, thissop, "sweepcount", cookparms.getCookTime(), 0);
954  return result;
955  }
956  int64 getSweepThreshold() const { return mySweepThreshold; }
957  void setSweepThreshold(int64 val) { mySweepThreshold = val; }
959  {
960  SOP_Node *thissop = cookparms.getNode();
961  if (!thissop) return getSweepThreshold();
962  int64 result;
963  OP_Utils::evalOpParm(result, thissop, "sweepalpha", cookparms.getCookTime(), 0);
964  return result;
965  }
966  int64 getTetraType() const { return myTetraType; }
967  void setTetraType(int64 val) { myTetraType = val; }
968  int64 opTetraType(const SOP_NodeVerb::CookParms &cookparms) const
969  {
970  SOP_Node *thissop = cookparms.getNode();
971  if (!thissop) return getTetraType();
972  int64 result;
973  OP_Utils::evalOpParm(result, thissop, "tetratype", cookparms.getCookTime(), 0);
974  return result;
975  }
976  int64 getFileMode() const { return myFileMode; }
977  void setFileMode(int64 val) { myFileMode = val; }
978  int64 opFileMode(const SOP_NodeVerb::CookParms &cookparms) const
979  {
980  SOP_Node *thissop = cookparms.getNode();
981  if (!thissop) return getFileMode();
982  int64 result;
983  OP_Utils::evalOpParm(result, thissop, "filemode", cookparms.getCookTime(), 0);
984  return result;
985  }
986  const UT_StringHolder & getFileName() const { return myFileName; }
987  void setFileName(const UT_StringHolder & val) { myFileName = val; }
989  {
990  SOP_Node *thissop = cookparms.getNode();
991  if (!thissop) return getFileName();
993  OP_Utils::evalOpParm(result, thissop, "filename", cookparms.getCookTime(), 0);
994  return result;
995  }
996  const UT_StringHolder & getName() const { return myName; }
997  void setName(const UT_StringHolder & val) { myName = val; }
999  {
1000  SOP_Node *thissop = cookparms.getNode();
1001  if (!thissop) return getName();
1003  OP_Utils::evalOpParm(result, thissop, "name", cookparms.getCookTime(), 0);
1004  return result;
1005  }
1006  bool getBuildPolySoup() const { return myBuildPolySoup; }
1007  void setBuildPolySoup(bool val) { myBuildPolySoup = val; }
1008  bool opBuildPolySoup(const SOP_NodeVerb::CookParms &cookparms) const
1009  {
1010  SOP_Node *thissop = cookparms.getNode();
1011  if (!thissop) return getBuildPolySoup();
1012  bool result;
1013  OP_Utils::evalOpParm(result, thissop, "buildpolysoup", cookparms.getCookTime(), 0);
1014  return result;
1015  }
1016 
1017 private:
1018  int64 myOutput;
1019  int64 myMode;
1020  int64 myUniformSamples;
1021  UT_Vector3I myDivs;
1022  int64 mySampleDiv;
1023  fpreal64 myDivSize;
1024  bool myOverrideOutput;
1025  UT_Vector3I myIsoDiv;
1026  bool myPadBounds;
1027  bool myOverrideBounds;
1028  UT_Vector3D myMin;
1029  UT_Vector3D myMax;
1030  fpreal64 myTol;
1031  fpreal64 myOffset;
1032  bool myLaserScan;
1033  bool myFixSigns;
1034  bool myForceBounds;
1035  bool myInvert;
1036  int64 myNumNeighbour;
1037  int64 mySweepCount;
1038  int64 mySweepThreshold;
1039  int64 myTetraType;
1040  int64 myFileMode;
1041  UT_StringHolder myFileName;
1042  UT_StringHolder myName;
1043  bool myBuildPolySoup;
1044 
1045 };
int64 opUniformSamples(const SOP_NodeVerb::CookParms &cookparms) const
bool opForceBounds(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_Vector4D v)
void setOffset(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool opOverrideOutput(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
bool operator!=(const SOP_IsoOffsetParms &src) const
bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
const UT_StringHolder & getName() const
void setIsoDiv(UT_Vector3I val)
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
static void loadData(UT_IStream &is, UT_Vector3D &v)
fpreal getTime() const
Definition: OP_Context.h:62
void setMin(UT_Vector3D val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
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
SYS_FORCE_INLINE const char * buffer() const
int64 opFileMode(const SOP_NodeVerb::CookParms &cookparms) const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLdouble s
Definition: glad.h:3009
fpreal64 opDivSize(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool load(UT_IStream &is)
int64 opMode(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
UT_Vector3I opIsoDiv(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_Matrix2D v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector2D v)
int64 opNumNeighbour(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_Vector3D getMax() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
UT_Vector3I getDivs() const
UT_StringHolder opFileName(const SOP_NodeVerb::CookParms &cookparms) const
bool opOverrideBounds(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_IsoOffsetParms &src) const
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, bool &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
UT_Vector3D opMin(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setDivs(UT_Vector3I val)
fpreal64 getDivSize() const
const UT_StringHolder & getFileName() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
exint length() const
void setDivSize(fpreal64 val)
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 saveData(std::ostream &os, PRM_DataItemHandle s)
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int64 opOutput(const SOP_NodeVerb::CookParms &cookparms) const
__hostdev__ bool getMax() const
Definition: NanoVDB.h:5747
bool isParmColorRamp(exint idx) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setName(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
long long int64
Definition: SYS_Types.h:116
UT_Vector3D getMin() const
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Vector4D &v)
UT_Vector3D opMax(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3I getIsoDiv() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setFileName(const UT_StringHolder &val)
void copyFrom(const OP_NodeParms *src) override
void setUniformSamples(int64 val)
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
int64 opSweepThreshold(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setMax(UT_Vector3D val)
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
fpreal64 opOffset(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opName(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool opBuildPolySoup(const SOP_NodeVerb::CookParms &cookparms) const
bool opPadBounds(const SOP_NodeVerb::CookParms &cookparms) const
void setSweepThreshold(int64 val)
fpreal64 fpreal
Definition: SYS_Types.h:277
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
__hostdev__ bool getMin() const
Definition: NanoVDB.h:5746
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
int64 opTetraType(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool opFixSigns(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void save(std::ostream &os) const
UT_Vector3I opDivs(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
bool opLaserScan(const SOP_NodeVerb::CookParms &cookparms) const
int64 opSampleDiv(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
fpreal64 opTol(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
static void saveData(std::ostream &os, int64 v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, fpreal64 v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
int64 opSweepCount(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663