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