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 <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 namespace SOP_GridEnums
24 {
25  enum class Type
26  {
27  POLY = 0,
28  MESH,
29  NURBS,
30  BEZIER,
31  POINTS,
32  POLYSOUP
33  };
34  enum class Surftype
35  {
36  ROWS = 0,
37  COLS,
38  ROWCOL,
39  TRIANGLES,
40  QUADS,
41  ALTTRIANGLES,
42  REVTRIANGLES
43  };
44  enum class Orient
45  {
46  XY = 0,
47  YZ,
48  ZX
49  };
50 }
51 
52 
54 {
55 public:
56  static int version() { return 1; }
57 
59  {
60  myType = 0;
61  mySurftype = 4;
62  myOrient = 2;
63  mySize = UT_Vector2D(10,10);
64  myT = UT_Vector3D(0,0,0);
65  myR = UT_Vector3D(0,0,0);
66  myRows = 10;
67  myCols = 10;
68  myOrderu = 4;
69  myOrderv = 4;
70  myInterpu = true;
71  myInterpv = true;
72 
73  }
74 
75  explicit SOP_GridParms(const SOP_GridParms &) = default;
76 
77  ~SOP_GridParms() override {}
78 
79  bool operator==(const SOP_GridParms &src) const
80  {
81  if (myType != src.myType) return false;
82  if (mySurftype != src.mySurftype) return false;
83  if (myOrient != src.myOrient) return false;
84  if (mySize != src.mySize) return false;
85  if (myT != src.myT) return false;
86  if (myR != src.myR) return false;
87  if (myRows != src.myRows) return false;
88  if (myCols != src.myCols) return false;
89  if (myOrderu != src.myOrderu) return false;
90  if (myOrderv != src.myOrderv) return false;
91  if (myInterpu != src.myInterpu) return false;
92  if (myInterpv != src.myInterpv) return false;
93 
94  return true;
95  }
96  bool operator!=(const SOP_GridParms &src) const
97  {
98  return !operator==(src);
99  }
103 
104 
105 
106  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
107  {
108  myType = 0;
109  if (true)
110  graph->evalOpParm(myType, nodeidx, "type", time, 0);
111  mySurftype = 4;
112  if (true && ( (!(((int64(getType())==4)))) ) )
113  graph->evalOpParm(mySurftype, nodeidx, "surftype", time, 0);
114  myOrient = 2;
115  if (true)
116  graph->evalOpParm(myOrient, nodeidx, "orient", time, 0);
117  mySize = UT_Vector2D(10,10);
118  if (true)
119  graph->evalOpParm(mySize, nodeidx, "size", time, 0);
120  myT = UT_Vector3D(0,0,0);
121  if (true)
122  graph->evalOpParm(myT, nodeidx, "t", time, 0);
123  myR = UT_Vector3D(0,0,0);
124  if (true)
125  graph->evalOpParm(myR, nodeidx, "r", time, 0);
126  myRows = 10;
127  if (true)
128  graph->evalOpParm(myRows, nodeidx, "rows", time, 0);
129  myCols = 10;
130  if (true)
131  graph->evalOpParm(myCols, nodeidx, "cols", time, 0);
132  myOrderu = 4;
133  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
134  graph->evalOpParm(myOrderu, nodeidx, "orderu", time, 0);
135  myOrderv = 4;
136  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
137  graph->evalOpParm(myOrderv, nodeidx, "orderv", time, 0);
138  myInterpu = true;
139  if (true && ( (!(((int64(getType())!=2)))) ) )
140  graph->evalOpParm(myInterpu, nodeidx, "interpu", time, 0);
141  myInterpv = true;
142  if (true && ( (!(((int64(getType())!=2)))) ) )
143  graph->evalOpParm(myInterpv, nodeidx, "interpv", time, 0);
144 
145  }
146 
147 
148  void loadFromOpSubclass(const LoadParms &loadparms) override
149  {
150  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
151  }
152 
153 
154  void copyFrom(const SOP_NodeParms *src) override
155  {
156  *this = *((const SOP_GridParms *)src);
157  }
158 
159  template <typename T>
160  void
161  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
162  {
163  if (idx.size() < 1)
164  return;
165  UT_ASSERT(idx.size() == instance.size()+1);
166  if (idx.size() != instance.size()+1)
167  return;
168  switch (idx[0])
169  {
170  case 0:
171  coerceValue(value, myType);
172  break;
173  case 1:
174  coerceValue(value, mySurftype);
175  break;
176  case 2:
177  coerceValue(value, myOrient);
178  break;
179  case 3:
180  coerceValue(value, mySize);
181  break;
182  case 4:
183  coerceValue(value, myT);
184  break;
185  case 5:
186  coerceValue(value, myR);
187  break;
188  case 6:
189  coerceValue(value, myRows);
190  break;
191  case 7:
192  coerceValue(value, myCols);
193  break;
194  case 8:
195  coerceValue(value, myOrderu);
196  break;
197  case 9:
198  coerceValue(value, myOrderv);
199  break;
200  case 10:
201  coerceValue(value, myInterpu);
202  break;
203  case 11:
204  coerceValue(value, myInterpv);
205  break;
206 
207  }
208  }
209 
210  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
231  { doGetParmValue(idx, instance, value); }
232 
233  template <typename T>
234  void
235  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
236  {
237  if (idx.size() < 1)
238  return;
239  UT_ASSERT(idx.size() == instance.size()+1);
240  if (idx.size() != instance.size()+1)
241  return;
242  switch (idx[0])
243  {
244  case 0:
245  coerceValue(myType, value);
246  break;
247  case 1:
248  coerceValue(mySurftype, value);
249  break;
250  case 2:
251  coerceValue(myOrient, value);
252  break;
253  case 3:
254  coerceValue(mySize, value);
255  break;
256  case 4:
257  coerceValue(myT, value);
258  break;
259  case 5:
260  coerceValue(myR, value);
261  break;
262  case 6:
263  coerceValue(myRows, value);
264  break;
265  case 7:
266  coerceValue(myCols, value);
267  break;
268  case 8:
269  coerceValue(myOrderu, value);
270  break;
271  case 9:
272  coerceValue(myOrderv, value);
273  break;
274  case 10:
275  coerceValue(myInterpu, value);
276  break;
277  case 11:
278  coerceValue(myInterpv, value);
279  break;
280 
281  }
282  }
283 
284  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
303  { doSetParmValue(idx, instance, value); }
304  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
305  { doSetParmValue(idx, instance, value); }
306 
307  exint getNestNumParms(TempIndex idx) const override
308  {
309  if (idx.size() == 0)
310  return 12;
311  switch (idx[0])
312  {
313 
314  }
315  // Invalid
316  return 0;
317  }
318 
319  const char *getNestParmName(TempIndex fieldnum) const override
320  {
321  if (fieldnum.size() < 1)
322  return 0;
323  switch (fieldnum[0])
324  {
325  case 0:
326  return "type";
327  case 1:
328  return "surftype";
329  case 2:
330  return "orient";
331  case 3:
332  return "size";
333  case 4:
334  return "t";
335  case 5:
336  return "r";
337  case 6:
338  return "rows";
339  case 7:
340  return "cols";
341  case 8:
342  return "orderu";
343  case 9:
344  return "orderv";
345  case 10:
346  return "interpu";
347  case 11:
348  return "interpv";
349 
350  }
351  return 0;
352  }
353 
354  ParmType getNestParmType(TempIndex fieldnum) const override
355  {
356  if (fieldnum.size() < 1)
357  return PARM_UNSUPPORTED;
358  switch (fieldnum[0])
359  {
360  case 0:
361  return PARM_INTEGER;
362  case 1:
363  return PARM_INTEGER;
364  case 2:
365  return PARM_INTEGER;
366  case 3:
367  return PARM_VECTOR2;
368  case 4:
369  return PARM_VECTOR3;
370  case 5:
371  return PARM_VECTOR3;
372  case 6:
373  return PARM_INTEGER;
374  case 7:
375  return PARM_INTEGER;
376  case 8:
377  return PARM_INTEGER;
378  case 9:
379  return PARM_INTEGER;
380  case 10:
381  return PARM_INTEGER;
382  case 11:
383  return PARM_INTEGER;
384 
385  }
386  return PARM_UNSUPPORTED;
387  }
388 
389  // Boiler plate to load individual types.
390  static void loadData(UT_IStream &is, int64 &v)
391  { is.bread(&v, 1); }
392  static void loadData(UT_IStream &is, bool &v)
393  { int64 iv; is.bread(&iv, 1); v = iv; }
394  static void loadData(UT_IStream &is, fpreal64 &v)
395  { is.bread<fpreal64>(&v, 1); }
396  static void loadData(UT_IStream &is, UT_Vector2D &v)
397  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector3D &v)
399  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
400  is.bread<fpreal64>(&v.z(), 1); }
401  static void loadData(UT_IStream &is, UT_Vector4D &v)
402  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
403  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
404  static void loadData(UT_IStream &is, UT_Matrix2D &v)
405  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
406  static void loadData(UT_IStream &is, UT_Matrix3D &v)
407  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
408  static void loadData(UT_IStream &is, UT_Matrix4D &v)
409  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
410  static void loadData(UT_IStream &is, UT_Vector2I &v)
411  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
412  static void loadData(UT_IStream &is, UT_Vector3I &v)
413  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
414  is.bread<int64>(&v.z(), 1); }
415  static void loadData(UT_IStream &is, UT_Vector4I &v)
416  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
417  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
419  { is.bread(v); }
421  { UT_StringHolder rampdata;
422  loadData(is, rampdata);
423  if (rampdata.isstring())
424  {
425  v.reset(new UT_Ramp());
426  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
427  v->load(istr);
428  }
429  else v.reset();
430  }
433  loadData(is, data);
434  if (data.isstring())
435  {
436  // Find the data type.
437  const char *colon = UT_StringWrap(data).findChar(':');
438  if (colon)
439  {
440  int typelen = colon - data.buffer();
442  type.strncpy(data.buffer(), typelen);
443  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
444 
445  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
446  }
447  }
448  else v.reset();
449  }
450 
451  static void saveData(std::ostream &os, int64 v)
452  { UTwrite(os, &v); }
453  static void saveData(std::ostream &os, bool v)
454  { int64 iv = v; UTwrite(os, &iv); }
455  static void saveData(std::ostream &os, fpreal64 v)
456  { UTwrite<fpreal64>(os, &v); }
457  static void saveData(std::ostream &os, UT_Vector2D v)
458  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
459  static void saveData(std::ostream &os, UT_Vector3D v)
460  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
461  UTwrite<fpreal64>(os, &v.z()); }
462  static void saveData(std::ostream &os, UT_Vector4D v)
463  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
464  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
465  static void saveData(std::ostream &os, UT_Matrix2D v)
467  static void saveData(std::ostream &os, UT_Matrix3D v)
469  static void saveData(std::ostream &os, UT_Matrix4D v)
471  static void saveData(std::ostream &os, UT_StringHolder s)
472  { UT_StringWrap(s).saveBinary(os); }
473  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
475  UT_OStringStream ostr;
476  if (s) s->save(ostr);
477  result = ostr.str();
478  saveData(os, result);
479  }
480  static void saveData(std::ostream &os, PRM_DataItemHandle s)
482  UT_OStringStream ostr;
483  if (s)
484  {
485  ostr << s->getDataTypeToken();
486  ostr << ":";
487  s->saveBinary(ostr);
488  }
489  result = ostr.str();
490  saveData(os, result);
491  }
492 
493 
494  void save(std::ostream &os) const
495  {
496  int32 v = version();
497  UTwrite(os, &v);
498  saveData(os, myType);
499  saveData(os, mySurftype);
500  saveData(os, myOrient);
501  saveData(os, mySize);
502  saveData(os, myT);
503  saveData(os, myR);
504  saveData(os, myRows);
505  saveData(os, myCols);
506  saveData(os, myOrderu);
507  saveData(os, myOrderv);
508  saveData(os, myInterpu);
509  saveData(os, myInterpv);
510 
511  }
512 
513  bool load(UT_IStream &is)
514  {
515  int32 v;
516  is.bread(&v, 1);
517  if (version() != v)
518  {
519  // Fail incompatible versions
520  return false;
521  }
522  loadData(is, myType);
523  loadData(is, mySurftype);
524  loadData(is, myOrient);
525  loadData(is, mySize);
526  loadData(is, myT);
527  loadData(is, myR);
528  loadData(is, myRows);
529  loadData(is, myCols);
530  loadData(is, myOrderu);
531  loadData(is, myOrderv);
532  loadData(is, myInterpu);
533  loadData(is, myInterpv);
534 
535  return true;
536  }
537 
538  Type getType() const { return Type(myType); }
539  void setType(Type val) { myType = int64(val); }
540  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getType();
544  int64 result;
545  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
546  return Type(result);
547  }
548  Surftype getSurftype() const { return Surftype(mySurftype); }
549  void setSurftype(Surftype val) { mySurftype = int64(val); }
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getSurftype();
554  int64 result;
555  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
556  return Surftype(result);
557  }
558  Orient getOrient() const { return Orient(myOrient); }
559  void setOrient(Orient val) { myOrient = int64(val); }
560  Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getOrient();
564  int64 result;
565  OP_Utils::evalOpParm(result, thissop, "orient", cookparms.getCookTime(), 0);
566  return Orient(result);
567  }
568  UT_Vector2D getSize() const { return mySize; }
569  void setSize(UT_Vector2D val) { mySize = val; }
571  {
572  SOP_Node *thissop = cookparms.getNode();
573  if (!thissop) return getSize();
575  OP_Utils::evalOpParm(result, thissop, "size", cookparms.getCookTime(), 0);
576  return result;
577  }
578  UT_Vector3D getT() const { return myT; }
579  void setT(UT_Vector3D val) { myT = val; }
580  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getT();
585  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
586  return result;
587  }
588  UT_Vector3D getR() const { return myR; }
589  void setR(UT_Vector3D val) { myR = val; }
590  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return getR();
595  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
596  return result;
597  }
598  int64 getRows() const { return myRows; }
599  void setRows(int64 val) { myRows = val; }
600  int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getRows();
604  int64 result;
605  OP_Utils::evalOpParm(result, thissop, "rows", cookparms.getCookTime(), 0);
606  return result;
607  }
608  int64 getCols() const { return myCols; }
609  void setCols(int64 val) { myCols = val; }
610  int64 opCols(const SOP_NodeVerb::CookParms &cookparms) const
611  {
612  SOP_Node *thissop = cookparms.getNode();
613  if (!thissop) return getCols();
614  int64 result;
615  OP_Utils::evalOpParm(result, thissop, "cols", cookparms.getCookTime(), 0);
616  return result;
617  }
618  int64 getOrderu() const { return myOrderu; }
619  void setOrderu(int64 val) { myOrderu = val; }
620  int64 opOrderu(const SOP_NodeVerb::CookParms &cookparms) const
621  {
622  SOP_Node *thissop = cookparms.getNode();
623  if (!thissop) return getOrderu();
624  int64 result;
625  OP_Utils::evalOpParm(result, thissop, "orderu", cookparms.getCookTime(), 0);
626  return result;
627  }
628  int64 getOrderv() const { return myOrderv; }
629  void setOrderv(int64 val) { myOrderv = val; }
630  int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
631  {
632  SOP_Node *thissop = cookparms.getNode();
633  if (!thissop) return getOrderv();
634  int64 result;
635  OP_Utils::evalOpParm(result, thissop, "orderv", cookparms.getCookTime(), 0);
636  return result;
637  }
638  bool getInterpu() const { return myInterpu; }
639  void setInterpu(bool val) { myInterpu = val; }
640  bool opInterpu(const SOP_NodeVerb::CookParms &cookparms) const
641  {
642  SOP_Node *thissop = cookparms.getNode();
643  if (!thissop) return getInterpu();
644  bool result;
645  OP_Utils::evalOpParm(result, thissop, "interpu", cookparms.getCookTime(), 0);
646  return result;
647  }
648  bool getInterpv() const { return myInterpv; }
649  void setInterpv(bool val) { myInterpv = val; }
650  bool opInterpv(const SOP_NodeVerb::CookParms &cookparms) const
651  {
652  SOP_Node *thissop = cookparms.getNode();
653  if (!thissop) return getInterpv();
654  bool result;
655  OP_Utils::evalOpParm(result, thissop, "interpv", cookparms.getCookTime(), 0);
656  return result;
657  }
658 
659 private:
660  int64 myType;
661  int64 mySurftype;
662  int64 myOrient;
663  UT_Vector2D mySize;
664  UT_Vector3D myT;
665  UT_Vector3D myR;
666  int64 myRows;
667  int64 myCols;
668  int64 myOrderu;
669  int64 myOrderv;
670  bool myInterpu;
671  bool myInterpv;
672 
673 };
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
GLdouble s
Definition: glew.h:1390
int64 getOrderv() const
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setOrderv(int64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool opInterpu(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
const char * getNestParmName(TempIndex fieldnum) const override
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
bool getInterpu() const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
GT_API const UT_StringHolder time
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static int version()
fpreal getTime() const
Definition: OP_Context.h:60
void save(std::ostream &os) const
UT_Vector2T< fpreal64 > UT_Vector2D
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLuint const GLfloat * val
Definition: glew.h:2794
Surftype getSurftype() const
bool getInterpv() const
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
void setT(UT_Vector3D val)
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_Vector2I &v)
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
bool operator==(const SOP_GridParms &src) const
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setInterpu(bool val)
void copyFrom(const SOP_NodeParms *src) override
const GLdouble * v
Definition: glew.h:1391
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setRows(int64 val)
void setOrderu(int64 val)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_Vector2D opSize(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
UT_Vector2D getSize() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
int64 getCols() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
bool opInterpv(const SOP_NodeVerb::CookParms &cookparms) const
void setOrient(Orient val)
Orient getOrient() const
exint length() 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_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const GLfloat * c
Definition: glew.h:16296
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setSize(UT_Vector2D val)
UT_Vector3T< fpreal64 > UT_Vector3D
void setSurftype(Surftype val)
int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
UT_Vector3D getR() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setCols(int64 val)
int64 opOrderu(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
Type getType() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
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)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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 setR(UT_Vector3D val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
int64 opRows(const SOP_NodeVerb::CookParms &cookparms) const
int64 getOrderu() const
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
GLuint64EXT * result
Definition: glew.h:14007
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setType(Type val)
static void loadData(UT_IStream &is, fpreal64 &v)
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
bool load(UT_IStream &is)
SYS_FORCE_INLINE bool isstring() const
int64 getRows() const
~SOP_GridParms() override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528