HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  myR = UT_Vector3D(0,0,0);
64  myRows = 10;
65  myCols = 10;
66  myOrderu = 4;
67  myOrderv = 4;
68  myInterpu = true;
69  myInterpv = true;
70 
71  }
72 
73  explicit SOP_GridParms(const SOP_GridParms &) = default;
74 
75  virtual ~SOP_GridParms() {}
76 
77  bool operator==(const SOP_GridParms &src) const
78  {
79  if (myType != src.myType) return false;
80  if (mySurftype != src.mySurftype) return false;
81  if (myOrient != src.myOrient) return false;
82  if (mySize != src.mySize) return false;
83  if (myT != src.myT) return false;
84  if (myR != src.myR) return false;
85  if (myRows != src.myRows) return false;
86  if (myCols != src.myCols) return false;
87  if (myOrderu != src.myOrderu) return false;
88  if (myOrderv != src.myOrderv) return false;
89  if (myInterpu != src.myInterpu) return false;
90  if (myInterpv != src.myInterpv) return false;
91 
92  return true;
93  }
94  bool operator!=(const SOP_GridParms &src) const
95  {
96  return !operator==(src);
97  }
101 
102 
103 
104  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
105  {
106  if (true)
107  OP_Utils::evalOpParm(myType, node, "type", time, 0);
108  else myType = 0;
109  if (true && ( (!(((int64(getType())==4)))) ) )
110  OP_Utils::evalOpParm(mySurftype, node, "surftype", time, 0);
111  else mySurftype = 4;
112  if (true)
113  OP_Utils::evalOpParm(myOrient, node, "orient", time, 0);
114  else myOrient = 2;
115  if (true)
116  OP_Utils::evalOpParm(mySize, node, "size", time, 0);
117  else mySize = UT_Vector2D(10,10);
118  if (true)
119  OP_Utils::evalOpParm(myT, node, "t", time, 0);
120  else myT = UT_Vector3D(0,0,0);
121  if (true)
122  OP_Utils::evalOpParm(myR, node, "r", time, 0);
123  else myR = UT_Vector3D(0,0,0);
124  if (true)
125  OP_Utils::evalOpParm(myRows, node, "rows", time, 0);
126  else myRows = 10;
127  if (true)
128  OP_Utils::evalOpParm(myCols, node, "cols", time, 0);
129  else myCols = 10;
130  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
131  OP_Utils::evalOpParm(myOrderu, node, "orderu", time, 0);
132  else myOrderu = 4;
133  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
134  OP_Utils::evalOpParm(myOrderv, node, "orderv", time, 0);
135  else myOrderv = 4;
136  if (true && ( (!(((int64(getType())!=2)))) ) )
137  OP_Utils::evalOpParm(myInterpu, node, "interpu", time, 0);
138  else myInterpu = true;
139  if (true && ( (!(((int64(getType())!=2)))) ) )
140  OP_Utils::evalOpParm(myInterpv, node, "interpv", time, 0);
141  else myInterpv = true;
142 
143  }
144 
145 
146  virtual void loadFromOpSubclass(const LoadParms &loadparms)
147  {
148  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
149  }
150 
151 
152  virtual void copyFrom(const SOP_NodeParms *src)
153  {
154  *this = *((const SOP_GridParms *)src);
155  }
156 
157  template <typename T>
158  void
159  doGetParmValue(exint idx, T &value) const
160  {
161  switch (idx)
162  {
163  case 0:
164  coerceValue(value, myType);
165  break;
166  case 1:
167  coerceValue(value, mySurftype);
168  break;
169  case 2:
170  coerceValue(value, myOrient);
171  break;
172  case 3:
173  coerceValue(value, mySize);
174  break;
175  case 4:
176  coerceValue(value, myT);
177  break;
178  case 5:
179  coerceValue(value, myR);
180  break;
181  case 6:
182  coerceValue(value, myRows);
183  break;
184  case 7:
185  coerceValue(value, myCols);
186  break;
187  case 8:
188  coerceValue(value, myOrderu);
189  break;
190  case 9:
191  coerceValue(value, myOrderv);
192  break;
193  case 10:
194  coerceValue(value, myInterpu);
195  break;
196  case 11:
197  coerceValue(value, myInterpv);
198  break;
199 
200  }
201  }
202 
203  void getParmValue(exint idx, exint &value) const
204  { doGetParmValue(idx, value); }
205  void getParmValue(exint idx, fpreal &value) const
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); }
220  { doGetParmValue(idx, value); }
222  { doGetParmValue(idx, value); }
224  { doGetParmValue(idx, value); }
225 
226  template <typename T>
227  void
228  doSetParmValue(exint idx, const T &value)
229  {
230  switch (idx)
231  {
232  case 0:
233  coerceValue(myType, value);
234  break;
235  case 1:
236  coerceValue(mySurftype, value);
237  break;
238  case 2:
239  coerceValue(myOrient, value);
240  break;
241  case 3:
242  coerceValue(mySize, value);
243  break;
244  case 4:
245  coerceValue(myT, value);
246  break;
247  case 5:
248  coerceValue(myR, value);
249  break;
250  case 6:
251  coerceValue(myRows, value);
252  break;
253  case 7:
254  coerceValue(myCols, value);
255  break;
256  case 8:
257  coerceValue(myOrderu, value);
258  break;
259  case 9:
260  coerceValue(myOrderv, value);
261  break;
262  case 10:
263  coerceValue(myInterpu, value);
264  break;
265  case 11:
266  coerceValue(myInterpv, value);
267  break;
268 
269  }
270  }
271 
272  void setParmValue(exint idx, const exint &value)
273  { doSetParmValue(idx, value); }
274  void setParmValue(exint idx, const fpreal &value)
275  { doSetParmValue(idx, value); }
276  void setParmValue(exint idx, const UT_Vector2D &value)
277  { doSetParmValue(idx, value); }
278  void setParmValue(exint idx, const UT_Vector3D &value)
279  { doSetParmValue(idx, value); }
280  void setParmValue(exint idx, const UT_Vector4D &value)
281  { doSetParmValue(idx, value); }
282  void setParmValue(exint idx, const UT_Matrix2D &value)
283  { doSetParmValue(idx, value); }
284  void setParmValue(exint idx, const UT_Matrix3D &value)
285  { doSetParmValue(idx, value); }
286  void setParmValue(exint idx, const UT_Matrix4D &value)
287  { doSetParmValue(idx, value); }
289  { doSetParmValue(idx, value); }
291  { doSetParmValue(idx, value); }
293  { doSetParmValue(idx, value); }
294 
295  virtual exint getNumParms() const
296  {
297  return 12;
298  }
299 
300  virtual const char *getParmName(exint fieldnum) const
301  {
302  switch (fieldnum)
303  {
304  case 0:
305  return "type";
306  case 1:
307  return "surftype";
308  case 2:
309  return "orient";
310  case 3:
311  return "size";
312  case 4:
313  return "t";
314  case 5:
315  return "r";
316  case 6:
317  return "rows";
318  case 7:
319  return "cols";
320  case 8:
321  return "orderu";
322  case 9:
323  return "orderv";
324  case 10:
325  return "interpu";
326  case 11:
327  return "interpv";
328 
329  }
330  return 0;
331  }
332 
333  virtual ParmType getParmType(exint fieldnum) const
334  {
335  switch (fieldnum)
336  {
337  case 0:
338  return PARM_INTEGER;
339  case 1:
340  return PARM_INTEGER;
341  case 2:
342  return PARM_INTEGER;
343  case 3:
344  return PARM_VECTOR2;
345  case 4:
346  return PARM_VECTOR3;
347  case 5:
348  return PARM_VECTOR3;
349  case 6:
350  return PARM_INTEGER;
351  case 7:
352  return PARM_INTEGER;
353  case 8:
354  return PARM_INTEGER;
355  case 9:
356  return PARM_INTEGER;
357  case 10:
358  return PARM_INTEGER;
359  case 11:
360  return PARM_INTEGER;
361 
362  }
363  return PARM_UNSUPPORTED;
364  }
365 
366  // Boiler plate to load individual types.
367  static void loadData(UT_IStream &is, int64 &v)
368  { is.bread(&v, 1); }
369  static void loadData(UT_IStream &is, bool &v)
370  { int64 iv; is.bread(&iv, 1); v = iv; }
371  static void loadData(UT_IStream &is, fpreal64 &v)
372  { is.bread<fpreal64>(&v, 1); }
373  static void loadData(UT_IStream &is, UT_Vector2D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector3D &v)
376  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
377  is.bread<fpreal64>(&v.z(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector4D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
380  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix2D &v)
382  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix3D &v)
384  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix4D &v)
386  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Vector2I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
389  static void loadData(UT_IStream &is, UT_Vector3I &v)
390  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
391  is.bread<int64>(&v.z(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector4I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
394  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
396  { is.bread(v); }
398  { UT_StringHolder rampdata;
399  loadData(is, rampdata);
400  if (rampdata.isstring())
401  {
402  v.reset(new UT_Ramp());
403  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
404  v->load(istr);
405  }
406  else v.reset();
407  }
410  loadData(is, data);
411  if (data.isstring())
412  {
413  // Find the data type.
414  char *colon = UT_StringWrap(data).findChar(':');
415  if (colon)
416  {
417  int typelen = colon - data.buffer();
419  type.strncpy(data.buffer(), typelen);
420  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
421 
422  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
423  }
424  }
425  else v.reset();
426  }
427 
428  static void saveData(std::ostream &os, int64 v)
429  { UTwrite(os, &v); }
430  static void saveData(std::ostream &os, bool v)
431  { int64 iv = v; UTwrite(os, &iv); }
432  static void saveData(std::ostream &os, fpreal64 v)
433  { UTwrite<fpreal64>(os, &v); }
434  static void saveData(std::ostream &os, UT_Vector2D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
436  static void saveData(std::ostream &os, UT_Vector3D v)
437  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
438  UTwrite<fpreal64>(os, &v.z()); }
439  static void saveData(std::ostream &os, UT_Vector4D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
441  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
442  static void saveData(std::ostream &os, UT_Matrix2D v)
444  static void saveData(std::ostream &os, UT_Matrix3D v)
446  static void saveData(std::ostream &os, UT_Matrix4D v)
448  static void saveData(std::ostream &os, UT_StringHolder s)
449  { UT_StringWrap(s).saveBinary(os); }
450  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
451  { UT_StringHolder result;
452  UT_OStringStream ostr;
453  if (s) s->save(ostr);
454  result = ostr.str();
455  saveData(os, result);
456  }
457  static void saveData(std::ostream &os, PRM_DataItemHandle s)
458  { UT_StringHolder result;
459  UT_OStringStream ostr;
460  if (s)
461  {
462  ostr << s->getDataTypeToken();
463  ostr << ":";
464  s->saveBinary(ostr);
465  }
466  result = ostr.str();
467  saveData(os, result);
468  }
469 
470 
471  void save(std::ostream &os) const
472  {
473  int32 v = version();
474  UTwrite(os, &v);
475  saveData(os, myType);
476  saveData(os, mySurftype);
477  saveData(os, myOrient);
478  saveData(os, mySize);
479  saveData(os, myT);
480  saveData(os, myR);
481  saveData(os, myRows);
482  saveData(os, myCols);
483  saveData(os, myOrderu);
484  saveData(os, myOrderv);
485  saveData(os, myInterpu);
486  saveData(os, myInterpv);
487 
488  }
489 
490  bool load(UT_IStream &is)
491  {
492  int32 v;
493  is.bread(&v, 1);
494  if (version() != v)
495  {
496  // Fail incompatible versions
497  return false;
498  }
499  loadData(is, myType);
500  loadData(is, mySurftype);
501  loadData(is, myOrient);
502  loadData(is, mySize);
503  loadData(is, myT);
504  loadData(is, myR);
505  loadData(is, myRows);
506  loadData(is, myCols);
507  loadData(is, myOrderu);
508  loadData(is, myOrderv);
509  loadData(is, myInterpu);
510  loadData(is, myInterpv);
511 
512  return true;
513  }
514 
515  Type getType() const { return Type(myType); }
516  void setType(Type val) { myType = int64(val); }
517  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getType();
521  int64 result;
522  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
523  return Type(result);
524  }
525  Surftype getSurftype() const { return Surftype(mySurftype); }
526  void setSurftype(Surftype val) { mySurftype = int64(val); }
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return getSurftype();
531  int64 result;
532  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
533  return Surftype(result);
534  }
535  Orient getOrient() const { return Orient(myOrient); }
536  void setOrient(Orient val) { myOrient = int64(val); }
537  Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getOrient();
541  int64 result;
542  OP_Utils::evalOpParm(result, thissop, "orient", cookparms.getCookTime(), 0);
543  return Orient(result);
544  }
545  UT_Vector2D getSize() const { return mySize; }
546  void setSize(UT_Vector2D val) { mySize = val; }
548  {
549  SOP_Node *thissop = cookparms.getNode();
550  if (!thissop) return getSize();
551  UT_Vector2D result;
552  OP_Utils::evalOpParm(result, thissop, "size", cookparms.getCookTime(), 0);
553  return result;
554  }
555  UT_Vector3D getT() const { return myT; }
556  void setT(UT_Vector3D val) { myT = val; }
557  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
558  {
559  SOP_Node *thissop = cookparms.getNode();
560  if (!thissop) return getT();
561  UT_Vector3D result;
562  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
563  return result;
564  }
565  UT_Vector3D getR() const { return myR; }
566  void setR(UT_Vector3D val) { myR = val; }
567  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
568  {
569  SOP_Node *thissop = cookparms.getNode();
570  if (!thissop) return getR();
571  UT_Vector3D result;
572  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
573  return result;
574  }
575  int64 getRows() const { return myRows; }
576  void setRows(int64 val) { myRows = val; }
577  int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
578  {
579  SOP_Node *thissop = cookparms.getNode();
580  if (!thissop) return getRows();
581  int64 result;
582  OP_Utils::evalOpParm(result, thissop, "rows", cookparms.getCookTime(), 0);
583  return result;
584  }
585  int64 getCols() const { return myCols; }
586  void setCols(int64 val) { myCols = val; }
587  int64 opCols(const SOP_NodeVerb::CookParms &cookparms) const
588  {
589  SOP_Node *thissop = cookparms.getNode();
590  if (!thissop) return getCols();
591  int64 result;
592  OP_Utils::evalOpParm(result, thissop, "cols", cookparms.getCookTime(), 0);
593  return result;
594  }
595  int64 getOrderu() const { return myOrderu; }
596  void setOrderu(int64 val) { myOrderu = val; }
597  int64 opOrderu(const SOP_NodeVerb::CookParms &cookparms) const
598  {
599  SOP_Node *thissop = cookparms.getNode();
600  if (!thissop) return getOrderu();
601  int64 result;
602  OP_Utils::evalOpParm(result, thissop, "orderu", cookparms.getCookTime(), 0);
603  return result;
604  }
605  int64 getOrderv() const { return myOrderv; }
606  void setOrderv(int64 val) { myOrderv = val; }
607  int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
608  {
609  SOP_Node *thissop = cookparms.getNode();
610  if (!thissop) return getOrderv();
611  int64 result;
612  OP_Utils::evalOpParm(result, thissop, "orderv", cookparms.getCookTime(), 0);
613  return result;
614  }
615  bool getInterpu() const { return myInterpu; }
616  void setInterpu(bool val) { myInterpu = val; }
617  bool opInterpu(const SOP_NodeVerb::CookParms &cookparms) const
618  {
619  SOP_Node *thissop = cookparms.getNode();
620  if (!thissop) return getInterpu();
621  bool result;
622  OP_Utils::evalOpParm(result, thissop, "interpu", cookparms.getCookTime(), 0);
623  return result;
624  }
625  bool getInterpv() const { return myInterpv; }
626  void setInterpv(bool val) { myInterpv = val; }
627  bool opInterpv(const SOP_NodeVerb::CookParms &cookparms) const
628  {
629  SOP_Node *thissop = cookparms.getNode();
630  if (!thissop) return getInterpv();
631  bool result;
632  OP_Utils::evalOpParm(result, thissop, "interpv", cookparms.getCookTime(), 0);
633  return result;
634  }
635 
636 private:
637  int64 myType;
638  int64 mySurftype;
639  int64 myOrient;
640  UT_Vector2D mySize;
641  UT_Vector3D myT;
642  UT_Vector3D myR;
643  int64 myRows;
644  int64 myCols;
645  int64 myOrderu;
646  int64 myOrderv;
647  bool myInterpu;
648  bool myInterpv;
649 
650 };
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:494
bool getInterpu() const
T & z(void)
Definition: UT_Vector4.h:379
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)
GT_API const UT_StringHolder time
static int version()
fpreal getTime() const
Definition: OP_Context.h:60
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)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
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:498
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:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
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)
UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
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
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:116
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:192
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:35
static void saveData(std::ostream &os, int64 v)
T & y(void)
Definition: UT_Vector4.h:377
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setParmValue(exint idx, const UT_Matrix2D &value)
UT_Vector3D getR() const
GT_API const UT_StringHolder version
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:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
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)
void setR(UT_Vector3D val)
int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
int64 getOrderu() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
T & x(void)
Definition: UT_Vector4.h:375
static void loadData(UT_IStream &is, bool &v)
void getParmValue(exint idx, exint &value) const
T & y(void)
Definition: UT_Vector2.h:287
void setType(Type val)
static void loadData(UT_IStream &is, fpreal64 &v)
GLboolean r
Definition: glcorearb.h:1221
bool operator!=(const SOP_GridParms &src) const
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:381
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_Matrix4D &v)
bool load(UT_IStream &is)
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const UT_Matrix3D &value)
int64 getRows() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1792
virtual const char * getParmName(exint fieldnum) const