HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Ray.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_RayEnums
24 {
25  enum class Entity
26  {
27  PRIMITIVE = 0,
28  POINT
29  };
30  enum class Method
31  {
32  MINIMUM = 0,
33  PROJECT
34  };
35  enum class DirMethod
36  {
37  VECTOR = 0,
38  NORMAL,
39  ATTRIBUTE
40  };
41  enum class Combinetype
42  {
43  AVERAGE = 0,
44  MEDIAN,
45  SHORTEST,
46  LONGEST
47  };
48 }
49 
50 
52 {
53 public:
54  static int version() { return 1; }
55 
57  {
58  myGroup = ""_sh;
59  myEntity = 0;
60  myCollision = ""_sh;
61  myMethod = 1;
62  myDirMethod = 1;
63  myDir = UT_Vector3D(0,0,0);
64  myDirAttrib = "N"_sh;
65  myShowguide = true;
66  myDotrans = true;
67  myLookfar = false;
68  myPutnml = false;
69  myPutdist = false;
70  myReverserays = false;
71  myRtolerance = 0.01;
72  myScale = 1;
73  myLift = 0;
74  myBias = 0;
75  myMaxraydistcheck = false;
76  myMaxraydist = 0;
77  mySample = 1;
78  myJitter = 0;
79  myCombinetype = 0;
80  mySeed = 1;
81  myNewgrp = false;
82  myHitgrp = "rayHitGroup"_sh;
83  myUseprimnumattrib = false;
84  myPrimnumattrib = "hitprim"_sh;
85  myUseprimuvwattrib = false;
86  myPrimuvwattrib = "hitprimuv"_sh;
87  myGetptattribs = false;
88  myPtattribnames = "*"_sh;
89  myVertexattribnames = ""_sh;
90  myPrimitiveattribnames = ""_sh;
91  myDetailattribnames = ""_sh;
92 
93  }
94 
95  explicit SOP_RayParms(const SOP_RayParms &) = default;
96 
97  ~SOP_RayParms() override {}
98 
99  bool operator==(const SOP_RayParms &src) const
100  {
101  if (myGroup != src.myGroup) return false;
102  if (myEntity != src.myEntity) return false;
103  if (myCollision != src.myCollision) return false;
104  if (myMethod != src.myMethod) return false;
105  if (myDirMethod != src.myDirMethod) return false;
106  if (myDir != src.myDir) return false;
107  if (myDirAttrib != src.myDirAttrib) return false;
108  if (myShowguide != src.myShowguide) return false;
109  if (myDotrans != src.myDotrans) return false;
110  if (myLookfar != src.myLookfar) return false;
111  if (myPutnml != src.myPutnml) return false;
112  if (myPutdist != src.myPutdist) return false;
113  if (myReverserays != src.myReverserays) return false;
114  if (myRtolerance != src.myRtolerance) return false;
115  if (myScale != src.myScale) return false;
116  if (myLift != src.myLift) return false;
117  if (myBias != src.myBias) return false;
118  if (myMaxraydistcheck != src.myMaxraydistcheck) return false;
119  if (myMaxraydist != src.myMaxraydist) return false;
120  if (mySample != src.mySample) return false;
121  if (myJitter != src.myJitter) return false;
122  if (myCombinetype != src.myCombinetype) return false;
123  if (mySeed != src.mySeed) return false;
124  if (myNewgrp != src.myNewgrp) return false;
125  if (myHitgrp != src.myHitgrp) return false;
126  if (myUseprimnumattrib != src.myUseprimnumattrib) return false;
127  if (myPrimnumattrib != src.myPrimnumattrib) return false;
128  if (myUseprimuvwattrib != src.myUseprimuvwattrib) return false;
129  if (myPrimuvwattrib != src.myPrimuvwattrib) return false;
130  if (myGetptattribs != src.myGetptattribs) return false;
131  if (myPtattribnames != src.myPtattribnames) return false;
132  if (myVertexattribnames != src.myVertexattribnames) return false;
133  if (myPrimitiveattribnames != src.myPrimitiveattribnames) return false;
134  if (myDetailattribnames != src.myDetailattribnames) return false;
135 
136  return true;
137  }
138  bool operator!=(const SOP_RayParms &src) const
139  {
140  return !operator==(src);
141  }
146 
147 
148 
149  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
150  {
151  myGroup = ""_sh;
152  if (true)
153  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
154  myEntity = 0;
155  if (true)
156  graph->evalOpParm(myEntity, nodeidx, "entity", time, 0);
157  myCollision = ""_sh;
158  if (true)
159  graph->evalOpParm(myCollision, nodeidx, "collision", time, 0);
160  myMethod = 1;
161  if (true)
162  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
163  myDirMethod = 1;
164  if (true && ( (!(((int64(getMethod())!=1)))) ) )
165  graph->evalOpParm(myDirMethod, nodeidx, "dirmethod", time, 0);
166  myDir = UT_Vector3D(0,0,0);
167  if (true && ( (!(((int64(getMethod())!=1))||((int64(getDirMethod())!=0)))) ) )
168  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
169  myDirAttrib = "N"_sh;
170  if (true && ( (!(((int64(getMethod())!=1))||((int64(getDirMethod())!=2)))) ) )
171  graph->evalOpParm(myDirAttrib, nodeidx, "dirattrib", time, 0);
172  myShowguide = true;
173  if (true && ( (!(((int64(getMethod())>=0)))) ) )
174  graph->evalOpParm(myShowguide, nodeidx, "showguide", time, 0);
175  myDotrans = true;
176  if (true)
177  graph->evalOpParm(myDotrans, nodeidx, "dotrans", time, 0);
178  myLookfar = false;
179  if (true && ( (!(((int64(getMethod())!=1)))) ) )
180  graph->evalOpParm(myLookfar, nodeidx, "lookfar", time, 0);
181  myPutnml = false;
182  if (true)
183  graph->evalOpParm(myPutnml, nodeidx, "putnml", time, 0);
184  myPutdist = false;
185  if (true)
186  graph->evalOpParm(myPutdist, nodeidx, "putdist", time, 0);
187  myReverserays = false;
188  if (true && ( (!(((int64(getMethod())!=1)))) ) )
189  graph->evalOpParm(myReverserays, nodeidx, "reverserays", time, 0);
190  myRtolerance = 0.01;
191  if (true && ( (!(((int64(getMethod())!=1)))) ) )
192  graph->evalOpParm(myRtolerance, nodeidx, "rtolerance", time, 0);
193  myScale = 1;
194  if (true && ( (!(((getDotrans()==0)))) ) )
195  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
196  myLift = 0;
197  if (true)
198  graph->evalOpParm(myLift, nodeidx, "lift", time, 0);
199  myBias = 0;
200  if (true && ( (!(((int64(getMethod())!=1)))) ) )
201  graph->evalOpParm(myBias, nodeidx, "bias", time, 0);
202  myMaxraydistcheck = false;
203  if (true)
204  graph->evalOpParm(myMaxraydistcheck, nodeidx, "maxraydistcheck", time, 0);
205  myMaxraydist = 0;
206  if (true && ( (!(((getMaxraydistcheck()==0)))) ) )
207  graph->evalOpParm(myMaxraydist, nodeidx, "maxraydist", time, 0);
208  mySample = 1;
209  if (true && ( (!(((int64(getMethod())!=1)))) ) )
210  graph->evalOpParm(mySample, nodeidx, "sample", time, 0);
211  myJitter = 0;
212  if (true && ( (!(((int64(getMethod())!=1)))) ) )
213  graph->evalOpParm(myJitter, nodeidx, "jitter", time, 0);
214  myCombinetype = 0;
215  if (true && ( (!(((int64(getMethod())!=1)))) ) )
216  graph->evalOpParm(myCombinetype, nodeidx, "combinetype", time, 0);
217  mySeed = 1;
218  if (true && ( (!(((int64(getMethod())!=1)))) ) )
219  graph->evalOpParm(mySeed, nodeidx, "seed", time, 0);
220  myNewgrp = false;
221  if (true)
222  graph->evalOpParm(myNewgrp, nodeidx, "newgrp", time, 0);
223  myHitgrp = "rayHitGroup"_sh;
224  if (true && ( (!(((getNewgrp()==0)))) ) )
225  graph->evalOpParm(myHitgrp, nodeidx, "hitgrp", time, 0);
226  myUseprimnumattrib = false;
227  if (true)
228  graph->evalOpParm(myUseprimnumattrib, nodeidx, "useprimnumattrib", time, 0);
229  myPrimnumattrib = "hitprim"_sh;
230  if (true && ( (!(((getUseprimnumattrib()==0)))) ) )
231  graph->evalOpParm(myPrimnumattrib, nodeidx, "primnumattrib", time, 0);
232  myUseprimuvwattrib = false;
233  if (true)
234  graph->evalOpParm(myUseprimuvwattrib, nodeidx, "useprimuvwattrib", time, 0);
235  myPrimuvwattrib = "hitprimuv"_sh;
236  if (true && ( (!(((getUseprimuvwattrib()==0)))) ) )
237  graph->evalOpParm(myPrimuvwattrib, nodeidx, "primuvwattrib", time, 0);
238  myGetptattribs = false;
239  if (true)
240  graph->evalOpParm(myGetptattribs, nodeidx, "getptattribs", time, 0);
241  myPtattribnames = "*"_sh;
242  if (true && ( (!(((getGetptattribs()==0)))) ) )
243  graph->evalOpParm(myPtattribnames, nodeidx, "ptattribnames", time, 0);
244  myVertexattribnames = ""_sh;
245  if (true && ( (!(((getGetptattribs()==0)))) ) )
246  graph->evalOpParm(myVertexattribnames, nodeidx, "vertexattribnames", time, 0);
247  myPrimitiveattribnames = ""_sh;
248  if (true && ( (!(((getGetptattribs()==0)))) ) )
249  graph->evalOpParm(myPrimitiveattribnames, nodeidx, "primitiveattribnames", time, 0);
250  myDetailattribnames = ""_sh;
251  if (true && ( (!(((getGetptattribs()==0)))) ) )
252  graph->evalOpParm(myDetailattribnames, nodeidx, "detailattribnames", time, 0);
253 
254  }
255 
256 
257  void loadFromOpSubclass(const LoadParms &loadparms) override
258  {
259  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
260  }
261 
262 
263  void copyFrom(const SOP_NodeParms *src) override
264  {
265  *this = *((const SOP_RayParms *)src);
266  }
267 
268  template <typename T>
269  void
270  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
271  {
272  if (idx.size() < 1)
273  return;
274  UT_ASSERT(idx.size() == instance.size()+1);
275  if (idx.size() != instance.size()+1)
276  return;
277  switch (idx[0])
278  {
279  case 0:
280  coerceValue(value, myGroup);
281  break;
282  case 1:
283  coerceValue(value, myEntity);
284  break;
285  case 2:
286  coerceValue(value, myCollision);
287  break;
288  case 3:
289  coerceValue(value, myMethod);
290  break;
291  case 4:
292  coerceValue(value, myDirMethod);
293  break;
294  case 5:
295  coerceValue(value, myDir);
296  break;
297  case 6:
298  coerceValue(value, myDirAttrib);
299  break;
300  case 7:
301  coerceValue(value, myShowguide);
302  break;
303  case 8:
304  coerceValue(value, myDotrans);
305  break;
306  case 9:
307  coerceValue(value, myLookfar);
308  break;
309  case 10:
310  coerceValue(value, myPutnml);
311  break;
312  case 11:
313  coerceValue(value, myPutdist);
314  break;
315  case 12:
316  coerceValue(value, myReverserays);
317  break;
318  case 13:
319  coerceValue(value, myRtolerance);
320  break;
321  case 14:
322  coerceValue(value, myScale);
323  break;
324  case 15:
325  coerceValue(value, myLift);
326  break;
327  case 16:
328  coerceValue(value, myBias);
329  break;
330  case 17:
331  coerceValue(value, myMaxraydistcheck);
332  break;
333  case 18:
334  coerceValue(value, myMaxraydist);
335  break;
336  case 19:
337  coerceValue(value, mySample);
338  break;
339  case 20:
340  coerceValue(value, myJitter);
341  break;
342  case 21:
343  coerceValue(value, myCombinetype);
344  break;
345  case 22:
346  coerceValue(value, mySeed);
347  break;
348  case 23:
349  coerceValue(value, myNewgrp);
350  break;
351  case 24:
352  coerceValue(value, myHitgrp);
353  break;
354  case 25:
355  coerceValue(value, myUseprimnumattrib);
356  break;
357  case 26:
358  coerceValue(value, myPrimnumattrib);
359  break;
360  case 27:
361  coerceValue(value, myUseprimuvwattrib);
362  break;
363  case 28:
364  coerceValue(value, myPrimuvwattrib);
365  break;
366  case 29:
367  coerceValue(value, myGetptattribs);
368  break;
369  case 30:
370  coerceValue(value, myPtattribnames);
371  break;
372  case 31:
373  coerceValue(value, myVertexattribnames);
374  break;
375  case 32:
376  coerceValue(value, myPrimitiveattribnames);
377  break;
378  case 33:
379  coerceValue(value, myDetailattribnames);
380  break;
381 
382  }
383  }
384 
385  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
386  { doGetParmValue(idx, instance, value); }
387  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
388  { doGetParmValue(idx, instance, value); }
389  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
390  { doGetParmValue(idx, instance, value); }
391  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
392  { doGetParmValue(idx, instance, value); }
393  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
394  { doGetParmValue(idx, instance, value); }
395  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
396  { doGetParmValue(idx, instance, value); }
397  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
398  { doGetParmValue(idx, instance, value); }
399  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
400  { doGetParmValue(idx, instance, value); }
401  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
402  { doGetParmValue(idx, instance, value); }
403  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
404  { doGetParmValue(idx, instance, value); }
405  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
406  { doGetParmValue(idx, instance, value); }
407 
408  template <typename T>
409  void
410  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
411  {
412  if (idx.size() < 1)
413  return;
414  UT_ASSERT(idx.size() == instance.size()+1);
415  if (idx.size() != instance.size()+1)
416  return;
417  switch (idx[0])
418  {
419  case 0:
420  coerceValue(myGroup, value);
421  break;
422  case 1:
423  coerceValue(myEntity, value);
424  break;
425  case 2:
426  coerceValue(myCollision, value);
427  break;
428  case 3:
429  coerceValue(myMethod, value);
430  break;
431  case 4:
432  coerceValue(myDirMethod, value);
433  break;
434  case 5:
435  coerceValue(myDir, value);
436  break;
437  case 6:
438  coerceValue(myDirAttrib, value);
439  break;
440  case 7:
441  coerceValue(myShowguide, value);
442  break;
443  case 8:
444  coerceValue(myDotrans, value);
445  break;
446  case 9:
447  coerceValue(myLookfar, value);
448  break;
449  case 10:
450  coerceValue(myPutnml, value);
451  break;
452  case 11:
453  coerceValue(myPutdist, value);
454  break;
455  case 12:
456  coerceValue(myReverserays, value);
457  break;
458  case 13:
459  coerceValue(myRtolerance, value);
460  break;
461  case 14:
462  coerceValue(myScale, value);
463  break;
464  case 15:
465  coerceValue(myLift, value);
466  break;
467  case 16:
468  coerceValue(myBias, value);
469  break;
470  case 17:
471  coerceValue(myMaxraydistcheck, value);
472  break;
473  case 18:
474  coerceValue(myMaxraydist, value);
475  break;
476  case 19:
477  coerceValue(mySample, value);
478  break;
479  case 20:
480  coerceValue(myJitter, value);
481  break;
482  case 21:
483  coerceValue(myCombinetype, value);
484  break;
485  case 22:
486  coerceValue(mySeed, value);
487  break;
488  case 23:
489  coerceValue(myNewgrp, value);
490  break;
491  case 24:
492  coerceValue(myHitgrp, value);
493  break;
494  case 25:
495  coerceValue(myUseprimnumattrib, value);
496  break;
497  case 26:
498  coerceValue(myPrimnumattrib, value);
499  break;
500  case 27:
501  coerceValue(myUseprimuvwattrib, value);
502  break;
503  case 28:
504  coerceValue(myPrimuvwattrib, value);
505  break;
506  case 29:
507  coerceValue(myGetptattribs, value);
508  break;
509  case 30:
510  coerceValue(myPtattribnames, value);
511  break;
512  case 31:
513  coerceValue(myVertexattribnames, value);
514  break;
515  case 32:
516  coerceValue(myPrimitiveattribnames, value);
517  break;
518  case 33:
519  coerceValue(myDetailattribnames, value);
520  break;
521 
522  }
523  }
524 
525  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
526  { doSetParmValue(idx, instance, value); }
527  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
528  { doSetParmValue(idx, instance, value); }
529  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
530  { doSetParmValue(idx, instance, value); }
531  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
532  { doSetParmValue(idx, instance, value); }
533  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
534  { doSetParmValue(idx, instance, value); }
535  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
536  { doSetParmValue(idx, instance, value); }
537  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
538  { doSetParmValue(idx, instance, value); }
539  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
540  { doSetParmValue(idx, instance, value); }
541  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
542  { doSetParmValue(idx, instance, value); }
543  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
544  { doSetParmValue(idx, instance, value); }
545  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
546  { doSetParmValue(idx, instance, value); }
547 
548  exint getNestNumParms(TempIndex idx) const override
549  {
550  if (idx.size() == 0)
551  return 34;
552  switch (idx[0])
553  {
554 
555  }
556  // Invalid
557  return 0;
558  }
559 
560  const char *getNestParmName(TempIndex fieldnum) const override
561  {
562  if (fieldnum.size() < 1)
563  return 0;
564  switch (fieldnum[0])
565  {
566  case 0:
567  return "group";
568  case 1:
569  return "entity";
570  case 2:
571  return "collision";
572  case 3:
573  return "method";
574  case 4:
575  return "dirmethod";
576  case 5:
577  return "dir";
578  case 6:
579  return "dirattrib";
580  case 7:
581  return "showguide";
582  case 8:
583  return "dotrans";
584  case 9:
585  return "lookfar";
586  case 10:
587  return "putnml";
588  case 11:
589  return "putdist";
590  case 12:
591  return "reverserays";
592  case 13:
593  return "rtolerance";
594  case 14:
595  return "scale";
596  case 15:
597  return "lift";
598  case 16:
599  return "bias";
600  case 17:
601  return "maxraydistcheck";
602  case 18:
603  return "maxraydist";
604  case 19:
605  return "sample";
606  case 20:
607  return "jitter";
608  case 21:
609  return "combinetype";
610  case 22:
611  return "seed";
612  case 23:
613  return "newgrp";
614  case 24:
615  return "hitgrp";
616  case 25:
617  return "useprimnumattrib";
618  case 26:
619  return "primnumattrib";
620  case 27:
621  return "useprimuvwattrib";
622  case 28:
623  return "primuvwattrib";
624  case 29:
625  return "getptattribs";
626  case 30:
627  return "ptattribnames";
628  case 31:
629  return "vertexattribnames";
630  case 32:
631  return "primitiveattribnames";
632  case 33:
633  return "detailattribnames";
634 
635  }
636  return 0;
637  }
638 
639  ParmType getNestParmType(TempIndex fieldnum) const override
640  {
641  if (fieldnum.size() < 1)
642  return PARM_UNSUPPORTED;
643  switch (fieldnum[0])
644  {
645  case 0:
646  return PARM_STRING;
647  case 1:
648  return PARM_INTEGER;
649  case 2:
650  return PARM_STRING;
651  case 3:
652  return PARM_INTEGER;
653  case 4:
654  return PARM_INTEGER;
655  case 5:
656  return PARM_VECTOR3;
657  case 6:
658  return PARM_STRING;
659  case 7:
660  return PARM_INTEGER;
661  case 8:
662  return PARM_INTEGER;
663  case 9:
664  return PARM_INTEGER;
665  case 10:
666  return PARM_INTEGER;
667  case 11:
668  return PARM_INTEGER;
669  case 12:
670  return PARM_INTEGER;
671  case 13:
672  return PARM_FLOAT;
673  case 14:
674  return PARM_FLOAT;
675  case 15:
676  return PARM_FLOAT;
677  case 16:
678  return PARM_FLOAT;
679  case 17:
680  return PARM_INTEGER;
681  case 18:
682  return PARM_FLOAT;
683  case 19:
684  return PARM_INTEGER;
685  case 20:
686  return PARM_FLOAT;
687  case 21:
688  return PARM_INTEGER;
689  case 22:
690  return PARM_INTEGER;
691  case 23:
692  return PARM_INTEGER;
693  case 24:
694  return PARM_STRING;
695  case 25:
696  return PARM_INTEGER;
697  case 26:
698  return PARM_STRING;
699  case 27:
700  return PARM_INTEGER;
701  case 28:
702  return PARM_STRING;
703  case 29:
704  return PARM_INTEGER;
705  case 30:
706  return PARM_STRING;
707  case 31:
708  return PARM_STRING;
709  case 32:
710  return PARM_STRING;
711  case 33:
712  return PARM_STRING;
713 
714  }
715  return PARM_UNSUPPORTED;
716  }
717 
718  // Boiler plate to load individual types.
719  static void loadData(UT_IStream &is, int64 &v)
720  { is.bread(&v, 1); }
721  static void loadData(UT_IStream &is, bool &v)
722  { int64 iv; is.bread(&iv, 1); v = iv; }
723  static void loadData(UT_IStream &is, fpreal64 &v)
724  { is.bread<fpreal64>(&v, 1); }
725  static void loadData(UT_IStream &is, UT_Vector2D &v)
726  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
727  static void loadData(UT_IStream &is, UT_Vector3D &v)
728  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
729  is.bread<fpreal64>(&v.z(), 1); }
730  static void loadData(UT_IStream &is, UT_Vector4D &v)
731  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
732  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
733  static void loadData(UT_IStream &is, UT_Matrix2D &v)
734  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
735  static void loadData(UT_IStream &is, UT_Matrix3D &v)
736  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
737  static void loadData(UT_IStream &is, UT_Matrix4D &v)
738  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
739  static void loadData(UT_IStream &is, UT_Vector2I &v)
740  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
741  static void loadData(UT_IStream &is, UT_Vector3I &v)
742  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
743  is.bread<int64>(&v.z(), 1); }
744  static void loadData(UT_IStream &is, UT_Vector4I &v)
745  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
746  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
748  { is.bread(v); }
750  { UT_StringHolder rampdata;
751  loadData(is, rampdata);
752  if (rampdata.isstring())
753  {
754  v.reset(new UT_Ramp());
755  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
756  v->load(istr);
757  }
758  else v.reset();
759  }
762  loadData(is, data);
763  if (data.isstring())
764  {
765  // Find the data type.
766  const char *colon = UT_StringWrap(data).findChar(':');
767  if (colon)
768  {
769  int typelen = colon - data.buffer();
771  type.strncpy(data.buffer(), typelen);
772  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
773 
774  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
775  }
776  }
777  else v.reset();
778  }
779 
780  static void saveData(std::ostream &os, int64 v)
781  { UTwrite(os, &v); }
782  static void saveData(std::ostream &os, bool v)
783  { int64 iv = v; UTwrite(os, &iv); }
784  static void saveData(std::ostream &os, fpreal64 v)
785  { UTwrite<fpreal64>(os, &v); }
786  static void saveData(std::ostream &os, UT_Vector2D v)
787  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
788  static void saveData(std::ostream &os, UT_Vector3D v)
789  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
790  UTwrite<fpreal64>(os, &v.z()); }
791  static void saveData(std::ostream &os, UT_Vector4D v)
792  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
793  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
794  static void saveData(std::ostream &os, UT_Matrix2D v)
796  static void saveData(std::ostream &os, UT_Matrix3D v)
798  static void saveData(std::ostream &os, UT_Matrix4D v)
800  static void saveData(std::ostream &os, UT_StringHolder s)
801  { UT_StringWrap(s).saveBinary(os); }
802  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
804  UT_OStringStream ostr;
805  if (s) s->save(ostr);
806  result = ostr.str();
807  saveData(os, result);
808  }
809  static void saveData(std::ostream &os, PRM_DataItemHandle s)
811  UT_OStringStream ostr;
812  if (s)
813  {
814  ostr << s->getDataTypeToken();
815  ostr << ":";
816  s->saveBinary(ostr);
817  }
818  result = ostr.str();
819  saveData(os, result);
820  }
821 
822 
823  void save(std::ostream &os) const
824  {
825  int32 v = version();
826  UTwrite(os, &v);
827  saveData(os, myGroup);
828  saveData(os, myEntity);
829  saveData(os, myCollision);
830  saveData(os, myMethod);
831  saveData(os, myDirMethod);
832  saveData(os, myDir);
833  saveData(os, myDirAttrib);
834  saveData(os, myShowguide);
835  saveData(os, myDotrans);
836  saveData(os, myLookfar);
837  saveData(os, myPutnml);
838  saveData(os, myPutdist);
839  saveData(os, myReverserays);
840  saveData(os, myRtolerance);
841  saveData(os, myScale);
842  saveData(os, myLift);
843  saveData(os, myBias);
844  saveData(os, myMaxraydistcheck);
845  saveData(os, myMaxraydist);
846  saveData(os, mySample);
847  saveData(os, myJitter);
848  saveData(os, myCombinetype);
849  saveData(os, mySeed);
850  saveData(os, myNewgrp);
851  saveData(os, myHitgrp);
852  saveData(os, myUseprimnumattrib);
853  saveData(os, myPrimnumattrib);
854  saveData(os, myUseprimuvwattrib);
855  saveData(os, myPrimuvwattrib);
856  saveData(os, myGetptattribs);
857  saveData(os, myPtattribnames);
858  saveData(os, myVertexattribnames);
859  saveData(os, myPrimitiveattribnames);
860  saveData(os, myDetailattribnames);
861 
862  }
863 
864  bool load(UT_IStream &is)
865  {
866  int32 v;
867  is.bread(&v, 1);
868  if (version() != v)
869  {
870  // Fail incompatible versions
871  return false;
872  }
873  loadData(is, myGroup);
874  loadData(is, myEntity);
875  loadData(is, myCollision);
876  loadData(is, myMethod);
877  loadData(is, myDirMethod);
878  loadData(is, myDir);
879  loadData(is, myDirAttrib);
880  loadData(is, myShowguide);
881  loadData(is, myDotrans);
882  loadData(is, myLookfar);
883  loadData(is, myPutnml);
884  loadData(is, myPutdist);
885  loadData(is, myReverserays);
886  loadData(is, myRtolerance);
887  loadData(is, myScale);
888  loadData(is, myLift);
889  loadData(is, myBias);
890  loadData(is, myMaxraydistcheck);
891  loadData(is, myMaxraydist);
892  loadData(is, mySample);
893  loadData(is, myJitter);
894  loadData(is, myCombinetype);
895  loadData(is, mySeed);
896  loadData(is, myNewgrp);
897  loadData(is, myHitgrp);
898  loadData(is, myUseprimnumattrib);
899  loadData(is, myPrimnumattrib);
900  loadData(is, myUseprimuvwattrib);
901  loadData(is, myPrimuvwattrib);
902  loadData(is, myGetptattribs);
903  loadData(is, myPtattribnames);
904  loadData(is, myVertexattribnames);
905  loadData(is, myPrimitiveattribnames);
906  loadData(is, myDetailattribnames);
907 
908  return true;
909  }
910 
911  const UT_StringHolder & getGroup() const { return myGroup; }
912  void setGroup(const UT_StringHolder & val) { myGroup = val; }
914  {
915  SOP_Node *thissop = cookparms.getNode();
916  if (!thissop) return getGroup();
918  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
919  return result;
920  }
921  Entity getEntity() const { return Entity(myEntity); }
922  void setEntity(Entity val) { myEntity = int64(val); }
923  Entity opEntity(const SOP_NodeVerb::CookParms &cookparms) const
924  {
925  SOP_Node *thissop = cookparms.getNode();
926  if (!thissop) return getEntity();
927  int64 result;
928  OP_Utils::evalOpParm(result, thissop, "entity", cookparms.getCookTime(), 0);
929  return Entity(result);
930  }
931  const UT_StringHolder & getCollision() const { return myCollision; }
932  void setCollision(const UT_StringHolder & val) { myCollision = val; }
934  {
935  SOP_Node *thissop = cookparms.getNode();
936  if (!thissop) return getCollision();
938  OP_Utils::evalOpParm(result, thissop, "collision", cookparms.getCookTime(), 0);
939  return result;
940  }
941  Method getMethod() const { return Method(myMethod); }
942  void setMethod(Method val) { myMethod = int64(val); }
943  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
944  {
945  SOP_Node *thissop = cookparms.getNode();
946  if (!thissop) return getMethod();
947  int64 result;
948  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
949  return Method(result);
950  }
951  DirMethod getDirMethod() const { return DirMethod(myDirMethod); }
952  void setDirMethod(DirMethod val) { myDirMethod = int64(val); }
954  {
955  SOP_Node *thissop = cookparms.getNode();
956  if (!thissop) return getDirMethod();
957  int64 result;
958  OP_Utils::evalOpParm(result, thissop, "dirmethod", cookparms.getCookTime(), 0);
959  return DirMethod(result);
960  }
961  UT_Vector3D getDir() const { return myDir; }
962  void setDir(UT_Vector3D val) { myDir = val; }
963  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
964  {
965  SOP_Node *thissop = cookparms.getNode();
966  if (!thissop) return getDir();
968  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
969  return result;
970  }
971  const UT_StringHolder & getDirAttrib() const { return myDirAttrib; }
972  void setDirAttrib(const UT_StringHolder & val) { myDirAttrib = val; }
974  {
975  SOP_Node *thissop = cookparms.getNode();
976  if (!thissop) return getDirAttrib();
978  OP_Utils::evalOpParm(result, thissop, "dirattrib", cookparms.getCookTime(), 0);
979  return result;
980  }
981  bool getShowguide() const { return myShowguide; }
982  void setShowguide(bool val) { myShowguide = val; }
983  bool opShowguide(const SOP_NodeVerb::CookParms &cookparms) const
984  {
985  SOP_Node *thissop = cookparms.getNode();
986  if (!thissop) return getShowguide();
987  bool result;
988  OP_Utils::evalOpParm(result, thissop, "showguide", cookparms.getCookTime(), 0);
989  return result;
990  }
991  bool getDotrans() const { return myDotrans; }
992  void setDotrans(bool val) { myDotrans = val; }
993  bool opDotrans(const SOP_NodeVerb::CookParms &cookparms) const
994  {
995  SOP_Node *thissop = cookparms.getNode();
996  if (!thissop) return getDotrans();
997  bool result;
998  OP_Utils::evalOpParm(result, thissop, "dotrans", cookparms.getCookTime(), 0);
999  return result;
1000  }
1001  bool getLookfar() const { return myLookfar; }
1002  void setLookfar(bool val) { myLookfar = val; }
1003  bool opLookfar(const SOP_NodeVerb::CookParms &cookparms) const
1004  {
1005  SOP_Node *thissop = cookparms.getNode();
1006  if (!thissop) return getLookfar();
1007  bool result;
1008  OP_Utils::evalOpParm(result, thissop, "lookfar", cookparms.getCookTime(), 0);
1009  return result;
1010  }
1011  bool getPutnml() const { return myPutnml; }
1012  void setPutnml(bool val) { myPutnml = val; }
1013  bool opPutnml(const SOP_NodeVerb::CookParms &cookparms) const
1014  {
1015  SOP_Node *thissop = cookparms.getNode();
1016  if (!thissop) return getPutnml();
1017  bool result;
1018  OP_Utils::evalOpParm(result, thissop, "putnml", cookparms.getCookTime(), 0);
1019  return result;
1020  }
1021  bool getPutdist() const { return myPutdist; }
1022  void setPutdist(bool val) { myPutdist = val; }
1023  bool opPutdist(const SOP_NodeVerb::CookParms &cookparms) const
1024  {
1025  SOP_Node *thissop = cookparms.getNode();
1026  if (!thissop) return getPutdist();
1027  bool result;
1028  OP_Utils::evalOpParm(result, thissop, "putdist", cookparms.getCookTime(), 0);
1029  return result;
1030  }
1031  bool getReverserays() const { return myReverserays; }
1032  void setReverserays(bool val) { myReverserays = val; }
1033  bool opReverserays(const SOP_NodeVerb::CookParms &cookparms) const
1034  {
1035  SOP_Node *thissop = cookparms.getNode();
1036  if (!thissop) return getReverserays();
1037  bool result;
1038  OP_Utils::evalOpParm(result, thissop, "reverserays", cookparms.getCookTime(), 0);
1039  return result;
1040  }
1041  fpreal64 getRtolerance() const { return myRtolerance; }
1042  void setRtolerance(fpreal64 val) { myRtolerance = val; }
1044  {
1045  SOP_Node *thissop = cookparms.getNode();
1046  if (!thissop) return getRtolerance();
1047  fpreal64 result;
1048  OP_Utils::evalOpParm(result, thissop, "rtolerance", cookparms.getCookTime(), 0);
1049  return result;
1050  }
1051  fpreal64 getScale() const { return myScale; }
1052  void setScale(fpreal64 val) { myScale = val; }
1053  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
1054  {
1055  SOP_Node *thissop = cookparms.getNode();
1056  if (!thissop) return getScale();
1057  fpreal64 result;
1058  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
1059  return result;
1060  }
1061  fpreal64 getLift() const { return myLift; }
1062  void setLift(fpreal64 val) { myLift = val; }
1063  fpreal64 opLift(const SOP_NodeVerb::CookParms &cookparms) const
1064  {
1065  SOP_Node *thissop = cookparms.getNode();
1066  if (!thissop) return getLift();
1067  fpreal64 result;
1068  OP_Utils::evalOpParm(result, thissop, "lift", cookparms.getCookTime(), 0);
1069  return result;
1070  }
1071  fpreal64 getBias() const { return myBias; }
1072  void setBias(fpreal64 val) { myBias = val; }
1073  fpreal64 opBias(const SOP_NodeVerb::CookParms &cookparms) const
1074  {
1075  SOP_Node *thissop = cookparms.getNode();
1076  if (!thissop) return getBias();
1077  fpreal64 result;
1078  OP_Utils::evalOpParm(result, thissop, "bias", cookparms.getCookTime(), 0);
1079  return result;
1080  }
1081  bool getMaxraydistcheck() const { return myMaxraydistcheck; }
1082  void setMaxraydistcheck(bool val) { myMaxraydistcheck = val; }
1083  bool opMaxraydistcheck(const SOP_NodeVerb::CookParms &cookparms) const
1084  {
1085  SOP_Node *thissop = cookparms.getNode();
1086  if (!thissop) return getMaxraydistcheck();
1087  bool result;
1088  OP_Utils::evalOpParm(result, thissop, "maxraydistcheck", cookparms.getCookTime(), 0);
1089  return result;
1090  }
1091  fpreal64 getMaxraydist() const { return myMaxraydist; }
1092  void setMaxraydist(fpreal64 val) { myMaxraydist = val; }
1094  {
1095  SOP_Node *thissop = cookparms.getNode();
1096  if (!thissop) return getMaxraydist();
1097  fpreal64 result;
1098  OP_Utils::evalOpParm(result, thissop, "maxraydist", cookparms.getCookTime(), 0);
1099  return result;
1100  }
1101  int64 getSample() const { return mySample; }
1102  void setSample(int64 val) { mySample = val; }
1103  int64 opSample(const SOP_NodeVerb::CookParms &cookparms) const
1104  {
1105  SOP_Node *thissop = cookparms.getNode();
1106  if (!thissop) return getSample();
1107  int64 result;
1108  OP_Utils::evalOpParm(result, thissop, "sample", cookparms.getCookTime(), 0);
1109  return result;
1110  }
1111  fpreal64 getJitter() const { return myJitter; }
1112  void setJitter(fpreal64 val) { myJitter = val; }
1114  {
1115  SOP_Node *thissop = cookparms.getNode();
1116  if (!thissop) return getJitter();
1117  fpreal64 result;
1118  OP_Utils::evalOpParm(result, thissop, "jitter", cookparms.getCookTime(), 0);
1119  return result;
1120  }
1121  Combinetype getCombinetype() const { return Combinetype(myCombinetype); }
1122  void setCombinetype(Combinetype val) { myCombinetype = int64(val); }
1124  {
1125  SOP_Node *thissop = cookparms.getNode();
1126  if (!thissop) return getCombinetype();
1127  int64 result;
1128  OP_Utils::evalOpParm(result, thissop, "combinetype", cookparms.getCookTime(), 0);
1129  return Combinetype(result);
1130  }
1131  int64 getSeed() const { return mySeed; }
1132  void setSeed(int64 val) { mySeed = val; }
1133  int64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
1134  {
1135  SOP_Node *thissop = cookparms.getNode();
1136  if (!thissop) return getSeed();
1137  int64 result;
1138  OP_Utils::evalOpParm(result, thissop, "seed", cookparms.getCookTime(), 0);
1139  return result;
1140  }
1141  bool getNewgrp() const { return myNewgrp; }
1142  void setNewgrp(bool val) { myNewgrp = val; }
1143  bool opNewgrp(const SOP_NodeVerb::CookParms &cookparms) const
1144  {
1145  SOP_Node *thissop = cookparms.getNode();
1146  if (!thissop) return getNewgrp();
1147  bool result;
1148  OP_Utils::evalOpParm(result, thissop, "newgrp", cookparms.getCookTime(), 0);
1149  return result;
1150  }
1151  const UT_StringHolder & getHitgrp() const { return myHitgrp; }
1152  void setHitgrp(const UT_StringHolder & val) { myHitgrp = val; }
1154  {
1155  SOP_Node *thissop = cookparms.getNode();
1156  if (!thissop) return getHitgrp();
1158  OP_Utils::evalOpParm(result, thissop, "hitgrp", cookparms.getCookTime(), 0);
1159  return result;
1160  }
1161  bool getUseprimnumattrib() const { return myUseprimnumattrib; }
1162  void setUseprimnumattrib(bool val) { myUseprimnumattrib = val; }
1163  bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
1164  {
1165  SOP_Node *thissop = cookparms.getNode();
1166  if (!thissop) return getUseprimnumattrib();
1167  bool result;
1168  OP_Utils::evalOpParm(result, thissop, "useprimnumattrib", cookparms.getCookTime(), 0);
1169  return result;
1170  }
1171  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
1172  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
1174  {
1175  SOP_Node *thissop = cookparms.getNode();
1176  if (!thissop) return getPrimnumattrib();
1178  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
1179  return result;
1180  }
1181  bool getUseprimuvwattrib() const { return myUseprimuvwattrib; }
1182  void setUseprimuvwattrib(bool val) { myUseprimuvwattrib = val; }
1183  bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
1184  {
1185  SOP_Node *thissop = cookparms.getNode();
1186  if (!thissop) return getUseprimuvwattrib();
1187  bool result;
1188  OP_Utils::evalOpParm(result, thissop, "useprimuvwattrib", cookparms.getCookTime(), 0);
1189  return result;
1190  }
1191  const UT_StringHolder & getPrimuvwattrib() const { return myPrimuvwattrib; }
1192  void setPrimuvwattrib(const UT_StringHolder & val) { myPrimuvwattrib = val; }
1194  {
1195  SOP_Node *thissop = cookparms.getNode();
1196  if (!thissop) return getPrimuvwattrib();
1198  OP_Utils::evalOpParm(result, thissop, "primuvwattrib", cookparms.getCookTime(), 0);
1199  return result;
1200  }
1201  bool getGetptattribs() const { return myGetptattribs; }
1202  void setGetptattribs(bool val) { myGetptattribs = val; }
1203  bool opGetptattribs(const SOP_NodeVerb::CookParms &cookparms) const
1204  {
1205  SOP_Node *thissop = cookparms.getNode();
1206  if (!thissop) return getGetptattribs();
1207  bool result;
1208  OP_Utils::evalOpParm(result, thissop, "getptattribs", cookparms.getCookTime(), 0);
1209  return result;
1210  }
1211  const UT_StringHolder & getPtattribnames() const { return myPtattribnames; }
1212  void setPtattribnames(const UT_StringHolder & val) { myPtattribnames = val; }
1214  {
1215  SOP_Node *thissop = cookparms.getNode();
1216  if (!thissop) return getPtattribnames();
1218  OP_Utils::evalOpParm(result, thissop, "ptattribnames", cookparms.getCookTime(), 0);
1219  return result;
1220  }
1221  const UT_StringHolder & getVertexattribnames() const { return myVertexattribnames; }
1222  void setVertexattribnames(const UT_StringHolder & val) { myVertexattribnames = val; }
1224  {
1225  SOP_Node *thissop = cookparms.getNode();
1226  if (!thissop) return getVertexattribnames();
1228  OP_Utils::evalOpParm(result, thissop, "vertexattribnames", cookparms.getCookTime(), 0);
1229  return result;
1230  }
1231  const UT_StringHolder & getPrimitiveattribnames() const { return myPrimitiveattribnames; }
1232  void setPrimitiveattribnames(const UT_StringHolder & val) { myPrimitiveattribnames = val; }
1234  {
1235  SOP_Node *thissop = cookparms.getNode();
1236  if (!thissop) return getPrimitiveattribnames();
1238  OP_Utils::evalOpParm(result, thissop, "primitiveattribnames", cookparms.getCookTime(), 0);
1239  return result;
1240  }
1241  const UT_StringHolder & getDetailattribnames() const { return myDetailattribnames; }
1242  void setDetailattribnames(const UT_StringHolder & val) { myDetailattribnames = val; }
1244  {
1245  SOP_Node *thissop = cookparms.getNode();
1246  if (!thissop) return getDetailattribnames();
1248  OP_Utils::evalOpParm(result, thissop, "detailattribnames", cookparms.getCookTime(), 0);
1249  return result;
1250  }
1251 
1252 private:
1253  UT_StringHolder myGroup;
1254  int64 myEntity;
1255  UT_StringHolder myCollision;
1256  int64 myMethod;
1257  int64 myDirMethod;
1258  UT_Vector3D myDir;
1259  UT_StringHolder myDirAttrib;
1260  bool myShowguide;
1261  bool myDotrans;
1262  bool myLookfar;
1263  bool myPutnml;
1264  bool myPutdist;
1265  bool myReverserays;
1266  fpreal64 myRtolerance;
1267  fpreal64 myScale;
1268  fpreal64 myLift;
1269  fpreal64 myBias;
1270  bool myMaxraydistcheck;
1271  fpreal64 myMaxraydist;
1272  int64 mySample;
1273  fpreal64 myJitter;
1274  int64 myCombinetype;
1275  int64 mySeed;
1276  bool myNewgrp;
1277  UT_StringHolder myHitgrp;
1278  bool myUseprimnumattrib;
1279  UT_StringHolder myPrimnumattrib;
1280  bool myUseprimuvwattrib;
1281  UT_StringHolder myPrimuvwattrib;
1282  bool myGetptattribs;
1283  UT_StringHolder myPtattribnames;
1284  UT_StringHolder myVertexattribnames;
1285  UT_StringHolder myPrimitiveattribnames;
1286  UT_StringHolder myDetailattribnames;
1287 
1288 };
static void saveData(std::ostream &os, int64 v)
GLdouble s
Definition: glew.h:1390
fpreal64 getBias() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setPrimitiveattribnames(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
bool getUseprimnumattrib() const
GLenum src
Definition: glew.h:2410
void setLift(fpreal64 val)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void setHitgrp(const UT_StringHolder &val)
UT_StringHolder opCollision(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const UT_StringHolder & getDetailattribnames() const
fpreal64 getJitter() const
void copyFrom(const SOP_NodeParms *src) override
bool opLookfar(const SOP_NodeVerb::CookParms &cookparms) const
void setVertexattribnames(const UT_StringHolder &val)
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Vector2D &v)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
~SOP_RayParms() override
Definition: SOP_Ray.proto.h:97
static void loadData(UT_IStream &is, int64 &v)
GLuint const GLfloat * val
Definition: glew.h:2794
void setCombinetype(Combinetype val)
DirMethod opDirMethod(const SOP_NodeVerb::CookParms &cookparms) const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setBias(fpreal64 val)
void setPutdist(bool val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
bool opShowguide(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_StringHolder &v)
SYS_FORCE_INLINE const char * buffer() const
DirMethod getDirMethod() const
void setMaxraydist(fpreal64 val)
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
fpreal64 opBias(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
An output stream object that owns its own string buffer storage.
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setDotrans(bool val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool getShowguide() const
UT_StringHolder opPtattribnames(const SOP_NodeVerb::CookParms &cookparms) const
bool getReverserays() 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.
const UT_StringHolder & getDirAttrib() const
fpreal64 getScale() const
bool operator==(const SOP_RayParms &src) const
Definition: SOP_Ray.proto.h:99
void setDirMethod(DirMethod val)
void setGroup(const UT_StringHolder &val)
Combinetype getCombinetype() const
const UT_StringHolder & getHitgrp() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
double fpreal64
Definition: SYS_Types.h:201
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setSample(int64 val)
bool getDotrans() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setLookfar(bool val)
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMaxraydist(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
Entity getEntity() const
void setNewgrp(bool val)
fpreal64 getLift() const
Entity opEntity(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const UT_StringHolder & getVertexattribnames() const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
exint length() const
void setCollision(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SYS_FORCE_INLINE const char * buffer() const
void setMaxraydistcheck(bool val)
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
void setMethod(Method val)
void setRtolerance(fpreal64 val)
Combinetype opCombinetype(const SOP_NodeVerb::CookParms &cookparms) const
bool opDotrans(const SOP_NodeVerb::CookParms &cookparms) const
int64 getSeed() const
fpreal64 opRtolerance(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
bool opNewgrp(const SOP_NodeVerb::CookParms &cookparms) const
bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setUseprimnumattrib(bool val)
void setPutnml(bool val)
const char * getNestParmName(TempIndex fieldnum) const override
const GLfloat * c
Definition: glew.h:16296
UT_StringHolder opPrimitiveattribnames(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D getDir() const
const UT_StringHolder & getPrimitiveattribnames() const
Method getMethod() const
long long int64
Definition: SYS_Types.h:116
void loadFromOpSubclass(const LoadParms &loadparms) override
void setDetailattribnames(const UT_StringHolder &val)
void setUseprimuvwattrib(bool val)
int64 getSample() const
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_Vector3T< fpreal64 > UT_Vector3D
void setEntity(Entity val)
bool getLookfar() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool getUseprimuvwattrib() const
void setGetptattribs(bool val)
void setShowguide(bool val)
bool opGetptattribs(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setReverserays(bool val)
static void saveData(std::ostream &os, UT_Vector4D v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool opMaxraydistcheck(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
void setDirAttrib(const UT_StringHolder &val)
void setJitter(fpreal64 val)
void setScale(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
fpreal64 opJitter(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getMaxraydist() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void setPrimuvwattrib(const UT_StringHolder &val)
void setSeed(int64 val)
void save(std::ostream &os) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setPrimnumattrib(const UT_StringHolder &val)
fpreal64 fpreal
Definition: SYS_Types.h:277
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
fpreal64 opLift(const SOP_NodeVerb::CookParms &cookparms) const
bool getNewgrp() const
exint getNestNumParms(TempIndex idx) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setDir(UT_Vector3D val)
static void saveData(std::ostream &os, UT_Matrix2D v)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static int version()
Definition: SOP_Ray.proto.h:54
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
Definition: Mat.h:648
UT_StringHolder opDetailattribnames(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opVertexattribnames(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opHitgrp(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, bool &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getPtattribnames() const
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
void setPtattribnames(const UT_StringHolder &val)
bool opReverserays(const SOP_NodeVerb::CookParms &cookparms) const
bool getMaxraydistcheck() const
GLuint64EXT * result
Definition: glew.h:14007
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getGroup() const
fpreal64 getRtolerance() const
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
UT_StringHolder opDirAttrib(const SOP_NodeVerb::CookParms &cookparms) const
bool getGetptattribs() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool getPutnml() const
const UT_StringHolder & getCollision() const
static void saveData(std::ostream &os, UT_Vector2D v)
bool getPutdist() const
static void saveData(std::ostream &os, fpreal64 v)
const UT_StringHolder & getPrimuvwattrib() const
bool operator!=(const SOP_RayParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
GLsizei const GLfloat * value
Definition: glew.h:1849
bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, fpreal64 &v)
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)
bool opPutnml(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
bool opPutdist(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
const UT_StringHolder & getPrimnumattrib() const
int64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:528
int64 opSample(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)