HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeCompress.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_NodeVerb.h>
7 #include <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_VolumeCompressEnums
22 {
23  enum class Compression
24  {
25  NONE = 0,
26  COMPRESS,
27  UNCOMPRESS,
29  };
30  enum class Dither
31  {
32  NONE = 0,
33  ORDERED
34  };
35 }
36 
37 
39 {
40 public:
41  static int version() { return 1; }
42 
44  {
45  myGroup = ""_sh;
46  myCompression = 1;
47  myUpdateSettings = false;
48  myConstantTol = 0;
49  myQuantizeTol = 0;
50  myDither = 1;
51  myUseFP16 = false;
52  myMaskGroup = ""_sh;
53  myDoMaskMin = false;
54  myMaskMin = 0;
55  myDoMaskMax = false;
56  myMaskMax = 0;
57  myInvertMask = false;
58 
59  }
60 
61  explicit SOP_VolumeCompressParms(const SOP_VolumeCompressParms &) = default;
62 
64 
66  {
67  if (myGroup != src.myGroup) return false;
68  if (myCompression != src.myCompression) return false;
69  if (myUpdateSettings != src.myUpdateSettings) return false;
70  if (myConstantTol != src.myConstantTol) return false;
71  if (myQuantizeTol != src.myQuantizeTol) return false;
72  if (myDither != src.myDither) return false;
73  if (myUseFP16 != src.myUseFP16) return false;
74  if (myMaskGroup != src.myMaskGroup) return false;
75  if (myDoMaskMin != src.myDoMaskMin) return false;
76  if (myMaskMin != src.myMaskMin) return false;
77  if (myDoMaskMax != src.myDoMaskMax) return false;
78  if (myMaskMax != src.myMaskMax) return false;
79  if (myInvertMask != src.myInvertMask) return false;
80 
81  return true;
82  }
84  {
85  return !operator==(src);
86  }
89 
90 
91 
92  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
93  {
94  if (true)
95  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
96  else myGroup = ""_sh;
97  if (true)
98  OP_Utils::evalOpParm(myCompression, node, "compression", time, 0);
99  else myCompression = 1;
100  if (true)
101  OP_Utils::evalOpParm(myUpdateSettings, node, "updatesettings", time, 0);
102  else myUpdateSettings = false;
103  if (true && ( (!(((getUpdateSettings()==0)))) ) )
104  OP_Utils::evalOpParm(myConstantTol, node, "constanttol", time, 0);
105  else myConstantTol = 0;
106  if (true && ( (!(((getUpdateSettings()==0)))) ) )
107  OP_Utils::evalOpParm(myQuantizeTol, node, "quantizetol", time, 0);
108  else myQuantizeTol = 0;
109  if (true && ( (!(((getUpdateSettings()==0)))) ) )
110  OP_Utils::evalOpParm(myDither, node, "dither", time, 0);
111  else myDither = 1;
112  if (true && ( (!(((getUpdateSettings()==0)))) ) )
113  OP_Utils::evalOpParm(myUseFP16, node, "usefp16", time, 0);
114  else myUseFP16 = false;
115  if (true)
116  OP_Utils::evalOpParm(myMaskGroup, node, "maskgrp", time, 0);
117  else myMaskGroup = ""_sh;
118  if (true)
119  OP_Utils::evalOpParm(myDoMaskMin, node, "domaskmin", time, 0);
120  else myDoMaskMin = false;
121  if (true && ( (!(((getDoMaskMin()==0)))) ) )
122  OP_Utils::evalOpParm(myMaskMin, node, "maskmin", time, 0);
123  else myMaskMin = 0;
124  if (true)
125  OP_Utils::evalOpParm(myDoMaskMax, node, "domaskmax", time, 0);
126  else myDoMaskMax = false;
127  if (true && ( (!(((getDoMaskMax()==0)))) ) )
128  OP_Utils::evalOpParm(myMaskMax, node, "maskmax", time, 0);
129  else myMaskMax = 0;
130  if (true)
131  OP_Utils::evalOpParm(myInvertMask, node, "invertmask", time, 0);
132  else myInvertMask = false;
133 
134  }
135 
136 
137  virtual void loadFromOpSubclass(const LoadParms &loadparms)
138  {
139  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
140  }
141 
142 
143  virtual void copyFrom(const SOP_NodeParms *src)
144  {
145  *this = *((const SOP_VolumeCompressParms *)src);
146  }
147 
148  template <typename T>
149  void
150  doGetParmValue(exint idx, T &value) const
151  {
152  switch (idx)
153  {
154  case 0:
155  coerceValue(value, myGroup);
156  break;
157  case 1:
158  coerceValue(value, myCompression);
159  break;
160  case 2:
161  coerceValue(value, myUpdateSettings);
162  break;
163  case 3:
164  coerceValue(value, myConstantTol);
165  break;
166  case 4:
167  coerceValue(value, myQuantizeTol);
168  break;
169  case 5:
170  coerceValue(value, myDither);
171  break;
172  case 6:
173  coerceValue(value, myUseFP16);
174  break;
175  case 7:
176  coerceValue(value, myMaskGroup);
177  break;
178  case 8:
179  coerceValue(value, myDoMaskMin);
180  break;
181  case 9:
182  coerceValue(value, myMaskMin);
183  break;
184  case 10:
185  coerceValue(value, myDoMaskMax);
186  break;
187  case 11:
188  coerceValue(value, myMaskMax);
189  break;
190  case 12:
191  coerceValue(value, myInvertMask);
192  break;
193 
194  }
195  }
196 
197  void getParmValue(exint idx, exint &value) const
198  { doGetParmValue(idx, value); }
199  void getParmValue(exint idx, fpreal &value) const
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
204  { doGetParmValue(idx, value); }
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
210  { doGetParmValue(idx, value); }
212  { doGetParmValue(idx, value); }
214  { doGetParmValue(idx, value); }
216  { doGetParmValue(idx, value); }
218  { doGetParmValue(idx, value); }
219 
220  template <typename T>
221  void
222  doSetParmValue(exint idx, const T &value)
223  {
224  switch (idx)
225  {
226  case 0:
227  coerceValue(myGroup, value);
228  break;
229  case 1:
230  coerceValue(myCompression, value);
231  break;
232  case 2:
233  coerceValue(myUpdateSettings, value);
234  break;
235  case 3:
236  coerceValue(myConstantTol, value);
237  break;
238  case 4:
239  coerceValue(myQuantizeTol, value);
240  break;
241  case 5:
242  coerceValue(myDither, value);
243  break;
244  case 6:
245  coerceValue(myUseFP16, value);
246  break;
247  case 7:
248  coerceValue(myMaskGroup, value);
249  break;
250  case 8:
251  coerceValue(myDoMaskMin, value);
252  break;
253  case 9:
254  coerceValue(myMaskMin, value);
255  break;
256  case 10:
257  coerceValue(myDoMaskMax, value);
258  break;
259  case 11:
260  coerceValue(myMaskMax, value);
261  break;
262  case 12:
263  coerceValue(myInvertMask, value);
264  break;
265 
266  }
267  }
268 
269  void setParmValue(exint idx, const exint &value)
270  { doSetParmValue(idx, value); }
271  void setParmValue(exint idx, const fpreal &value)
272  { doSetParmValue(idx, value); }
273  void setParmValue(exint idx, const UT_Vector2D &value)
274  { doSetParmValue(idx, value); }
275  void setParmValue(exint idx, const UT_Vector3D &value)
276  { doSetParmValue(idx, value); }
277  void setParmValue(exint idx, const UT_Vector4D &value)
278  { doSetParmValue(idx, value); }
279  void setParmValue(exint idx, const UT_Matrix2D &value)
280  { doSetParmValue(idx, value); }
281  void setParmValue(exint idx, const UT_Matrix3D &value)
282  { doSetParmValue(idx, value); }
283  void setParmValue(exint idx, const UT_Matrix4D &value)
284  { doSetParmValue(idx, value); }
286  { doSetParmValue(idx, value); }
288  { doSetParmValue(idx, value); }
290  { doSetParmValue(idx, value); }
291 
292  virtual exint getNumParms() const
293  {
294  return 13;
295  }
296 
297  virtual const char *getParmName(exint fieldnum) const
298  {
299  switch (fieldnum)
300  {
301  case 0:
302  return "group";
303  case 1:
304  return "compression";
305  case 2:
306  return "updatesettings";
307  case 3:
308  return "constanttol";
309  case 4:
310  return "quantizetol";
311  case 5:
312  return "dither";
313  case 6:
314  return "usefp16";
315  case 7:
316  return "maskgrp";
317  case 8:
318  return "domaskmin";
319  case 9:
320  return "maskmin";
321  case 10:
322  return "domaskmax";
323  case 11:
324  return "maskmax";
325  case 12:
326  return "invertmask";
327 
328  }
329  return 0;
330  }
331 
332  virtual ParmType getParmType(exint fieldnum) const
333  {
334  switch (fieldnum)
335  {
336  case 0:
337  return PARM_STRING;
338  case 1:
339  return PARM_INTEGER;
340  case 2:
341  return PARM_INTEGER;
342  case 3:
343  return PARM_FLOAT;
344  case 4:
345  return PARM_FLOAT;
346  case 5:
347  return PARM_INTEGER;
348  case 6:
349  return PARM_INTEGER;
350  case 7:
351  return PARM_STRING;
352  case 8:
353  return PARM_INTEGER;
354  case 9:
355  return PARM_FLOAT;
356  case 10:
357  return PARM_INTEGER;
358  case 11:
359  return PARM_FLOAT;
360  case 12:
361  return PARM_INTEGER;
362 
363  }
364  return PARM_UNSUPPORTED;
365  }
366 
367  // Boiler plate to load individual types.
368  static void loadData(UT_IStream &is, int64 &v)
369  { is.bread(&v, 1); }
370  static void loadData(UT_IStream &is, bool &v)
371  { int64 iv; is.bread(&iv, 1); v = iv; }
372  static void loadData(UT_IStream &is, fpreal64 &v)
373  { is.bread<fpreal64>(&v, 1); }
374  static void loadData(UT_IStream &is, UT_Vector2D &v)
375  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector3D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector4D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
381  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
382  static void loadData(UT_IStream &is, UT_Matrix2D &v)
383  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
384  static void loadData(UT_IStream &is, UT_Matrix3D &v)
385  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
386  static void loadData(UT_IStream &is, UT_Matrix4D &v)
387  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
388  static void loadData(UT_IStream &is, UT_Vector2I &v)
389  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector3I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); }
393  static void loadData(UT_IStream &is, UT_Vector4I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
395  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
397  { is.bread(v); }
399  { UT_StringHolder rampdata;
400  loadData(is, rampdata);
401  if (rampdata.isstring())
402  {
403  v.reset(new UT_Ramp());
404  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
405  v->load(istr);
406  }
407  else v.reset();
408  }
411  loadData(is, data);
412  if (data.isstring())
413  {
414  // Find the data type.
415  char *colon = UT_StringWrap(data).findChar(':');
416  if (colon)
417  {
418  int typelen = colon - data.buffer();
420  type.strncpy(data.buffer(), typelen);
421  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
422 
423  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
424  }
425  }
426  else v.reset();
427  }
428 
429  static void saveData(std::ostream &os, int64 v)
430  { UTwrite(os, &v); }
431  static void saveData(std::ostream &os, bool v)
432  { int64 iv = v; UTwrite(os, &iv); }
433  static void saveData(std::ostream &os, fpreal64 v)
434  { UTwrite<fpreal64>(os, &v); }
435  static void saveData(std::ostream &os, UT_Vector2D v)
436  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
437  static void saveData(std::ostream &os, UT_Vector3D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); }
440  static void saveData(std::ostream &os, UT_Vector4D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
442  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
443  static void saveData(std::ostream &os, UT_Matrix2D v)
445  static void saveData(std::ostream &os, UT_Matrix3D v)
447  static void saveData(std::ostream &os, UT_Matrix4D v)
449  static void saveData(std::ostream &os, UT_StringHolder s)
450  { UT_StringWrap(s).saveBinary(os); }
451  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
452  { UT_StringHolder result;
453  UT_OStringStream ostr;
454  if (s) s->save(ostr);
455  result = ostr.str();
456  saveData(os, result);
457  }
458  static void saveData(std::ostream &os, PRM_DataItemHandle s)
459  { UT_StringHolder result;
460  UT_OStringStream ostr;
461  if (s)
462  {
463  ostr << s->getDataTypeToken();
464  ostr << ":";
465  s->saveBinary(ostr);
466  }
467  result = ostr.str();
468  saveData(os, result);
469  }
470 
471 
472  void save(std::ostream &os) const
473  {
474  int32 v = version();
475  UTwrite(os, &v);
476  saveData(os, myGroup);
477  saveData(os, myCompression);
478  saveData(os, myUpdateSettings);
479  saveData(os, myConstantTol);
480  saveData(os, myQuantizeTol);
481  saveData(os, myDither);
482  saveData(os, myUseFP16);
483  saveData(os, myMaskGroup);
484  saveData(os, myDoMaskMin);
485  saveData(os, myMaskMin);
486  saveData(os, myDoMaskMax);
487  saveData(os, myMaskMax);
488  saveData(os, myInvertMask);
489 
490  }
491 
492  bool load(UT_IStream &is)
493  {
494  int32 v;
495  is.bread(&v, 1);
496  if (version() != v)
497  {
498  // Fail incompatible versions
499  return false;
500  }
501  loadData(is, myGroup);
502  loadData(is, myCompression);
503  loadData(is, myUpdateSettings);
504  loadData(is, myConstantTol);
505  loadData(is, myQuantizeTol);
506  loadData(is, myDither);
507  loadData(is, myUseFP16);
508  loadData(is, myMaskGroup);
509  loadData(is, myDoMaskMin);
510  loadData(is, myMaskMin);
511  loadData(is, myDoMaskMax);
512  loadData(is, myMaskMax);
513  loadData(is, myInvertMask);
514 
515  return true;
516  }
517 
518  const UT_StringHolder & getGroup() const { return myGroup; }
519  void setGroup(const UT_StringHolder & val) { myGroup = val; }
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getGroup();
524  UT_StringHolder result;
525  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
526  return result;
527  }
528  Compression getCompression() const { return Compression(myCompression); }
529  void setCompression(Compression val) { myCompression = int64(val); }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getCompression();
534  int64 result;
535  OP_Utils::evalOpParm(result, thissop, "compression", cookparms.getCookTime(), 0);
536  return Compression(result);
537  }
538  bool getUpdateSettings() const { return myUpdateSettings; }
539  void setUpdateSettings(bool val) { myUpdateSettings = val; }
540  bool opUpdateSettings(const SOP_NodeVerb::CookParms &cookparms) const
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getUpdateSettings();
544  bool result;
545  OP_Utils::evalOpParm(result, thissop, "updatesettings", cookparms.getCookTime(), 0);
546  return result;
547  }
548  fpreal64 getConstantTol() const { return myConstantTol; }
549  void setConstantTol(fpreal64 val) { myConstantTol = val; }
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getConstantTol();
554  fpreal64 result;
555  OP_Utils::evalOpParm(result, thissop, "constanttol", cookparms.getCookTime(), 0);
556  return result;
557  }
558  fpreal64 getQuantizeTol() const { return myQuantizeTol; }
559  void setQuantizeTol(fpreal64 val) { myQuantizeTol = val; }
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getQuantizeTol();
564  fpreal64 result;
565  OP_Utils::evalOpParm(result, thissop, "quantizetol", cookparms.getCookTime(), 0);
566  return result;
567  }
568  Dither getDither() const { return Dither(myDither); }
569  void setDither(Dither val) { myDither = int64(val); }
570  Dither opDither(const SOP_NodeVerb::CookParms &cookparms) const
571  {
572  SOP_Node *thissop = cookparms.getNode();
573  if (!thissop) return getDither();
574  int64 result;
575  OP_Utils::evalOpParm(result, thissop, "dither", cookparms.getCookTime(), 0);
576  return Dither(result);
577  }
578  bool getUseFP16() const { return myUseFP16; }
579  void setUseFP16(bool val) { myUseFP16 = val; }
580  bool opUseFP16(const SOP_NodeVerb::CookParms &cookparms) const
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getUseFP16();
584  bool result;
585  OP_Utils::evalOpParm(result, thissop, "usefp16", cookparms.getCookTime(), 0);
586  return result;
587  }
588  const UT_StringHolder & getMaskGroup() const { return myMaskGroup; }
589  void setMaskGroup(const UT_StringHolder & val) { myMaskGroup = val; }
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return getMaskGroup();
594  UT_StringHolder result;
595  OP_Utils::evalOpParm(result, thissop, "maskgrp", cookparms.getCookTime(), 0);
596  return result;
597  }
598  bool getDoMaskMin() const { return myDoMaskMin; }
599  void setDoMaskMin(bool val) { myDoMaskMin = val; }
600  bool opDoMaskMin(const SOP_NodeVerb::CookParms &cookparms) const
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getDoMaskMin();
604  bool result;
605  OP_Utils::evalOpParm(result, thissop, "domaskmin", cookparms.getCookTime(), 0);
606  return result;
607  }
608  fpreal64 getMaskMin() const { return myMaskMin; }
609  void setMaskMin(fpreal64 val) { myMaskMin = val; }
611  {
612  SOP_Node *thissop = cookparms.getNode();
613  if (!thissop) return getMaskMin();
614  fpreal64 result;
615  OP_Utils::evalOpParm(result, thissop, "maskmin", cookparms.getCookTime(), 0);
616  return result;
617  }
618  bool getDoMaskMax() const { return myDoMaskMax; }
619  void setDoMaskMax(bool val) { myDoMaskMax = val; }
620  bool opDoMaskMax(const SOP_NodeVerb::CookParms &cookparms) const
621  {
622  SOP_Node *thissop = cookparms.getNode();
623  if (!thissop) return getDoMaskMax();
624  bool result;
625  OP_Utils::evalOpParm(result, thissop, "domaskmax", cookparms.getCookTime(), 0);
626  return result;
627  }
628  fpreal64 getMaskMax() const { return myMaskMax; }
629  void setMaskMax(fpreal64 val) { myMaskMax = val; }
631  {
632  SOP_Node *thissop = cookparms.getNode();
633  if (!thissop) return getMaskMax();
634  fpreal64 result;
635  OP_Utils::evalOpParm(result, thissop, "maskmax", cookparms.getCookTime(), 0);
636  return result;
637  }
638  bool getInvertMask() const { return myInvertMask; }
639  void setInvertMask(bool val) { myInvertMask = val; }
640  bool opInvertMask(const SOP_NodeVerb::CookParms &cookparms) const
641  {
642  SOP_Node *thissop = cookparms.getNode();
643  if (!thissop) return getInvertMask();
644  bool result;
645  OP_Utils::evalOpParm(result, thissop, "invertmask", cookparms.getCookTime(), 0);
646  return result;
647  }
648 
649 private:
650  UT_StringHolder myGroup;
651  int64 myCompression;
652  bool myUpdateSettings;
653  fpreal64 myConstantTol;
654  fpreal64 myQuantizeTol;
655  int64 myDither;
656  bool myUseFP16;
657  UT_StringHolder myMaskGroup;
658  bool myDoMaskMin;
659  fpreal64 myMaskMin;
660  bool myDoMaskMax;
661  fpreal64 myMaskMax;
662  bool myInvertMask;
663 
664 };
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void doGetParmValue(exint idx, T &value) const
void doSetParmValue(exint idx, const T &value)
void setParmValue(exint idx, const fpreal &value)
Dither opDither(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setCompression(Compression val)
const UT_StringHolder & getMaskGroup() const
Compression getCompression() const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
static void loadData(UT_IStream &is, UT_Vector2D &v)
T & z(void)
Definition: UT_Vector4.h:379
void getParmValue(exint idx, UT_Matrix2D &value) const
void getParmValue(exint idx, PRM_DataItemHandle &value) const
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, int64 v)
void getParmValue(exint idx, fpreal &value) const
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void setParmValue(exint idx, const UT_Vector3D &value)
void setParmValue(exint idx, const UT_StringHolder &value)
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, bool v)
void setGroup(const UT_StringHolder &val)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
void setParmValue(exint idx, const PRM_DataItemHandle &value)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void setParmValue(exint idx, const UT_Vector4D &value)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opDoMaskMax(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
virtual void copyFrom(const SOP_NodeParms *src)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Vector4D v)
void getParmValue(exint idx, UT_Vector4D &value) const
void setParmValue(exint idx, const UT_Vector2D &value)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getParmValue(exint idx, UT_StringHolder &value) const
long long int64
Definition: SYS_Types.h:107
static void loadData(UT_IStream &is, UT_StringHolder &v)
fpreal64 opConstantTol(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void save(std::ostream &os) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
static void saveData(std::ostream &os, fpreal64 v)
fpreal64 opMaskMin(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
virtual exint getNumParms() const
bool opUseFP16(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLboolean * data
Definition: glcorearb.h:130
void setParmValue(exint idx, const exint &value)
static void saveData(std::ostream &os, UT_Vector2D v)
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
virtual ParmType getParmType(exint fieldnum) const
bool opInvertMask(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Vector3D &value) const
fpreal64 opQuantizeTol(const SOP_NodeVerb::CookParms &cookparms) const
bool opUpdateSettings(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getParmValue(exint idx, UT_Matrix4D &value) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
void getParmValue(exint idx, exint &value) const
bool opDoMaskMin(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMaskMax(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
static void saveData(std::ostream &os, UT_StringHolder s)
void setParmValue(exint idx, const UT_Matrix4D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
void getParmValue(exint idx, UT_Matrix3D &value) const
virtual const char * getParmName(exint fieldnum) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
static void loadData(UT_IStream &is, fpreal64 &v)
bool operator==(const SOP_VolumeCompressParms &src) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setMaskGroup(const UT_StringHolder &val)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, UT_Vector4I &v)
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
const UT_StringHolder & getGroup() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
Compression opCompression(const SOP_NodeVerb::CookParms &cookparms) const
T & x(void)
Definition: UT_Vector4.h:375
void getParmValue(exint idx, UT_Vector2D &value) const
T & y(void)
Definition: UT_Vector2.h:287
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GLboolean r
Definition: glcorearb.h:1221
UT_StringHolder opMaskGroup(const SOP_NodeVerb::CookParms &cookparms) const
T & w(void)
Definition: UT_Vector4.h:381
bool operator!=(const SOP_VolumeCompressParms &src) const
void setParmValue(exint idx, const UT_Matrix2D &value)
Compression
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const UT_Matrix3D &value)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void saveData(std::ostream &os, UT_Matrix2D v)
GLenum src
Definition: glcorearb.h:1792