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