HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_OpenCLParms.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 
7 #include <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 
23 {
24 public:
25  static int version() { return 2; }
26  struct Bindings
27  {
44  bool readable;
45  bool writeable;
46  bool optional;
47 
48 
50  {
51  name = ""_sh;
52  type = 0;
53  intval = 0;
54  fval = 0;
55  v3val = 0;
56  v4val = 0;
57  timescale = 0;
58  fieldname = ""_sh;
59  fieldoffsets = false;
60  ramp = UT_SharedPtr<UT_Ramp>(0);
61  rampsize = 0;
62  geometry = ""_sh;
63  attribute = ""_sh;
64  attribclass = 0;
65  attribtype = 0;
66  attribsize = 0;
67  readable = false;
68  writeable = false;
69  optional = false;
70 
71  }
72 
73  bool operator==(const Bindings &src) const
74  {
75  if (name != src.name) return false;
76  if (type != src.type) return false;
77  if (intval != src.intval) return false;
78  if (fval != src.fval) return false;
79  if (v3val != src.v3val) return false;
80  if (v4val != src.v4val) return false;
81  if (timescale != src.timescale) return false;
82  if (fieldname != src.fieldname) return false;
83  if (fieldoffsets != src.fieldoffsets) return false;
84  if (ramp != src.ramp)
85  { if (!ramp || !src.ramp || !(*ramp == *src.ramp)) return false; }
86  if (rampsize != src.rampsize) return false;
87  if (geometry != src.geometry) return false;
88  if (attribute != src.attribute) return false;
89  if (attribclass != src.attribclass) return false;
90  if (attribtype != src.attribtype) return false;
91  if (attribsize != src.attribsize) return false;
92  if (readable != src.readable) return false;
93  if (writeable != src.writeable) return false;
94  if (optional != src.optional) return false;
95 
96  return true;
97  }
98 
99  };
100 
102  {
104 
105  buf.strcat("[ ");
106  for (int i = 0; i < list.entries(); i++)
107  {
108  if (i)
109  buf.strcat(", ");
110  buf.strcat("( ");
111  buf.append("");
112  { UT_String tmp; tmp = UT_StringWrap(list(i).name).makeQuotedString('"'); buf.strcat(tmp); }
113  buf.append(", ");
114  buf.appendSprintf("%d", (int) list(i).type);
115  buf.append(", ");
116  buf.appendSprintf("%d", (int) list(i).intval);
117  buf.append(", ");
118  buf.appendSprintf("%f", (list(i).fval));
119  buf.append(", ");
120  buf.appendSprintf("(%f, %f, %f)", list(i).v3val.x(), list(i).v3val.y(), list(i).v3val.z());
121  buf.append(", ");
122  buf.appendSprintf("(%f, %f, %f, %f)", list(i).v4val.x(), list(i).v4val.y(), list(i).v4val.z(), list(i).v4val.w());
123  buf.append(", ");
124  buf.appendSprintf("%d", (int) list(i).timescale);
125  buf.append(", ");
126  { UT_String tmp; tmp = UT_StringWrap(list(i).fieldname).makeQuotedString('"'); buf.strcat(tmp); }
127  buf.append(", ");
128  buf.appendSprintf("%s", (list(i).fieldoffsets) ? "true" : "false");
129  buf.append(", ");
130  if (list(i).ramp)
131  {
132  UT_OStringStream os;
133  UT_String tmp;
134  list(i).ramp->save(os);
135  tmp = UT_StringWrap(os.str().buffer()).makeQuotedString('"');
136  buf.strcat(tmp);
137  }
138  else buf.strcat("""");
139  buf.append(", ");
140  buf.appendSprintf("%d", (int) list(i).rampsize);
141  buf.append(", ");
142  { UT_String tmp; tmp = UT_StringWrap(list(i).geometry).makeQuotedString('"'); buf.strcat(tmp); }
143  buf.append(", ");
144  { UT_String tmp; tmp = UT_StringWrap(list(i).attribute).makeQuotedString('"'); buf.strcat(tmp); }
145  buf.append(", ");
146  buf.appendSprintf("%d", (int) list(i).attribclass);
147  buf.append(", ");
148  buf.appendSprintf("%d", (int) list(i).attribtype);
149  buf.append(", ");
150  buf.appendSprintf("%d", (int) list(i).attribsize);
151  buf.append(", ");
152  buf.appendSprintf("%s", (list(i).readable) ? "true" : "false");
153  buf.append(", ");
154  buf.appendSprintf("%s", (list(i).writeable) ? "true" : "false");
155  buf.append(", ");
156  buf.appendSprintf("%s", (list(i).optional) ? "true" : "false");
157 
158  buf.strcat(" )");
159  }
160  buf.strcat(" ]");
161 
162  UT_StringHolder result = buf;
163  return result;
164  }
165 
167  {
168  myRunOver = 0;
169  myAlign = false;
170  myUseCode = false;
171  myKernelName = ""_sh;
172  myKernelFile = ""_sh;
173  myKernelCode = ""_sh;
174  myKernelOptions = ""_sh;
175  myRecompile = false;
176  myOrigin = false;
177  mySize = false;
178  myVoxelSize = false;
179  myTime = false;
180  myTimeInc = false;
181  myFlushAttributes = false;
182  myFinish = false;
183  myTimeScale = 0;
184  myTimeMethod = 0;
185  myXNoise = false;
186  myWorksetsGeometry = ""_sh;
187  myWorksetsBeginAttr = ""_sh;
188  myWorksetsLengthAttr = ""_sh;
189 
190  }
191 
192  explicit GAS_OpenCLParms(const GAS_OpenCLParms &) = default;
193 
195 
196  bool operator==(const GAS_OpenCLParms &src) const
197  {
198  if (myRunOver != src.myRunOver) return false;
199  if (myAlign != src.myAlign) return false;
200  if (myUseCode != src.myUseCode) return false;
201  if (myKernelName != src.myKernelName) return false;
202  if (myKernelFile != src.myKernelFile) return false;
203  if (myKernelCode != src.myKernelCode) return false;
204  if (myKernelOptions != src.myKernelOptions) return false;
205  if (myRecompile != src.myRecompile) return false;
206  if (myOrigin != src.myOrigin) return false;
207  if (mySize != src.mySize) return false;
208  if (myVoxelSize != src.myVoxelSize) return false;
209  if (myTime != src.myTime) return false;
210  if (myTimeInc != src.myTimeInc) return false;
211  if (myFlushAttributes != src.myFlushAttributes) return false;
212  if (myFinish != src.myFinish) return false;
213  if (myTimeScale != src.myTimeScale) return false;
214  if (myTimeMethod != src.myTimeMethod) return false;
215  if (myXNoise != src.myXNoise) return false;
216  if (myWorksetsGeometry != src.myWorksetsGeometry) return false;
217  if (myWorksetsBeginAttr != src.myWorksetsBeginAttr) return false;
218  if (myWorksetsLengthAttr != src.myWorksetsLengthAttr) return false;
219  if (myBindings != src.myBindings) return false;
220 
221  return true;
222  }
223 
224 
225  class Query : public SIM_Query
226  {
227  public:
228  explicit Query(const SIM_Data *owner, const GAS_OpenCLParms &parms)
229  : SIM_Query(owner)
230  , myParms(parms)
231  { }
232  virtual ~Query() {}
233 
234  protected:
235  bool isMyRecord(const char *recordtype) const
236  { return !strcmp(recordtype, "Params"); }
237 
238  virtual int getNumRecordTypesSubclass() const { return 1; }
239  virtual const char *getRecordTypeNameSubclass(int recordtypenum) const
240  {
241  if (recordtypenum == 0) return "Params";
242  return 0;
243  }
244  virtual int getNumRecordsSubclass(const char *recordtype) const
245  {
246  if (isMyRecord(recordtype)) return 1;
247  return 0;
248  }
249  virtual int getNumFieldsSubclass(const char *recordtype) const
250  {
251  if (isMyRecord(recordtype))
252  return 22;
253  return 0;
254  }
255 
256  virtual const char *getFieldNameSubclass(const char *recordtype,
257  int fieldnum) const
258  {
259  if (!isMyRecord(recordtype))
260  return 0;
261 
262  switch (fieldnum)
263  {
264  case 0:
265  return "runover";
266  case 1:
267  return "align";
268  case 2:
269  return "usecode";
270  case 3:
271  return "kernelname";
272  case 4:
273  return "kernelfile";
274  case 5:
275  return "kernelcode";
276  case 6:
277  return "kerneloptions";
278  case 7:
279  return "recompile";
280  case 8:
281  return "origin";
282  case 9:
283  return "size";
284  case 10:
285  return "voxelsize";
286  case 11:
287  return "time";
288  case 12:
289  return "timeinc";
290  case 13:
291  return "flushattrib";
292  case 14:
293  return "finish";
294  case 15:
295  return "timescale";
296  case 16:
297  return "timemethod";
298  case 17:
299  return "xnoise";
300  case 18:
301  return "worksets_geo";
302  case 19:
303  return "worksets_begin";
304  case 20:
305  return "worksets_length";
306  case 21:
307  return "bindings";
308 
309  }
310  return 0;
311  }
312  virtual UT_OptionType getFieldTypeSubclass(const char *recordtype,
313  int fieldnum) const
314  {
315  if (!isMyRecord(recordtype))
316  return UT_OPTION_INVALID;
317 
318  switch (fieldnum)
319  {
320  case 0:
321  return UT_OPTION_INT;
322  case 1:
323  return UT_OPTION_BOOL;
324  case 2:
325  return UT_OPTION_BOOL;
326  case 3:
327  return UT_OPTION_STRING;
328  case 4:
329  return UT_OPTION_STRING;
330  case 5:
331  return UT_OPTION_STRING;
332  case 6:
333  return UT_OPTION_STRING;
334  case 7:
335  return UT_OPTION_BOOL;
336  case 8:
337  return UT_OPTION_BOOL;
338  case 9:
339  return UT_OPTION_BOOL;
340  case 10:
341  return UT_OPTION_BOOL;
342  case 11:
343  return UT_OPTION_BOOL;
344  case 12:
345  return UT_OPTION_BOOL;
346  case 13:
347  return UT_OPTION_BOOL;
348  case 14:
349  return UT_OPTION_BOOL;
350  case 15:
351  return UT_OPTION_FPREAL;
352  case 16:
353  return UT_OPTION_INT;
354  case 17:
355  return UT_OPTION_BOOL;
356  case 18:
357  return UT_OPTION_STRING;
358  case 19:
359  return UT_OPTION_STRING;
360  case 20:
361  return UT_OPTION_STRING;
362  case 21:
363  return UT_OPTION_STRING;
364 
365  }
366  return UT_OPTION_INVALID;
367  }
368 
369  virtual bool getFieldRawSubclass(const char *recordtype,
370  int recordnum,
371  const char *fieldname,
372  UT_OptionEntry *&result) const
373  {
374  if (!isMyRecord(recordtype))
375  return false;
376  if (recordnum != 0)
377  return false;
378  // This is less optimal, but if we are in SIM_Query
379  // land we have already given up on performance.
380  if (!strcmp(fieldname, "runover"))
381  {
382  result = new UT_OptionInt(myParms.myRunOver);
383  return true;
384  }
385  if (!strcmp(fieldname, "align"))
386  {
387  result = new UT_OptionBool(myParms.myAlign);
388  return true;
389  }
390  if (!strcmp(fieldname, "usecode"))
391  {
392  result = new UT_OptionBool(myParms.myUseCode);
393  return true;
394  }
395  if (!strcmp(fieldname, "kernelname"))
396  {
397  result = new UT_OptionString(myParms.myKernelName);
398  return true;
399  }
400  if (!strcmp(fieldname, "kernelfile"))
401  {
402  result = new UT_OptionString(myParms.myKernelFile);
403  return true;
404  }
405  if (!strcmp(fieldname, "kernelcode"))
406  {
407  result = new UT_OptionString(myParms.myKernelCode);
408  return true;
409  }
410  if (!strcmp(fieldname, "kerneloptions"))
411  {
412  result = new UT_OptionString(myParms.myKernelOptions);
413  return true;
414  }
415  if (!strcmp(fieldname, "recompile"))
416  {
417  result = new UT_OptionBool(myParms.myRecompile);
418  return true;
419  }
420  if (!strcmp(fieldname, "origin"))
421  {
422  result = new UT_OptionBool(myParms.myOrigin);
423  return true;
424  }
425  if (!strcmp(fieldname, "size"))
426  {
427  result = new UT_OptionBool(myParms.mySize);
428  return true;
429  }
430  if (!strcmp(fieldname, "voxelsize"))
431  {
432  result = new UT_OptionBool(myParms.myVoxelSize);
433  return true;
434  }
435  if (!strcmp(fieldname, "time"))
436  {
437  result = new UT_OptionBool(myParms.myTime);
438  return true;
439  }
440  if (!strcmp(fieldname, "timeinc"))
441  {
442  result = new UT_OptionBool(myParms.myTimeInc);
443  return true;
444  }
445  if (!strcmp(fieldname, "flushattrib"))
446  {
447  result = new UT_OptionBool(myParms.myFlushAttributes);
448  return true;
449  }
450  if (!strcmp(fieldname, "finish"))
451  {
452  result = new UT_OptionBool(myParms.myFinish);
453  return true;
454  }
455  if (!strcmp(fieldname, "timescale"))
456  {
457  result = new UT_OptionFpreal(myParms.myTimeScale);
458  return true;
459  }
460  if (!strcmp(fieldname, "timemethod"))
461  {
462  result = new UT_OptionInt(myParms.myTimeMethod);
463  return true;
464  }
465  if (!strcmp(fieldname, "xnoise"))
466  {
467  result = new UT_OptionBool(myParms.myXNoise);
468  return true;
469  }
470  if (!strcmp(fieldname, "worksets_geo"))
471  {
472  result = new UT_OptionString(myParms.myWorksetsGeometry);
473  return true;
474  }
475  if (!strcmp(fieldname, "worksets_begin"))
476  {
477  result = new UT_OptionString(myParms.myWorksetsBeginAttr);
478  return true;
479  }
480  if (!strcmp(fieldname, "worksets_length"))
481  {
482  result = new UT_OptionString(myParms.myWorksetsLengthAttr);
483  return true;
484  }
485  if (!strcmp(fieldname, "bindings"))
486  {
487  result = new UT_OptionString(myParms.createString(myParms.myBindings));
488  return true;
489  }
490 
491  // Failed to find
492  return false;
493  }
494 
496  };
497 
498  SIM_Query *createQueryObject(const SIM_Data *owner) const
499  { return new Query(owner, *this); }
500 
501 
502 
503 
504  // Boiler plate to load individual types.
505  static void loadData(UT_IStream &is, int64 &v)
506  { is.bread(&v, 1); }
507  static void loadData(UT_IStream &is, bool &v)
508  { int64 iv; is.bread(&iv, 1); v = iv; }
509  static void loadData(UT_IStream &is, fpreal64 &v)
510  { is.bread<fpreal64>(&v, 1); }
511  static void loadData(UT_IStream &is, UT_Vector2D &v)
512  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
513  static void loadData(UT_IStream &is, UT_Vector3D &v)
514  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
515  is.bread<fpreal64>(&v.z(), 1); }
516  static void loadData(UT_IStream &is, UT_Vector4D &v)
517  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
518  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
519  static void loadData(UT_IStream &is, UT_Matrix2D &v)
520  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
521  static void loadData(UT_IStream &is, UT_Matrix3D &v)
522  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
523  static void loadData(UT_IStream &is, UT_Matrix4D &v)
524  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
525  static void loadData(UT_IStream &is, UT_Vector2I &v)
526  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
527  static void loadData(UT_IStream &is, UT_Vector3I &v)
528  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
529  is.bread<int64>(&v.z(), 1); }
530  static void loadData(UT_IStream &is, UT_Vector4I &v)
531  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
532  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
534  { is.bread(v); }
536  { UT_StringHolder rampdata;
537  loadData(is, rampdata);
538  if (rampdata.isstring())
539  {
540  v.reset(new UT_Ramp());
541  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
542  v->load(istr);
543  }
544  else v.reset();
545  }
548  loadData(is, data);
549  if (data.isstring())
550  {
551  // Find the data type.
552  char *colon = UT_StringWrap(data).findChar(':');
553  if (colon)
554  {
555  int typelen = colon - data.buffer();
557  type.strncpy(data.buffer(), typelen);
558  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
559 
560  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
561  }
562  }
563  else v.reset();
564  }
565 
566  static void saveData(std::ostream &os, int64 v)
567  { UTwrite(os, &v); }
568  static void saveData(std::ostream &os, bool v)
569  { int64 iv = v; UTwrite(os, &iv); }
570  static void saveData(std::ostream &os, fpreal64 v)
571  { UTwrite<fpreal64>(os, &v); }
572  static void saveData(std::ostream &os, UT_Vector2D v)
573  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
574  static void saveData(std::ostream &os, UT_Vector3D v)
575  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
576  UTwrite<fpreal64>(os, &v.z()); }
577  static void saveData(std::ostream &os, UT_Vector4D v)
578  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
579  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
580  static void saveData(std::ostream &os, UT_Matrix2D v)
582  static void saveData(std::ostream &os, UT_Matrix3D v)
584  static void saveData(std::ostream &os, UT_Matrix4D v)
586  static void saveData(std::ostream &os, UT_StringHolder s)
587  { UT_StringWrap(s).saveBinary(os); }
588  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
589  { UT_StringHolder result;
590  UT_OStringStream ostr;
591  if (s) s->save(ostr);
592  result = ostr.str();
593  saveData(os, result);
594  }
595  static void saveData(std::ostream &os, PRM_DataItemHandle s)
596  { UT_StringHolder result;
597  UT_OStringStream ostr;
598  if (s)
599  {
600  ostr << s->getDataTypeToken();
601  ostr << ":";
602  s->saveBinary(ostr);
603  }
604  result = ostr.str();
605  saveData(os, result);
606  }
607 
608 
609  void save(std::ostream &os) const
610  {
611  int32 v = version();
612  UTwrite(os, &v);
613  saveData(os, myRunOver);
614  saveData(os, myAlign);
615  saveData(os, myUseCode);
616  saveData(os, myKernelName);
617  saveData(os, myKernelFile);
618  saveData(os, myKernelCode);
619  saveData(os, myKernelOptions);
620  saveData(os, myRecompile);
621  saveData(os, myOrigin);
622  saveData(os, mySize);
623  saveData(os, myVoxelSize);
624  saveData(os, myTime);
625  saveData(os, myTimeInc);
626  saveData(os, myFlushAttributes);
627  saveData(os, myFinish);
628  saveData(os, myTimeScale);
629  saveData(os, myTimeMethod);
630  saveData(os, myXNoise);
631  saveData(os, myWorksetsGeometry);
632  saveData(os, myWorksetsBeginAttr);
633  saveData(os, myWorksetsLengthAttr);
634  {
635  int64 length = myBindings.entries();
636  UTwrite(os, &length);
637  for (exint i = 0; i < length; i++)
638  {
639  saveData(os, myBindings(i).name);
640  saveData(os, myBindings(i).type);
641  saveData(os, myBindings(i).intval);
642  saveData(os, myBindings(i).fval);
643  saveData(os, myBindings(i).v3val);
644  saveData(os, myBindings(i).v4val);
645  saveData(os, myBindings(i).timescale);
646  saveData(os, myBindings(i).fieldname);
647  saveData(os, myBindings(i).fieldoffsets);
648  saveData(os, myBindings(i).ramp);
649  saveData(os, myBindings(i).rampsize);
650  saveData(os, myBindings(i).geometry);
651  saveData(os, myBindings(i).attribute);
652  saveData(os, myBindings(i).attribclass);
653  saveData(os, myBindings(i).attribtype);
654  saveData(os, myBindings(i).attribsize);
655  saveData(os, myBindings(i).readable);
656  saveData(os, myBindings(i).writeable);
657  saveData(os, myBindings(i).optional);
658 
659  }
660  }
661 
662  }
663 
664  bool load(UT_IStream &is)
665  {
666  int32 v;
667  is.bread(&v, 1);
668  if (version() != v)
669  {
670  // Fail incompatible versions
671  return false;
672  }
673  loadData(is, myRunOver);
674  loadData(is, myAlign);
675  loadData(is, myUseCode);
676  loadData(is, myKernelName);
677  loadData(is, myKernelFile);
678  loadData(is, myKernelCode);
679  loadData(is, myKernelOptions);
680  loadData(is, myRecompile);
681  loadData(is, myOrigin);
682  loadData(is, mySize);
683  loadData(is, myVoxelSize);
684  loadData(is, myTime);
685  loadData(is, myTimeInc);
686  loadData(is, myFlushAttributes);
687  loadData(is, myFinish);
688  loadData(is, myTimeScale);
689  loadData(is, myTimeMethod);
690  loadData(is, myXNoise);
691  loadData(is, myWorksetsGeometry);
692  loadData(is, myWorksetsBeginAttr);
693  loadData(is, myWorksetsLengthAttr);
694  {
695  int64 length;
696  is.read(&length, 1);
697  myBindings.entries(length);
698  for (exint i = 0; i < length; i++)
699  {
700  loadData(is, myBindings(i).name);
701  loadData(is, myBindings(i).type);
702  loadData(is, myBindings(i).intval);
703  loadData(is, myBindings(i).fval);
704  loadData(is, myBindings(i).v3val);
705  loadData(is, myBindings(i).v4val);
706  loadData(is, myBindings(i).timescale);
707  loadData(is, myBindings(i).fieldname);
708  loadData(is, myBindings(i).fieldoffsets);
709  loadData(is, myBindings(i).ramp);
710  loadData(is, myBindings(i).rampsize);
711  loadData(is, myBindings(i).geometry);
712  loadData(is, myBindings(i).attribute);
713  loadData(is, myBindings(i).attribclass);
714  loadData(is, myBindings(i).attribtype);
715  loadData(is, myBindings(i).attribsize);
716  loadData(is, myBindings(i).readable);
717  loadData(is, myBindings(i).writeable);
718  loadData(is, myBindings(i).optional);
719 
720  }
721  }
722 
723  return true;
724  }
725 
726  int64 getRunOver() const { return myRunOver; }
727  void setRunOver(int64 val) { myRunOver = val; }
728  bool getAlign() const { return myAlign; }
729  void setAlign(bool val) { myAlign = val; }
730  bool getUseCode() const { return myUseCode; }
731  void setUseCode(bool val) { myUseCode = val; }
732  const UT_StringHolder & getKernelName() const { return myKernelName; }
733  void setKernelName(const UT_StringHolder & val) { myKernelName = val; }
734  const UT_StringHolder & getKernelFile() const { return myKernelFile; }
735  void setKernelFile(const UT_StringHolder & val) { myKernelFile = val; }
736  const UT_StringHolder & getKernelCode() const { return myKernelCode; }
737  void setKernelCode(const UT_StringHolder & val) { myKernelCode = val; }
738  const UT_StringHolder & getKernelOptions() const { return myKernelOptions; }
739  void setKernelOptions(const UT_StringHolder & val) { myKernelOptions = val; }
740  bool getRecompile() const { return myRecompile; }
741  void setRecompile(bool val) { myRecompile = val; }
742  bool getOrigin() const { return myOrigin; }
743  void setOrigin(bool val) { myOrigin = val; }
744  bool getSize() const { return mySize; }
745  void setSize(bool val) { mySize = val; }
746  bool getVoxelSize() const { return myVoxelSize; }
747  void setVoxelSize(bool val) { myVoxelSize = val; }
748  bool getTime() const { return myTime; }
749  void setTime(bool val) { myTime = val; }
750  bool getTimeInc() const { return myTimeInc; }
751  void setTimeInc(bool val) { myTimeInc = val; }
752  bool getFlushAttributes() const { return myFlushAttributes; }
753  void setFlushAttributes(bool val) { myFlushAttributes = val; }
754  bool getFinish() const { return myFinish; }
755  void setFinish(bool val) { myFinish = val; }
756  fpreal64 getTimeScale() const { return myTimeScale; }
757  void setTimeScale(fpreal64 val) { myTimeScale = val; }
758  int64 getTimeMethod() const { return myTimeMethod; }
759  void setTimeMethod(int64 val) { myTimeMethod = val; }
760  bool getXNoise() const { return myXNoise; }
761  void setXNoise(bool val) { myXNoise = val; }
762  const UT_StringHolder & getWorksetsGeometry() const { return myWorksetsGeometry; }
763  void setWorksetsGeometry(const UT_StringHolder & val) { myWorksetsGeometry = val; }
764  const UT_StringHolder & getWorksetsBeginAttr() const { return myWorksetsBeginAttr; }
765  void setWorksetsBeginAttr(const UT_StringHolder & val) { myWorksetsBeginAttr = val; }
766  const UT_StringHolder & getWorksetsLengthAttr() const { return myWorksetsLengthAttr; }
767  void setWorksetsLengthAttr(const UT_StringHolder & val) { myWorksetsLengthAttr = val; }
768  const UT_Array<Bindings> &getBindings() const { return myBindings; }
769  void setBindings(const UT_Array<Bindings> &val) { myBindings = val; }
770 
771 private:
772  int64 myRunOver;
773  bool myAlign;
774  bool myUseCode;
775  UT_StringHolder myKernelName;
776  UT_StringHolder myKernelFile;
777  UT_StringHolder myKernelCode;
778  UT_StringHolder myKernelOptions;
779  bool myRecompile;
780  bool myOrigin;
781  bool mySize;
782  bool myVoxelSize;
783  bool myTime;
784  bool myTimeInc;
785  bool myFlushAttributes;
786  bool myFinish;
787  fpreal64 myTimeScale;
788  int64 myTimeMethod;
789  bool myXNoise;
790  UT_StringHolder myWorksetsGeometry;
791  UT_StringHolder myWorksetsBeginAttr;
792  UT_StringHolder myWorksetsLengthAttr;
793  UT_Array<Bindings> myBindings;
794 
795 };
virtual const char * getRecordTypeNameSubclass(int recordtypenum) const
static void saveData(std::ostream &os, UT_Vector3D v)
const UT_StringHolder & getKernelName() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
bool operator==(const GAS_OpenCLParms &src) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
T & z(void)
Definition: UT_Vector4.h:372
void setTimeMethod(int64 val)
void setRunOver(int64 val)
bool getFlushAttributes() const
void setSize(bool val)
exint bread(int32 *buffer, exint asize=1)
const GLdouble * v
Definition: glcorearb.h:836
#define GAS_API
Definition: GAS_API.h:10
UT_StringHolder createString(const UT_Array< Bindings > &list) const
void setFinish(bool val)
bool isMyRecord(const char *recordtype) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setWorksetsGeometry(const UT_StringHolder &val)
void setOrigin(bool val)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
virtual int getNumRecordsSubclass(const char *recordtype) const
const UT_StringHolder & getWorksetsGeometry() const
static void saveData(std::ostream &os, fpreal64 v)
T & x(void)
Definition: UT_Vector2.h:284
UT_OptionType
An output stream object that owns its own string buffer storage.
virtual int getNumRecordTypesSubclass() const
Query(const SIM_Data *owner, const GAS_OpenCLParms &parms)
const GAS_OpenCLParms & myParms
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void setXNoise(bool val)
bool getRecompile() const
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
static void saveData(std::ostream &os, UT_Vector4D v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setUseCode(bool val)
png_uint_32 i
Definition: png.h:2877
void setTimeInc(bool val)
bool getUseCode() const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
long long int64
Definition: SYS_Types.h:106
static void saveData(std::ostream &os, int64 v)
void setBindings(const UT_Array< Bindings > &val)
exint length() const
bool load(UT_IStream &is)
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void append(char character)
SIM_Query * createQueryObject(const SIM_Data *owner) const
SYS_FORCE_INLINE const char * buffer() const
void save(std::ostream &os) const
int64 exint
Definition: SYS_Types.h:115
UT_OptionEntryImpl< int64, UT_OPTION_INT > UT_OptionInt
int64 getTimeMethod() const
double fpreal64
Definition: SYS_Types.h:191
UT_SharedPtr< UT_Ramp > ramp
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:280
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setVoxelSize(bool val)
UT_OptionEntryImpl< bool, UT_OPTION_BOOL > UT_OptionBool
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Vector2D v)
GLboolean * data
Definition: glcorearb.h:130
GLuint const GLchar * name
Definition: glcorearb.h:785
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
const UT_Array< Bindings > & getBindings() const
static void saveData(std::ostream &os, UT_Matrix2D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setRecompile(bool val)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:446
const UT_StringHolder & getKernelFile() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setWorksetsLengthAttr(const UT_StringHolder &val)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
void strncpy(const char *src, exint maxlen)
bool getTimeInc() const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
void setTimeScale(fpreal64 val)
UT_OptionEntryImpl< fpreal64, UT_OPTION_FPREAL > UT_OptionFpreal
const UT_StringHolder & getKernelCode() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setWorksetsBeginAttr(const UT_StringHolder &val)
virtual UT_OptionType getFieldTypeSubclass(const char *recordtype, int fieldnum) const
void setAlign(bool val)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
const char * buffer() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
T & x(void)
Definition: UT_Vector4.h:368
bool operator==(const Bindings &src) const
const UT_StringHolder & getKernelOptions() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
T & y(void)
Definition: UT_Vector2.h:286
void setKernelName(const UT_StringHolder &val)
void setKernelCode(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
GLboolean r
Definition: glcorearb.h:1221
fpreal64 getTimeScale() const
int64 getRunOver() const
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void strcat(const char *src)
T & w(void)
Definition: UT_Vector4.h:374
bool getVoxelSize() const
void setKernelOptions(const UT_StringHolder &val)
const UT_StringHolder & getWorksetsLengthAttr() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setKernelFile(const UT_StringHolder &val)
void setFlushAttributes(bool val)
SYS_FORCE_INLINE bool isstring() const
virtual const char * getFieldNameSubclass(const char *recordtype, int fieldnum) const
static void saveData(std::ostream &os, bool v)
void setTime(bool val)
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
const UT_StringHolder & getWorksetsBeginAttr() const
virtual int getNumFieldsSubclass(const char *recordtype) const
GLenum src
Definition: glcorearb.h:1792
virtual bool getFieldRawSubclass(const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntry *&result) const