HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PointCloudReduce.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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_PointCloudReduceEnums
24 {
25  enum class Samplemethod
26  {
27  AVERAGE = 0,
28  CLOSEST,
29  RANDOM
30  };
31 
33  getToken(Samplemethod enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case Samplemethod::AVERAGE: return "average"_sh;
38  case Samplemethod::CLOSEST: return "closest"_sh;
39  case Samplemethod::RANDOM: return "random"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myGroup = ""_UTsh;
55  myVoxelsize = 0.1;
56  mySamplemethod = 0;
57  mySeed = 0;
58  myUsepopulation = false;
59  myPopulation = "population"_UTsh;
60 
61  }
62 
63  explicit SOP_PointCloudReduceParms(const SOP_PointCloudReduceParms &) = default;
66  SOP_PointCloudReduceParms &operator=(SOP_PointCloudReduceParms &&) noexcept = default;
67 
69 
71  {
72  if (myGroup != src.myGroup) return false;
73  if (myVoxelsize != src.myVoxelsize) return false;
74  if (mySamplemethod != src.mySamplemethod) return false;
75  if (mySeed != src.mySeed) return false;
76  if (myUsepopulation != src.myUsepopulation) return false;
77  if (myPopulation != src.myPopulation) return false;
78 
79  return true;
80  }
82  {
83  return !operator==(src);
84  }
86 
87 
88 
89  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
90  {
91  myGroup = ""_UTsh;
92  if (true)
93  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
94  myVoxelsize = 0.1;
95  if (true && ( (true&&!((((graph->getInput(nodeidx,1)>=0)==1)))) ) )
96  graph->evalOpParm(myVoxelsize, nodeidx, "voxelsize", time, 0);
97  mySamplemethod = 0;
98  if (true)
99  graph->evalOpParm(mySamplemethod, nodeidx, "samplemethod", time, 0);
100  mySeed = 0;
101  if (true && ( (true&&!(((int64(getSamplemethod())!=2))||((int64(getSamplemethod())!=2)))) ) )
102  graph->evalOpParm(mySeed, nodeidx, "seed", time, 0);
103  myUsepopulation = false;
104  if (true)
105  graph->evalOpParm(myUsepopulation, nodeidx, "usepopulation", time, 0);
106  myPopulation = "population"_UTsh;
107  if (true && ( (true&&!(((getUsepopulation()==0)))) ) )
108  graph->evalOpParm(myPopulation, nodeidx, "population", time, 0);
109 
110  }
111 
112 
113  void loadFromOpSubclass(const LoadParms &loadparms) override
114  {
115  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
116  }
117 
118 
119  void copyFrom(const OP_NodeParms *src) override
120  {
121  *this = *((const SOP_PointCloudReduceParms *)src);
122  }
123 
124  template <typename T>
125  void
126  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
127  {
128  if (idx.size() < 1)
129  return;
130  UT_ASSERT(idx.size() == instance.size()+1);
131  if (idx.size() != instance.size()+1)
132  return;
133  switch (idx[0])
134  {
135  case 0:
136  coerceValue(value, myGroup);
137  break;
138  case 1:
139  coerceValue(value, myVoxelsize);
140  break;
141  case 2:
142  coerceValue(value, mySamplemethod);
143  break;
144  case 3:
145  coerceValue(value, mySeed);
146  break;
147  case 4:
148  coerceValue(value, myUsepopulation);
149  break;
150  case 5:
151  coerceValue(value, myPopulation);
152  break;
153 
154  }
155  }
156 
157  bool isParmColorRamp(exint idx) const override
158  {
159  switch (idx)
160  {
161 
162  }
163  return false;
164  }
165 
166  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
187  { doGetParmValue(idx, instance, value); }
188 
189  template <typename T>
190  void
191  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
192  {
193  if (idx.size() < 1)
194  return;
195  UT_ASSERT(idx.size() == instance.size()+1);
196  if (idx.size() != instance.size()+1)
197  return;
198  switch (idx[0])
199  {
200  case 0:
201  coerceValue(myGroup, ( ( value ) ));
202  break;
203  case 1:
204  coerceValue(myVoxelsize, ( clampMaxValue(-05, value ) ));
205  break;
206  case 2:
207  coerceValue(mySamplemethod, clampMinValue(0, clampMaxValue(2, value ) ));
208  break;
209  case 3:
210  coerceValue(mySeed, ( ( value ) ));
211  break;
212  case 4:
213  coerceValue(myUsepopulation, ( ( value ) ));
214  break;
215  case 5:
216  coerceValue(myPopulation, ( ( value ) ));
217  break;
218 
219  }
220  }
221 
222  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
243  { doSetParmValue(idx, instance, value); }
244 
245  exint getNestNumParms(TempIndex idx) const override
246  {
247  if (idx.size() == 0)
248  return 6;
249  switch (idx[0])
250  {
251 
252  }
253  // Invalid
254  return 0;
255  }
256 
257  const char *getNestParmName(TempIndex fieldnum) const override
258  {
259  if (fieldnum.size() < 1)
260  return 0;
261  switch (fieldnum[0])
262  {
263  case 0:
264  return "group";
265  case 1:
266  return "voxelsize";
267  case 2:
268  return "samplemethod";
269  case 3:
270  return "seed";
271  case 4:
272  return "usepopulation";
273  case 5:
274  return "population";
275 
276  }
277  return 0;
278  }
279 
280  ParmType getNestParmType(TempIndex fieldnum) const override
281  {
282  if (fieldnum.size() < 1)
283  return PARM_UNSUPPORTED;
284  switch (fieldnum[0])
285  {
286  case 0:
287  return PARM_STRING;
288  case 1:
289  return PARM_FLOAT;
290  case 2:
291  return PARM_INTEGER;
292  case 3:
293  return PARM_FLOAT;
294  case 4:
295  return PARM_INTEGER;
296  case 5:
297  return PARM_STRING;
298 
299  }
300  return PARM_UNSUPPORTED;
301  }
302 
303  // Boiler plate to load individual types.
304  static void loadData(UT_IStream &is, int64 &v)
305  { is.bread(&v, 1); }
306  static void loadData(UT_IStream &is, bool &v)
307  { int64 iv; is.bread(&iv, 1); v = iv; }
308  static void loadData(UT_IStream &is, fpreal64 &v)
309  { is.bread<fpreal64>(&v, 1); }
310  static void loadData(UT_IStream &is, UT_Vector2D &v)
311  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
312  static void loadData(UT_IStream &is, UT_Vector3D &v)
313  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
314  is.bread<fpreal64>(&v.z(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector4D &v)
316  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
317  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
318  static void loadData(UT_IStream &is, UT_Matrix2D &v)
319  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
320  static void loadData(UT_IStream &is, UT_Matrix3D &v)
321  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
322  static void loadData(UT_IStream &is, UT_Matrix4D &v)
323  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
324  static void loadData(UT_IStream &is, UT_Vector2I &v)
325  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
326  static void loadData(UT_IStream &is, UT_Vector3I &v)
327  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
328  is.bread<int64>(&v.z(), 1); }
329  static void loadData(UT_IStream &is, UT_Vector4I &v)
330  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
331  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
333  { is.bread(v); }
335  { UT_StringHolder rampdata;
336  loadData(is, rampdata);
337  if (rampdata.isstring())
338  {
339  v.reset(new UT_Ramp());
340  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
341  v->load(istr);
342  }
343  else v.reset();
344  }
347  loadData(is, data);
348  if (data.isstring())
349  {
350  // Find the data type.
351  const char *colon = UT_StringWrap(data).findChar(':');
352  if (colon)
353  {
354  int typelen = colon - data.buffer();
356  type.strncpy(data.buffer(), typelen);
357  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
358 
359  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
360  }
361  }
362  else v.reset();
363  }
364 
365  static void saveData(std::ostream &os, int64 v)
366  { UTwrite(os, &v); }
367  static void saveData(std::ostream &os, bool v)
368  { int64 iv = v; UTwrite(os, &iv); }
369  static void saveData(std::ostream &os, fpreal64 v)
370  { UTwrite<fpreal64>(os, &v); }
371  static void saveData(std::ostream &os, UT_Vector2D v)
372  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
373  static void saveData(std::ostream &os, UT_Vector3D v)
374  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
375  UTwrite<fpreal64>(os, &v.z()); }
376  static void saveData(std::ostream &os, UT_Vector4D v)
377  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
378  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
379  static void saveData(std::ostream &os, UT_Matrix2D v)
381  static void saveData(std::ostream &os, UT_Matrix3D v)
383  static void saveData(std::ostream &os, UT_Matrix4D v)
385  static void saveData(std::ostream &os, UT_StringHolder s)
386  { UT_StringWrap(s).saveBinary(os); }
387  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
389  UT_OStringStream ostr;
390  if (s) s->save(ostr);
391  result = ostr.str();
392  saveData(os, result);
393  }
394  static void saveData(std::ostream &os, PRM_DataItemHandle s)
396  UT_OStringStream ostr;
397  if (s)
398  {
399  ostr << s->getDataTypeToken();
400  ostr << ":";
401  s->saveBinary(ostr);
402  }
403  result = ostr.str();
404  saveData(os, result);
405  }
406 
407 
408  void save(std::ostream &os) const
409  {
410  int32 v = version();
411  UTwrite(os, &v);
412  saveData(os, myGroup);
413  saveData(os, myVoxelsize);
414  saveData(os, mySamplemethod);
415  saveData(os, mySeed);
416  saveData(os, myUsepopulation);
417  saveData(os, myPopulation);
418 
419  }
420 
421  bool load(UT_IStream &is)
422  {
423  int32 v;
424  is.bread(&v, 1);
425  if (version() != v)
426  {
427  // Fail incompatible versions
428  return false;
429  }
430  loadData(is, myGroup);
431  loadData(is, myVoxelsize);
432  loadData(is, mySamplemethod);
433  loadData(is, mySeed);
434  loadData(is, myUsepopulation);
435  loadData(is, myPopulation);
436 
437  return true;
438  }
439 
440  const UT_StringHolder & getGroup() const { return myGroup; }
441  void setGroup(const UT_StringHolder & val) { myGroup = val; }
443  {
444  SOP_Node *thissop = cookparms.getNode();
445  if (!thissop) return getGroup();
447  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
448  return result;
449  }
450  fpreal64 getVoxelsize() const { return myVoxelsize; }
451  void setVoxelsize(fpreal64 val) { myVoxelsize = val; }
453  {
454  SOP_Node *thissop = cookparms.getNode();
455  if (!thissop) return getVoxelsize();
457  OP_Utils::evalOpParm(result, thissop, "voxelsize", cookparms.getCookTime(), 0);
458  return result;
459  }
460  Samplemethod getSamplemethod() const { return Samplemethod(mySamplemethod); }
461  void setSamplemethod(Samplemethod val) { mySamplemethod = int64(val); }
463  {
464  SOP_Node *thissop = cookparms.getNode();
465  if (!thissop) return getSamplemethod();
466  int64 result;
467  OP_Utils::evalOpParm(result, thissop, "samplemethod", cookparms.getCookTime(), 0);
468  return Samplemethod(result);
469  }
470  fpreal64 getSeed() const { return mySeed; }
471  void setSeed(fpreal64 val) { mySeed = val; }
472  fpreal64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getSeed();
477  OP_Utils::evalOpParm(result, thissop, "seed", cookparms.getCookTime(), 0);
478  return result;
479  }
480  bool getUsepopulation() const { return myUsepopulation; }
481  void setUsepopulation(bool val) { myUsepopulation = val; }
482  bool opUsepopulation(const SOP_NodeVerb::CookParms &cookparms) const
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getUsepopulation();
486  bool result;
487  OP_Utils::evalOpParm(result, thissop, "usepopulation", cookparms.getCookTime(), 0);
488  return result;
489  }
490  const UT_StringHolder & getPopulation() const { return myPopulation; }
491  void setPopulation(const UT_StringHolder & val) { myPopulation = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getPopulation();
497  OP_Utils::evalOpParm(result, thissop, "population", cookparms.getCookTime(), 0);
498  return result;
499  }
500 
501 private:
502  UT_StringHolder myGroup;
503  fpreal64 myVoxelsize;
504  int64 mySamplemethod;
505  fpreal64 mySeed;
506  bool myUsepopulation;
507  UT_StringHolder myPopulation;
508 
509 };
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setSamplemethod(Samplemethod val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
UT_StringHolder opPopulation(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
void setGroup(const UT_StringHolder &val)
fpreal getTime() const
Definition: OP_Context.h:62
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool operator==(const SOP_PointCloudReduceParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector3I &v)
**But if you need a result
Definition: thread.h:613
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
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, UT_Matrix3D v)
virtual NodeIdx getInput(NodeIdx idx, int input, bool markused=false) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
Samplemethod opSamplemethod(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void save(std::ostream &os) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, fpreal64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
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:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 opVoxelsize(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
long long int64
Definition: SYS_Types.h:116
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_StringHolder s)
bool operator!=(const SOP_PointCloudReduceParms &src) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const UT_StringHolder & getPopulation() const
const UT_StringHolder & getGroup() const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint getNestNumParms(TempIndex idx) const override
fpreal64 opSeed(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE UT_StringHolder getToken(Samplemethod enum_value)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
bool opUsepopulation(const SOP_NodeVerb::CookParms &cookparms) const
void setPopulation(const UT_StringHolder &val)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663