HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribFromParm.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_AttribFromParmEnums
24 {
25  enum class Method
26  {
27  SINGLE = 0,
28  SUBNET,
29  COMPILE
30  };
31 }
32 
33 
35 {
36 public:
37  static int version() { return 1; }
38 
40  {
41  myMethod = 0;
42  myNodepath = ""_sh;
43  myCategory = "*"_sh;
44  myName = "parms"_sh;
45  myParmfilter = "*"_sh;
46  myFlattenmultiparm = false;
47  myFlattenramp = false;
48 
49  }
50 
51  explicit SOP_AttribFromParmParms(const SOP_AttribFromParmParms &) = default;
52 
54 
56  {
57  if (myMethod != src.myMethod) return false;
58  if (myNodepath != src.myNodepath) return false;
59  if (myCategory != src.myCategory) return false;
60  if (myName != src.myName) return false;
61  if (myParmfilter != src.myParmfilter) return false;
62  if (myFlattenmultiparm != src.myFlattenmultiparm) return false;
63  if (myFlattenramp != src.myFlattenramp) return false;
64 
65  return true;
66  }
68  {
69  return !operator==(src);
70  }
72 
73 
74 
75  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
76  {
77  myMethod = 0;
78  if (true)
79  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
80  myNodepath = ""_sh;
81  if (true)
82  graph->evalOpParm(myNodepath, nodeidx, "nodepath", time, 0);
83  myCategory = "*"_sh;
84  if (true)
85  graph->evalOpParm(myCategory, nodeidx, "category", time, 0);
86  myName = "parms"_sh;
87  if (true)
88  graph->evalOpParm(myName, nodeidx, "name", time, 0);
89  myParmfilter = "*"_sh;
90  if (true)
91  graph->evalOpParm(myParmfilter, nodeidx, "parmfilter", time, 0);
92  myFlattenmultiparm = false;
93  if (true)
94  graph->evalOpParm(myFlattenmultiparm, nodeidx, "flattenmultiparm", time, 0);
95  myFlattenramp = false;
96  if (true && ( (!(((getFlattenmultiparm()==1)))) ) )
97  graph->evalOpParm(myFlattenramp, nodeidx, "flattenramp", time, 0);
98 
99  }
100 
101 
102  void loadFromOpSubclass(const LoadParms &loadparms) override
103  {
104  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
105  }
106 
107 
108  void copyFrom(const SOP_NodeParms *src) override
109  {
110  *this = *((const SOP_AttribFromParmParms *)src);
111  }
112 
113  template <typename T>
114  void
115  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
116  {
117  if (idx.size() < 1)
118  return;
119  UT_ASSERT(idx.size() == instance.size()+1);
120  if (idx.size() != instance.size()+1)
121  return;
122  switch (idx[0])
123  {
124  case 0:
125  coerceValue(value, myMethod);
126  break;
127  case 1:
128  coerceValue(value, myNodepath);
129  break;
130  case 2:
131  coerceValue(value, myCategory);
132  break;
133  case 3:
134  coerceValue(value, myName);
135  break;
136  case 4:
137  coerceValue(value, myParmfilter);
138  break;
139  case 5:
140  coerceValue(value, myFlattenmultiparm);
141  break;
142  case 6:
143  coerceValue(value, myFlattenramp);
144  break;
145 
146  }
147  }
148 
149  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
150  { doGetParmValue(idx, instance, value); }
151  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
152  { doGetParmValue(idx, instance, value); }
153  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
170  { doGetParmValue(idx, instance, value); }
171 
172  template <typename T>
173  void
174  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
175  {
176  if (idx.size() < 1)
177  return;
178  UT_ASSERT(idx.size() == instance.size()+1);
179  if (idx.size() != instance.size()+1)
180  return;
181  switch (idx[0])
182  {
183  case 0:
184  coerceValue(myMethod, value);
185  break;
186  case 1:
187  coerceValue(myNodepath, value);
188  break;
189  case 2:
190  coerceValue(myCategory, value);
191  break;
192  case 3:
193  coerceValue(myName, value);
194  break;
195  case 4:
196  coerceValue(myParmfilter, value);
197  break;
198  case 5:
199  coerceValue(myFlattenmultiparm, value);
200  break;
201  case 6:
202  coerceValue(myFlattenramp, value);
203  break;
204 
205  }
206  }
207 
208  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
209  { doSetParmValue(idx, instance, value); }
210  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
211  { doSetParmValue(idx, instance, value); }
212  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
213  { doSetParmValue(idx, instance, value); }
214  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
215  { doSetParmValue(idx, instance, value); }
216  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
229  { doSetParmValue(idx, instance, value); }
230 
231  exint getNestNumParms(TempIndex idx) const override
232  {
233  if (idx.size() == 0)
234  return 7;
235  switch (idx[0])
236  {
237 
238  }
239  // Invalid
240  return 0;
241  }
242 
243  const char *getNestParmName(TempIndex fieldnum) const override
244  {
245  if (fieldnum.size() < 1)
246  return 0;
247  switch (fieldnum[0])
248  {
249  case 0:
250  return "method";
251  case 1:
252  return "nodepath";
253  case 2:
254  return "category";
255  case 3:
256  return "name";
257  case 4:
258  return "parmfilter";
259  case 5:
260  return "flattenmultiparm";
261  case 6:
262  return "flattenramp";
263 
264  }
265  return 0;
266  }
267 
268  ParmType getNestParmType(TempIndex fieldnum) const override
269  {
270  if (fieldnum.size() < 1)
271  return PARM_UNSUPPORTED;
272  switch (fieldnum[0])
273  {
274  case 0:
275  return PARM_INTEGER;
276  case 1:
277  return PARM_STRING;
278  case 2:
279  return PARM_STRING;
280  case 3:
281  return PARM_STRING;
282  case 4:
283  return PARM_STRING;
284  case 5:
285  return PARM_INTEGER;
286  case 6:
287  return PARM_INTEGER;
288 
289  }
290  return PARM_UNSUPPORTED;
291  }
292 
293  // Boiler plate to load individual types.
294  static void loadData(UT_IStream &is, int64 &v)
295  { is.bread(&v, 1); }
296  static void loadData(UT_IStream &is, bool &v)
297  { int64 iv; is.bread(&iv, 1); v = iv; }
298  static void loadData(UT_IStream &is, fpreal64 &v)
299  { is.bread<fpreal64>(&v, 1); }
300  static void loadData(UT_IStream &is, UT_Vector2D &v)
301  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
302  static void loadData(UT_IStream &is, UT_Vector3D &v)
303  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
304  is.bread<fpreal64>(&v.z(), 1); }
305  static void loadData(UT_IStream &is, UT_Vector4D &v)
306  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
307  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
308  static void loadData(UT_IStream &is, UT_Matrix2D &v)
309  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
310  static void loadData(UT_IStream &is, UT_Matrix3D &v)
311  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
312  static void loadData(UT_IStream &is, UT_Matrix4D &v)
313  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
314  static void loadData(UT_IStream &is, UT_Vector2I &v)
315  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
316  static void loadData(UT_IStream &is, UT_Vector3I &v)
317  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
318  is.bread<int64>(&v.z(), 1); }
319  static void loadData(UT_IStream &is, UT_Vector4I &v)
320  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
321  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
323  { is.bread(v); }
325  { UT_StringHolder rampdata;
326  loadData(is, rampdata);
327  if (rampdata.isstring())
328  {
329  v.reset(new UT_Ramp());
330  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
331  v->load(istr);
332  }
333  else v.reset();
334  }
337  loadData(is, data);
338  if (data.isstring())
339  {
340  // Find the data type.
341  const char *colon = UT_StringWrap(data).findChar(':');
342  if (colon)
343  {
344  int typelen = colon - data.buffer();
346  type.strncpy(data.buffer(), typelen);
347  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
348 
349  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
350  }
351  }
352  else v.reset();
353  }
354 
355  static void saveData(std::ostream &os, int64 v)
356  { UTwrite(os, &v); }
357  static void saveData(std::ostream &os, bool v)
358  { int64 iv = v; UTwrite(os, &iv); }
359  static void saveData(std::ostream &os, fpreal64 v)
360  { UTwrite<fpreal64>(os, &v); }
361  static void saveData(std::ostream &os, UT_Vector2D v)
362  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
363  static void saveData(std::ostream &os, UT_Vector3D v)
364  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
365  UTwrite<fpreal64>(os, &v.z()); }
366  static void saveData(std::ostream &os, UT_Vector4D v)
367  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
368  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
369  static void saveData(std::ostream &os, UT_Matrix2D v)
371  static void saveData(std::ostream &os, UT_Matrix3D v)
373  static void saveData(std::ostream &os, UT_Matrix4D v)
375  static void saveData(std::ostream &os, UT_StringHolder s)
376  { UT_StringWrap(s).saveBinary(os); }
377  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
379  UT_OStringStream ostr;
380  if (s) s->save(ostr);
381  result = ostr.str();
382  saveData(os, result);
383  }
384  static void saveData(std::ostream &os, PRM_DataItemHandle s)
386  UT_OStringStream ostr;
387  if (s)
388  {
389  ostr << s->getDataTypeToken();
390  ostr << ":";
391  s->saveBinary(ostr);
392  }
393  result = ostr.str();
394  saveData(os, result);
395  }
396 
397 
398  void save(std::ostream &os) const
399  {
400  int32 v = version();
401  UTwrite(os, &v);
402  saveData(os, myMethod);
403  saveData(os, myNodepath);
404  saveData(os, myCategory);
405  saveData(os, myName);
406  saveData(os, myParmfilter);
407  saveData(os, myFlattenmultiparm);
408  saveData(os, myFlattenramp);
409 
410  }
411 
412  bool load(UT_IStream &is)
413  {
414  int32 v;
415  is.bread(&v, 1);
416  if (version() != v)
417  {
418  // Fail incompatible versions
419  return false;
420  }
421  loadData(is, myMethod);
422  loadData(is, myNodepath);
423  loadData(is, myCategory);
424  loadData(is, myName);
425  loadData(is, myParmfilter);
426  loadData(is, myFlattenmultiparm);
427  loadData(is, myFlattenramp);
428 
429  return true;
430  }
431 
432  Method getMethod() const { return Method(myMethod); }
433  void setMethod(Method val) { myMethod = int64(val); }
434  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
435  {
436  SOP_Node *thissop = cookparms.getNode();
437  if (!thissop) return getMethod();
438  int64 result;
439  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
440  return Method(result);
441  }
442  const UT_StringHolder & getNodepath() const { return myNodepath; }
443  void setNodepath(const UT_StringHolder & val) { myNodepath = val; }
445  {
446  SOP_Node *thissop = cookparms.getNode();
447  if (!thissop) return getNodepath();
449  OP_Utils::evalOpParm(result, thissop, "nodepath", cookparms.getCookTime(), 0);
450  return result;
451  }
452  const UT_StringHolder & getCategory() const { return myCategory; }
453  void setCategory(const UT_StringHolder & val) { myCategory = val; }
455  {
456  SOP_Node *thissop = cookparms.getNode();
457  if (!thissop) return getCategory();
459  OP_Utils::evalOpParm(result, thissop, "category", cookparms.getCookTime(), 0);
460  return result;
461  }
462  const UT_StringHolder & getName() const { return myName; }
463  void setName(const UT_StringHolder & val) { myName = val; }
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getName();
469  OP_Utils::evalOpParm(result, thissop, "name", cookparms.getCookTime(), 0);
470  return result;
471  }
472  const UT_StringHolder & getParmfilter() const { return myParmfilter; }
473  void setParmfilter(const UT_StringHolder & val) { myParmfilter = val; }
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getParmfilter();
479  OP_Utils::evalOpParm(result, thissop, "parmfilter", cookparms.getCookTime(), 0);
480  return result;
481  }
482  bool getFlattenmultiparm() const { return myFlattenmultiparm; }
483  void setFlattenmultiparm(bool val) { myFlattenmultiparm = val; }
484  bool opFlattenmultiparm(const SOP_NodeVerb::CookParms &cookparms) const
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getFlattenmultiparm();
488  bool result;
489  OP_Utils::evalOpParm(result, thissop, "flattenmultiparm", cookparms.getCookTime(), 0);
490  return result;
491  }
492  bool getFlattenramp() const { return myFlattenramp; }
493  void setFlattenramp(bool val) { myFlattenramp = val; }
494  bool opFlattenramp(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getFlattenramp();
498  bool result;
499  OP_Utils::evalOpParm(result, thissop, "flattenramp", cookparms.getCookTime(), 0);
500  return result;
501  }
502 
503 private:
504  int64 myMethod;
505  UT_StringHolder myNodepath;
506  UT_StringHolder myCategory;
507  UT_StringHolder myName;
508  UT_StringHolder myParmfilter;
509  bool myFlattenmultiparm;
510  bool myFlattenramp;
511 
512 };
GLdouble s
Definition: glew.h:1390
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void copyFrom(const SOP_NodeParms *src) override
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setName(const UT_StringHolder &val)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, int64 &v)
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
const UT_StringHolder & getCategory() const
UT_StringHolder opName(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, fpreal64 &v)
const GLdouble * v
Definition: glew.h:1391
void setCategory(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, fpreal64 v)
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 loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
double fpreal64
Definition: SYS_Types.h:201
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
const UT_StringHolder & getName() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
const GLfloat * c
Definition: glew.h:16296
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
long long int64
Definition: SYS_Types.h:116
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
bool operator==(const SOP_AttribFromParmParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_StringHolder & getNodepath() const
static void saveData(std::ostream &os, bool v)
const char * getNestParmName(TempIndex fieldnum) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
static void saveData(std::ostream &os, UT_Vector4D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint getNestNumParms(TempIndex idx) const override
UT_StringHolder opNodepath(const SOP_NodeVerb::CookParms &cookparms) const
ParmType getNestParmType(TempIndex fieldnum) const override
const UT_StringHolder & getParmfilter() const
bool operator!=(const SOP_AttribFromParmParms &src) const
UT_StringHolder opCategory(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setNodepath(const UT_StringHolder &val)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Matrix2D &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
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
bool opFlattenmultiparm(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
UT_StringHolder opParmfilter(const SOP_NodeVerb::CookParms &cookparms) const
GLuint64EXT * result
Definition: glew.h:14007
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setParmfilter(const UT_StringHolder &val)
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
bool opFlattenramp(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void save(std::ostream &os) const
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_StringHolder s)