HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_Grid.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_GridEnums
22 {
23  enum class Type
24  {
25  POLY = 0,
26  MESH,
27  NURBS,
28  BEZIER,
29  POINTS,
30  POLYSOUP
31  };
32  enum class Surftype
33  {
34  ROWS = 0,
35  COLS,
36  ROWCOL,
37  TRIANGLES,
38  QUADS,
39  ALTTRIANGLES,
40  REVTRIANGLES
41  };
42  enum class Orient
43  {
44  XY = 0,
45  YZ,
46  ZX
47  };
48 }
49 
50 
52 {
53 public:
54  static int version() { return 1; }
55 
57  {
58  myType = 0;
59  mySurftype = 4;
60  myOrient = 2;
61  mySize = UT_Vector2D(10,10);
62  myT = UT_Vector3D(0,0,0);
63  myRows = 10;
64  myCols = 10;
65  myOrderu = 4;
66  myOrderv = 4;
67  myInterpu = true;
68  myInterpv = true;
69 
70  }
71 
72  explicit SOP_GridParms(const SOP_GridParms &) = default;
73 
74  virtual ~SOP_GridParms() {}
75 
76  bool operator==(const SOP_GridParms &src) const
77  {
78  if (myType != src.myType) return false;
79  if (mySurftype != src.mySurftype) return false;
80  if (myOrient != src.myOrient) return false;
81  if (mySize != src.mySize) return false;
82  if (myT != src.myT) return false;
83  if (myRows != src.myRows) return false;
84  if (myCols != src.myCols) return false;
85  if (myOrderu != src.myOrderu) return false;
86  if (myOrderv != src.myOrderv) return false;
87  if (myInterpu != src.myInterpu) return false;
88  if (myInterpv != src.myInterpv) return false;
89 
90  return true;
91  }
95 
96 
97 
98  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
99  {
100  if (true)
101  OP_Utils::evalOpParm(myType, node, "type", time, 0);
102  else myType = 0;
103  if (true && ( (!(((int64(getType())==4)))) ) )
104  OP_Utils::evalOpParm(mySurftype, node, "surftype", time, 0);
105  else mySurftype = 4;
106  if (true)
107  OP_Utils::evalOpParm(myOrient, node, "orient", time, 0);
108  else myOrient = 2;
109  if (true)
110  OP_Utils::evalOpParm(mySize, node, "size", time, 0);
111  else mySize = UT_Vector2D(10,10);
112  if (true)
113  OP_Utils::evalOpParm(myT, node, "t", time, 0);
114  else myT = UT_Vector3D(0,0,0);
115  if (true)
116  OP_Utils::evalOpParm(myRows, node, "rows", time, 0);
117  else myRows = 10;
118  if (true)
119  OP_Utils::evalOpParm(myCols, node, "cols", time, 0);
120  else myCols = 10;
121  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
122  OP_Utils::evalOpParm(myOrderu, node, "orderu", time, 0);
123  else myOrderu = 4;
124  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
125  OP_Utils::evalOpParm(myOrderv, node, "orderv", time, 0);
126  else myOrderv = 4;
127  if (true && ( (!(((int64(getType())!=2)))) ) )
128  OP_Utils::evalOpParm(myInterpu, node, "interpu", time, 0);
129  else myInterpu = true;
130  if (true && ( (!(((int64(getType())!=2)))) ) )
131  OP_Utils::evalOpParm(myInterpv, node, "interpv", time, 0);
132  else myInterpv = true;
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_GridParms *)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, myType);
156  break;
157  case 1:
158  coerceValue(value, mySurftype);
159  break;
160  case 2:
161  coerceValue(value, myOrient);
162  break;
163  case 3:
164  coerceValue(value, mySize);
165  break;
166  case 4:
167  coerceValue(value, myT);
168  break;
169  case 5:
170  coerceValue(value, myRows);
171  break;
172  case 6:
173  coerceValue(value, myCols);
174  break;
175  case 7:
176  coerceValue(value, myOrderu);
177  break;
178  case 8:
179  coerceValue(value, myOrderv);
180  break;
181  case 9:
182  coerceValue(value, myInterpu);
183  break;
184  case 10:
185  coerceValue(value, myInterpv);
186  break;
187 
188  }
189  }
190 
191  void getParmValue(exint idx, exint &value) const
192  { doGetParmValue(idx, value); }
193  void getParmValue(exint idx, fpreal &value) const
194  { doGetParmValue(idx, value); }
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); }
213 
214  template <typename T>
215  void
216  doSetParmValue(exint idx, const T &value)
217  {
218  switch (idx)
219  {
220  case 0:
221  coerceValue(myType, value);
222  break;
223  case 1:
224  coerceValue(mySurftype, value);
225  break;
226  case 2:
227  coerceValue(myOrient, value);
228  break;
229  case 3:
230  coerceValue(mySize, value);
231  break;
232  case 4:
233  coerceValue(myT, value);
234  break;
235  case 5:
236  coerceValue(myRows, value);
237  break;
238  case 6:
239  coerceValue(myCols, value);
240  break;
241  case 7:
242  coerceValue(myOrderu, value);
243  break;
244  case 8:
245  coerceValue(myOrderv, value);
246  break;
247  case 9:
248  coerceValue(myInterpu, value);
249  break;
250  case 10:
251  coerceValue(myInterpv, value);
252  break;
253 
254  }
255  }
256 
257  void setParmValue(exint idx, const exint &value)
258  { doSetParmValue(idx, value); }
259  void setParmValue(exint idx, const fpreal &value)
260  { doSetParmValue(idx, value); }
261  void setParmValue(exint idx, const UT_Vector2D &value)
262  { doSetParmValue(idx, value); }
263  void setParmValue(exint idx, const UT_Vector3D &value)
264  { doSetParmValue(idx, value); }
265  void setParmValue(exint idx, const UT_Vector4D &value)
266  { doSetParmValue(idx, value); }
267  void setParmValue(exint idx, const UT_Matrix2D &value)
268  { doSetParmValue(idx, value); }
269  void setParmValue(exint idx, const UT_Matrix3D &value)
270  { doSetParmValue(idx, value); }
271  void setParmValue(exint idx, const UT_Matrix4D &value)
272  { doSetParmValue(idx, value); }
274  { doSetParmValue(idx, value); }
276  { doSetParmValue(idx, value); }
278  { doSetParmValue(idx, value); }
279 
280  virtual exint getNumParms() const
281  {
282  return 11;
283  }
284 
285  virtual const char *getParmName(exint fieldnum) const
286  {
287  switch (fieldnum)
288  {
289  case 0:
290  return "type";
291  case 1:
292  return "surftype";
293  case 2:
294  return "orient";
295  case 3:
296  return "size";
297  case 4:
298  return "t";
299  case 5:
300  return "rows";
301  case 6:
302  return "cols";
303  case 7:
304  return "orderu";
305  case 8:
306  return "orderv";
307  case 9:
308  return "interpu";
309  case 10:
310  return "interpv";
311 
312  }
313  return 0;
314  }
315 
316  virtual ParmType getParmType(exint fieldnum) const
317  {
318  switch (fieldnum)
319  {
320  case 0:
321  return PARM_INTEGER;
322  case 1:
323  return PARM_INTEGER;
324  case 2:
325  return PARM_INTEGER;
326  case 3:
327  return PARM_VECTOR2;
328  case 4:
329  return PARM_VECTOR3;
330  case 5:
331  return PARM_INTEGER;
332  case 6:
333  return PARM_INTEGER;
334  case 7:
335  return PARM_INTEGER;
336  case 8:
337  return PARM_INTEGER;
338  case 9:
339  return PARM_INTEGER;
340  case 10:
341  return PARM_INTEGER;
342 
343  }
344  return PARM_UNSUPPORTED;
345  }
346 
347  // Boiler plate to load individual types.
348  static void loadData(UT_IStream &is, int64 &v)
349  { is.bread(&v, 1); }
350  static void loadData(UT_IStream &is, bool &v)
351  { int64 iv; is.bread(&iv, 1); v = iv; }
352  static void loadData(UT_IStream &is, fpreal64 &v)
353  { is.bread<fpreal64>(&v, 1); }
354  static void loadData(UT_IStream &is, UT_Vector2D &v)
355  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector3D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); }
359  static void loadData(UT_IStream &is, UT_Vector4D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
361  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
362  static void loadData(UT_IStream &is, UT_Matrix2D &v)
363  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
364  static void loadData(UT_IStream &is, UT_Matrix3D &v)
365  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
366  static void loadData(UT_IStream &is, UT_Matrix4D &v)
367  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
368  static void loadData(UT_IStream &is, UT_Vector2I &v)
369  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector3I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector4I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
375  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
377  { is.bread(v); }
379  { UT_StringHolder rampdata;
380  loadData(is, rampdata);
381  if (rampdata.isstring())
382  {
383  v.reset(new UT_Ramp());
384  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
385  v->load(istr);
386  }
387  else v.reset();
388  }
391  loadData(is, data);
392  if (data.isstring())
393  {
394  // Find the data type.
395  char *colon = UT_StringWrap(data).findChar(':');
396  if (colon)
397  {
398  int typelen = colon - data.buffer();
400  type.strncpy(data.buffer(), typelen);
401  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
402 
403  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
404  }
405  }
406  else v.reset();
407  }
408 
409  static void saveData(std::ostream &os, int64 v)
410  { UTwrite(os, &v); }
411  static void saveData(std::ostream &os, bool v)
412  { int64 iv = v; UTwrite(os, &iv); }
413  static void saveData(std::ostream &os, fpreal64 v)
414  { UTwrite<fpreal64>(os, &v); }
415  static void saveData(std::ostream &os, UT_Vector2D v)
416  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
417  static void saveData(std::ostream &os, UT_Vector3D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); }
420  static void saveData(std::ostream &os, UT_Vector4D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
422  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
423  static void saveData(std::ostream &os, UT_Matrix2D v)
425  static void saveData(std::ostream &os, UT_Matrix3D v)
427  static void saveData(std::ostream &os, UT_Matrix4D v)
429  static void saveData(std::ostream &os, UT_StringHolder s)
430  { UT_StringWrap(s).saveBinary(os); }
431  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
432  { UT_StringHolder result;
433  UT_OStringStream ostr;
434  if (s) s->save(ostr);
435  result = ostr.str();
436  saveData(os, result);
437  }
438  static void saveData(std::ostream &os, PRM_DataItemHandle s)
439  { UT_StringHolder result;
440  UT_OStringStream ostr;
441  if (s)
442  {
443  ostr << s->getDataTypeToken();
444  ostr << ":";
445  s->saveBinary(ostr);
446  }
447  result = ostr.str();
448  saveData(os, result);
449  }
450 
451 
452  void save(std::ostream &os) const
453  {
454  int32 v = version();
455  UTwrite(os, &v);
456  saveData(os, myType);
457  saveData(os, mySurftype);
458  saveData(os, myOrient);
459  saveData(os, mySize);
460  saveData(os, myT);
461  saveData(os, myRows);
462  saveData(os, myCols);
463  saveData(os, myOrderu);
464  saveData(os, myOrderv);
465  saveData(os, myInterpu);
466  saveData(os, myInterpv);
467 
468  }
469 
470  bool load(UT_IStream &is)
471  {
472  int32 v;
473  is.bread(&v, 1);
474  if (version() != v)
475  {
476  // Fail incompatible versions
477  return false;
478  }
479  loadData(is, myType);
480  loadData(is, mySurftype);
481  loadData(is, myOrient);
482  loadData(is, mySize);
483  loadData(is, myT);
484  loadData(is, myRows);
485  loadData(is, myCols);
486  loadData(is, myOrderu);
487  loadData(is, myOrderv);
488  loadData(is, myInterpu);
489  loadData(is, myInterpv);
490 
491  return true;
492  }
493 
494  Type getType() const { return Type(myType); }
495  void setType(Type val) { myType = int64(val); }
496  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getType();
500  int64 result;
501  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
502  return Type(result);
503  }
504  Surftype getSurftype() const { return Surftype(mySurftype); }
505  void setSurftype(Surftype val) { mySurftype = int64(val); }
507  {
508  SOP_Node *thissop = cookparms.getNode();
509  if (!thissop) return getSurftype();
510  int64 result;
511  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
512  return Surftype(result);
513  }
514  Orient getOrient() const { return Orient(myOrient); }
515  void setOrient(Orient val) { myOrient = int64(val); }
516  Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getOrient();
520  int64 result;
521  OP_Utils::evalOpParm(result, thissop, "orient", cookparms.getCookTime(), 0);
522  return Orient(result);
523  }
524  UT_Vector2D getSize() const { return mySize; }
525  void setSize(UT_Vector2D val) { mySize = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getSize();
530  UT_Vector2D result;
531  OP_Utils::evalOpParm(result, thissop, "size", cookparms.getCookTime(), 0);
532  return result;
533  }
534  UT_Vector3D getT() const { return myT; }
535  void setT(UT_Vector3D val) { myT = val; }
536  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getT();
540  UT_Vector3D result;
541  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
542  return result;
543  }
544  int64 getRows() const { return myRows; }
545  void setRows(int64 val) { myRows = val; }
546  int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getRows();
550  int64 result;
551  OP_Utils::evalOpParm(result, thissop, "rows", cookparms.getCookTime(), 0);
552  return result;
553  }
554  int64 getCols() const { return myCols; }
555  void setCols(int64 val) { myCols = val; }
556  int64 opCols(const SOP_NodeVerb::CookParms &cookparms) const
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getCols();
560  int64 result;
561  OP_Utils::evalOpParm(result, thissop, "cols", cookparms.getCookTime(), 0);
562  return result;
563  }
564  int64 getOrderu() const { return myOrderu; }
565  void setOrderu(int64 val) { myOrderu = val; }
566  int64 opOrderu(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getOrderu();
570  int64 result;
571  OP_Utils::evalOpParm(result, thissop, "orderu", cookparms.getCookTime(), 0);
572  return result;
573  }
574  int64 getOrderv() const { return myOrderv; }
575  void setOrderv(int64 val) { myOrderv = val; }
576  int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getOrderv();
580  int64 result;
581  OP_Utils::evalOpParm(result, thissop, "orderv", cookparms.getCookTime(), 0);
582  return result;
583  }
584  bool getInterpu() const { return myInterpu; }
585  void setInterpu(bool val) { myInterpu = val; }
586  bool opInterpu(const SOP_NodeVerb::CookParms &cookparms) const
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getInterpu();
590  bool result;
591  OP_Utils::evalOpParm(result, thissop, "interpu", cookparms.getCookTime(), 0);
592  return result;
593  }
594  bool getInterpv() const { return myInterpv; }
595  void setInterpv(bool val) { myInterpv = val; }
596  bool opInterpv(const SOP_NodeVerb::CookParms &cookparms) const
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getInterpv();
600  bool result;
601  OP_Utils::evalOpParm(result, thissop, "interpv", cookparms.getCookTime(), 0);
602  return result;
603  }
604 
605 private:
606  int64 myType;
607  int64 mySurftype;
608  int64 myOrient;
609  UT_Vector2D mySize;
610  UT_Vector3D myT;
611  int64 myRows;
612  int64 myCols;
613  int64 myOrderu;
614  int64 myOrderv;
615  bool myInterpu;
616  bool myInterpv;
617 
618 };
int64 getOrderv() const
virtual exint getNumParms() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setOrderv(int64 val)
bool opInterpu(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
void getParmValue(exint idx, fpreal &value) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
bool getInterpu() const
T & z(void)
Definition: UT_Vector4.h:372
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setParmValue(exint idx, const UT_StringHolder &value)
Surftype opSurftype(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_StringHolder s)
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
static int version()
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
void save(std::ostream &os) const
UT_Vector2T< fpreal64 > UT_Vector2D
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getParmValue(exint idx, UT_Vector3D &value) const
void setParmValue(exint idx, const fpreal &value)
Surftype getSurftype() const
bool getInterpv() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void setT(UT_Vector3D val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
T & x(void)
Definition: UT_Vector2.h:284
void getParmValue(exint idx, UT_Matrix3D &value) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
bool operator==(const SOP_GridParms &src) const
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)
void getParmValue(exint idx, UT_StringHolder &value) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setInterpu(bool val)
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
void setRows(int64 val)
void setOrderu(int64 val)
void getParmValue(exint idx, UT_Vector2D &value) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
UT_Vector2D opSize(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Matrix4D &value)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
virtual void copyFrom(const SOP_NodeParms *src)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
UT_Vector2D getSize() const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
long long int64
Definition: SYS_Types.h:106
int64 getCols() const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
bool opInterpv(const SOP_NodeVerb::CookParms &cookparms) const
void setOrient(Orient val)
Orient getOrient() const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void doSetParmValue(exint idx, const T &value)
virtual ~SOP_GridParms()
SYS_FORCE_INLINE const char * buffer() const
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:115
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:191
virtual ParmType getParmType(exint fieldnum) const
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setParmValue(exint idx, const UT_Vector3D &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getParmValue(exint idx, UT_Vector4D &value) const
void setSize(UT_Vector2D val)
UT_Vector3T< fpreal64 > UT_Vector3D
void setSurftype(Surftype val)
GLboolean * data
Definition: glcorearb.h:130
int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix2D &value) const
void getParmValue(exint idx, UT_Matrix4D &value) const
int int32
Definition: SYS_Types.h:34
static void saveData(std::ostream &os, int64 v)
T & y(void)
Definition: UT_Vector4.h:370
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setParmValue(exint idx, const UT_Matrix2D &value)
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void setCols(int64 val)
int64 opOrderu(const SOP_NodeVerb::CookParms &cookparms) const
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:269
void strncpy(const char *src, exint maxlen)
void setParmValue(exint idx, const UT_Vector2D &value)
Type getType() const
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void doGetParmValue(exint idx, T &value) const
GLuint GLfloat * val
Definition: glcorearb.h:1607
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
static void saveData(std::ostream &os, bool v)
#define SOP_API
Definition: SOP_API.h:10
int64 opCols(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const exint &value)
int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
const char * buffer() const
int64 getOrderu() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
T & x(void)
Definition: UT_Vector4.h:368
static void loadData(UT_IStream &is, bool &v)
void getParmValue(exint idx, exint &value) const
T & y(void)
Definition: UT_Vector2.h:286
void setType(Type val)
static void loadData(UT_IStream &is, fpreal64 &v)
GLboolean r
Definition: glcorearb.h:1221
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_Vector3D getT() const
void setInterpv(bool val)
T & w(void)
Definition: UT_Vector4.h:374
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_Matrix4D &v)
bool load(UT_IStream &is)
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const UT_Matrix3D &value)
int64 getRows() const
GLenum src
Definition: glcorearb.h:1792
virtual const char * getParmName(exint fieldnum) const