HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Normal.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_NormalEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  VERTICES,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33  enum class Type
34  {
35  TYPEPOINT = 0,
36  TYPEVERTEX,
37  TYPEPRIM,
39  };
40  enum class Method
41  {
42  UNIFORM = 0,
43  ANGLE,
44  AREA
45  };
46 }
47 
48 
50 {
51 public:
52  static int version() { return 1; }
53 
55  {
56  myGroup = ""_sh;
57  myGrouptype = 0;
58  myOverrideNormal = false;
59  myAttribName = "N"_sh;
60  myDoCompute = true;
61  myType = 1;
62  myCuspangle = 60;
63  myMethod = 1;
64  myOrigIfZero = true;
65  myNormalize = false;
66  myReverse = false;
67 
68  }
69 
70  explicit SOP_NormalParms(const SOP_NormalParms &) = default;
71 
72  ~SOP_NormalParms() override {}
73 
74  bool operator==(const SOP_NormalParms &src) const
75  {
76  if (myGroup != src.myGroup) return false;
77  if (myGrouptype != src.myGrouptype) return false;
78  if (myOverrideNormal != src.myOverrideNormal) return false;
79  if (myAttribName != src.myAttribName) return false;
80  if (myDoCompute != src.myDoCompute) return false;
81  if (myType != src.myType) return false;
82  if (myCuspangle != src.myCuspangle) return false;
83  if (myMethod != src.myMethod) return false;
84  if (myOrigIfZero != src.myOrigIfZero) return false;
85  if (myNormalize != src.myNormalize) return false;
86  if (myReverse != src.myReverse) return false;
87 
88  return true;
89  }
90  bool operator!=(const SOP_NormalParms &src) const
91  {
92  return !operator==(src);
93  }
97 
98 
99 
100  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
101  {
102  myGroup = ""_sh;
103  if (true)
104  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
105  myGrouptype = 0;
106  if (true)
107  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
108  myOverrideNormal = false;
109  if (true)
110  graph->evalOpParm(myOverrideNormal, nodeidx, "overridenormal", time, 0);
111  myAttribName = "N"_sh;
112  if (true && ( (!(((getOverrideNormal()==0)))) ) )
113  graph->evalOpParm(myAttribName, nodeidx, "normalattrib", time, 0);
114  myDoCompute = true;
115  if (true)
116  graph->evalOpParm(myDoCompute, nodeidx, "docompute", time, 0);
117  myType = 1;
118  if (true && ( (!(((getDoCompute()==0)))) ) )
119  graph->evalOpParm(myType, nodeidx, "type", time, 0);
120  myCuspangle = 60;
121  if (true && ( (!(((getDoCompute()==0))||((int64(getType())!=1)))) ) )
122  graph->evalOpParm(myCuspangle, nodeidx, "cuspangle", time, 0);
123  myMethod = 1;
124  if (true && ( (!(((getDoCompute()==0)))) ) )
125  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
126  myOrigIfZero = true;
127  if (true && ( (!(((getDoCompute()==0)))) ) )
128  graph->evalOpParm(myOrigIfZero, nodeidx, "origifzero", time, 0);
129  myNormalize = false;
130  if (true && ( (!(((getDoCompute()==1)))) ) )
131  graph->evalOpParm(myNormalize, nodeidx, "normalize", time, 0);
132  myReverse = false;
133  if (true)
134  graph->evalOpParm(myReverse, nodeidx, "reverse", time, 0);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const SOP_NodeParms *src) override
146  {
147  *this = *((const SOP_NormalParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myGroup);
163  break;
164  case 1:
165  coerceValue(value, myGrouptype);
166  break;
167  case 2:
168  coerceValue(value, myOverrideNormal);
169  break;
170  case 3:
171  coerceValue(value, myAttribName);
172  break;
173  case 4:
174  coerceValue(value, myDoCompute);
175  break;
176  case 5:
177  coerceValue(value, myType);
178  break;
179  case 6:
180  coerceValue(value, myCuspangle);
181  break;
182  case 7:
183  coerceValue(value, myMethod);
184  break;
185  case 8:
186  coerceValue(value, myOrigIfZero);
187  break;
188  case 9:
189  coerceValue(value, myNormalize);
190  break;
191  case 10:
192  coerceValue(value, myReverse);
193  break;
194 
195  }
196  }
197 
198  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
219  { doGetParmValue(idx, instance, value); }
220 
221  template <typename T>
222  void
223  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
224  {
225  if (idx.size() < 1)
226  return;
227  UT_ASSERT(idx.size() == instance.size()+1);
228  if (idx.size() != instance.size()+1)
229  return;
230  switch (idx[0])
231  {
232  case 0:
233  coerceValue(myGroup, value);
234  break;
235  case 1:
236  coerceValue(myGrouptype, value);
237  break;
238  case 2:
239  coerceValue(myOverrideNormal, value);
240  break;
241  case 3:
242  coerceValue(myAttribName, value);
243  break;
244  case 4:
245  coerceValue(myDoCompute, value);
246  break;
247  case 5:
248  coerceValue(myType, value);
249  break;
250  case 6:
251  coerceValue(myCuspangle, value);
252  break;
253  case 7:
254  coerceValue(myMethod, value);
255  break;
256  case 8:
257  coerceValue(myOrigIfZero, value);
258  break;
259  case 9:
260  coerceValue(myNormalize, value);
261  break;
262  case 10:
263  coerceValue(myReverse, value);
264  break;
265 
266  }
267  }
268 
269  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
290  { doSetParmValue(idx, instance, value); }
291 
292  exint getNestNumParms(TempIndex idx) const override
293  {
294  if (idx.size() == 0)
295  return 11;
296  switch (idx[0])
297  {
298 
299  }
300  // Invalid
301  return 0;
302  }
303 
304  const char *getNestParmName(TempIndex fieldnum) const override
305  {
306  if (fieldnum.size() < 1)
307  return 0;
308  switch (fieldnum[0])
309  {
310  case 0:
311  return "group";
312  case 1:
313  return "grouptype";
314  case 2:
315  return "overridenormal";
316  case 3:
317  return "normalattrib";
318  case 4:
319  return "docompute";
320  case 5:
321  return "type";
322  case 6:
323  return "cuspangle";
324  case 7:
325  return "method";
326  case 8:
327  return "origifzero";
328  case 9:
329  return "normalize";
330  case 10:
331  return "reverse";
332 
333  }
334  return 0;
335  }
336 
337  ParmType getNestParmType(TempIndex fieldnum) const override
338  {
339  if (fieldnum.size() < 1)
340  return PARM_UNSUPPORTED;
341  switch (fieldnum[0])
342  {
343  case 0:
344  return PARM_STRING;
345  case 1:
346  return PARM_INTEGER;
347  case 2:
348  return PARM_INTEGER;
349  case 3:
350  return PARM_STRING;
351  case 4:
352  return PARM_INTEGER;
353  case 5:
354  return PARM_INTEGER;
355  case 6:
356  return PARM_FLOAT;
357  case 7:
358  return PARM_INTEGER;
359  case 8:
360  return PARM_INTEGER;
361  case 9:
362  return PARM_INTEGER;
363  case 10:
364  return PARM_INTEGER;
365 
366  }
367  return PARM_UNSUPPORTED;
368  }
369 
370  // Boiler plate to load individual types.
371  static void loadData(UT_IStream &is, int64 &v)
372  { is.bread(&v, 1); }
373  static void loadData(UT_IStream &is, bool &v)
374  { int64 iv; is.bread(&iv, 1); v = iv; }
375  static void loadData(UT_IStream &is, fpreal64 &v)
376  { is.bread<fpreal64>(&v, 1); }
377  static void loadData(UT_IStream &is, UT_Vector2D &v)
378  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector3D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
381  is.bread<fpreal64>(&v.z(), 1); }
382  static void loadData(UT_IStream &is, UT_Vector4D &v)
383  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
384  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix2D &v)
386  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix3D &v)
388  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix4D &v)
390  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Vector2I &v)
392  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
393  static void loadData(UT_IStream &is, UT_Vector3I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
395  is.bread<int64>(&v.z(), 1); }
396  static void loadData(UT_IStream &is, UT_Vector4I &v)
397  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
398  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
400  { is.bread(v); }
402  { UT_StringHolder rampdata;
403  loadData(is, rampdata);
404  if (rampdata.isstring())
405  {
406  v.reset(new UT_Ramp());
407  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
408  v->load(istr);
409  }
410  else v.reset();
411  }
414  loadData(is, data);
415  if (data.isstring())
416  {
417  // Find the data type.
418  const char *colon = UT_StringWrap(data).findChar(':');
419  if (colon)
420  {
421  int typelen = colon - data.buffer();
423  type.strncpy(data.buffer(), typelen);
424  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
425 
426  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
427  }
428  }
429  else v.reset();
430  }
431 
432  static void saveData(std::ostream &os, int64 v)
433  { UTwrite(os, &v); }
434  static void saveData(std::ostream &os, bool v)
435  { int64 iv = v; UTwrite(os, &iv); }
436  static void saveData(std::ostream &os, fpreal64 v)
437  { UTwrite<fpreal64>(os, &v); }
438  static void saveData(std::ostream &os, UT_Vector2D v)
439  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
440  static void saveData(std::ostream &os, UT_Vector3D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
442  UTwrite<fpreal64>(os, &v.z()); }
443  static void saveData(std::ostream &os, UT_Vector4D v)
444  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
445  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
446  static void saveData(std::ostream &os, UT_Matrix2D v)
448  static void saveData(std::ostream &os, UT_Matrix3D v)
450  static void saveData(std::ostream &os, UT_Matrix4D v)
452  static void saveData(std::ostream &os, UT_StringHolder s)
453  { UT_StringWrap(s).saveBinary(os); }
454  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
456  UT_OStringStream ostr;
457  if (s) s->save(ostr);
458  result = ostr.str();
459  saveData(os, result);
460  }
461  static void saveData(std::ostream &os, PRM_DataItemHandle s)
463  UT_OStringStream ostr;
464  if (s)
465  {
466  ostr << s->getDataTypeToken();
467  ostr << ":";
468  s->saveBinary(ostr);
469  }
470  result = ostr.str();
471  saveData(os, result);
472  }
473 
474 
475  void save(std::ostream &os) const
476  {
477  int32 v = version();
478  UTwrite(os, &v);
479  saveData(os, myGroup);
480  saveData(os, myGrouptype);
481  saveData(os, myOverrideNormal);
482  saveData(os, myAttribName);
483  saveData(os, myDoCompute);
484  saveData(os, myType);
485  saveData(os, myCuspangle);
486  saveData(os, myMethod);
487  saveData(os, myOrigIfZero);
488  saveData(os, myNormalize);
489  saveData(os, myReverse);
490 
491  }
492 
493  bool load(UT_IStream &is)
494  {
495  int32 v;
496  is.bread(&v, 1);
497  if (version() != v)
498  {
499  // Fail incompatible versions
500  return false;
501  }
502  loadData(is, myGroup);
503  loadData(is, myGrouptype);
504  loadData(is, myOverrideNormal);
505  loadData(is, myAttribName);
506  loadData(is, myDoCompute);
507  loadData(is, myType);
508  loadData(is, myCuspangle);
509  loadData(is, myMethod);
510  loadData(is, myOrigIfZero);
511  loadData(is, myNormalize);
512  loadData(is, myReverse);
513 
514  return true;
515  }
516 
517  const UT_StringHolder & getGroup() const { return myGroup; }
518  void setGroup(const UT_StringHolder & val) { myGroup = val; }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getGroup();
524  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
525  return result;
526  }
527  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
528  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getGrouptype();
533  int64 result;
534  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
535  return Grouptype(result);
536  }
537  bool getOverrideNormal() const { return myOverrideNormal; }
538  void setOverrideNormal(bool val) { myOverrideNormal = val; }
539  bool opOverrideNormal(const SOP_NodeVerb::CookParms &cookparms) const
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getOverrideNormal();
543  bool result;
544  OP_Utils::evalOpParm(result, thissop, "overridenormal", cookparms.getCookTime(), 0);
545  return result;
546  }
547  const UT_StringHolder & getAttribName() const { return myAttribName; }
548  void setAttribName(const UT_StringHolder & val) { myAttribName = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getAttribName();
554  OP_Utils::evalOpParm(result, thissop, "normalattrib", cookparms.getCookTime(), 0);
555  return result;
556  }
557  bool getDoCompute() const { return myDoCompute; }
558  void setDoCompute(bool val) { myDoCompute = val; }
559  bool opDoCompute(const SOP_NodeVerb::CookParms &cookparms) const
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getDoCompute();
563  bool result;
564  OP_Utils::evalOpParm(result, thissop, "docompute", cookparms.getCookTime(), 0);
565  return result;
566  }
567  Type getType() const { return Type(myType); }
568  void setType(Type val) { myType = int64(val); }
569  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getType();
573  int64 result;
574  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
575  return Type(result);
576  }
577  fpreal64 getCuspangle() const { return myCuspangle; }
578  void setCuspangle(fpreal64 val) { myCuspangle = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getCuspangle();
584  OP_Utils::evalOpParm(result, thissop, "cuspangle", cookparms.getCookTime(), 0);
585  return result;
586  }
587  Method getMethod() const { return Method(myMethod); }
588  void setMethod(Method val) { myMethod = int64(val); }
589  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getMethod();
593  int64 result;
594  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
595  return Method(result);
596  }
597  bool getOrigIfZero() const { return myOrigIfZero; }
598  void setOrigIfZero(bool val) { myOrigIfZero = val; }
599  bool opOrigIfZero(const SOP_NodeVerb::CookParms &cookparms) const
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getOrigIfZero();
603  bool result;
604  OP_Utils::evalOpParm(result, thissop, "origifzero", cookparms.getCookTime(), 0);
605  return result;
606  }
607  bool getNormalize() const { return myNormalize; }
608  void setNormalize(bool val) { myNormalize = val; }
609  bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getNormalize();
613  bool result;
614  OP_Utils::evalOpParm(result, thissop, "normalize", cookparms.getCookTime(), 0);
615  return result;
616  }
617  bool getReverse() const { return myReverse; }
618  void setReverse(bool val) { myReverse = val; }
619  bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getReverse();
623  bool result;
624  OP_Utils::evalOpParm(result, thissop, "reverse", cookparms.getCookTime(), 0);
625  return result;
626  }
627 
628 private:
629  UT_StringHolder myGroup;
630  int64 myGrouptype;
631  bool myOverrideNormal;
632  UT_StringHolder myAttribName;
633  bool myDoCompute;
634  int64 myType;
635  fpreal64 myCuspangle;
636  int64 myMethod;
637  bool myOrigIfZero;
638  bool myNormalize;
639  bool myReverse;
640 
641 };
GLdouble s
Definition: glew.h:1390
bool getDoCompute() const
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
bool getOrigIfZero() const
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setNormalize(bool val)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Matrix4D &v)
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setGrouptype(Grouptype val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const GLdouble * v
Definition: glew.h:1391
bool opDoCompute(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
bool operator==(const SOP_NormalParms &src) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, fpreal64 v)
void setCuspangle(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setReverse(bool val)
void setOverrideNormal(bool val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setType(Type val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
double fpreal64
Definition: SYS_Types.h:201
void setAttribName(const UT_StringHolder &val)
bool opOverrideNormal(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool opOrigIfZero(const SOP_NodeVerb::CookParms &cookparms) const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
Method getMethod() const
void copyFrom(const SOP_NodeParms *src) override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint length() const
void setGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector3D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static int version()
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const GLfloat * c
Definition: glew.h:16296
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, int64 &v)
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool getNormalize() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setOrigIfZero(bool val)
Grouptype getGrouptype() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
bool getReverse() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
exint getNestNumParms(TempIndex idx) const override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, int64 v)
bool getOverrideNormal() const
UT_StringHolder opAttribName(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setMethod(Method val)
static void loadData(UT_IStream &is, fpreal64 &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
void setDoCompute(bool val)
const char * getNestParmName(TempIndex fieldnum) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
ParmType getNestParmType(TempIndex fieldnum) const override
bool load(UT_IStream &is)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
static void saveData(std::ostream &os, UT_Matrix4D v)
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void saveData(std::ostream &os, UT_Matrix3D v)
~SOP_NormalParms() override
static void loadData(UT_IStream &is, UT_Vector4I &v)
Type getType() const
static void saveData(std::ostream &os, UT_Vector3D v)
fpreal64 opCuspangle(const SOP_NodeVerb::CookParms &cookparms) const
GLsizei const GLfloat * value
Definition: glew.h:1849
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
const UT_StringHolder & getAttribName() const
fpreal64 getCuspangle() const
SYS_FORCE_INLINE bool isstring() const
bool operator!=(const SOP_NormalParms &src) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const UT_StringHolder & getGroup() const