HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_GeometryVexParms.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 1; }
26  struct Bindings
27  {
30 
31 
33  {
34  binddata = ""_sh;
35  bindparm = ""_sh;
36 
37  }
38 
39  bool operator==(const Bindings &src) const
40  {
41  if (binddata != src.binddata) return false;
42  if (bindparm != src.bindparm) return false;
43 
44  return true;
45  }
46 
47  };
48 
50  {
52 
53  buf.strcat("[ ");
54  for (int i = 0; i < list.entries(); i++)
55  {
56  if (i)
57  buf.strcat(", ");
58  buf.strcat("( ");
59  buf.append("");
60  { UT_String tmp; tmp = UT_StringWrap(list(i).binddata).makeQuotedString('"'); buf.strcat(tmp); }
61  buf.append(", ");
62  { UT_String tmp; tmp = UT_StringWrap(list(i).bindparm).makeQuotedString('"'); buf.strcat(tmp); }
63 
64  buf.strcat(" )");
65  }
66  buf.strcat(" ]");
67 
68  UT_StringHolder result = buf;
69  return result;
70  }
72  {
75 
76 
78  {
79  binddata = ""_sh;
80  bindparm = ""_sh;
81 
82  }
83 
84  bool operator==(const FieldBindings &src) const
85  {
86  if (binddata != src.binddata) return false;
87  if (bindparm != src.bindparm) return false;
88 
89  return true;
90  }
91 
92  };
93 
95  {
97 
98  buf.strcat("[ ");
99  for (int i = 0; i < list.entries(); i++)
100  {
101  if (i)
102  buf.strcat(", ");
103  buf.strcat("( ");
104  buf.append("");
105  { UT_String tmp; tmp = UT_StringWrap(list(i).binddata).makeQuotedString('"'); buf.strcat(tmp); }
106  buf.append(", ");
107  { UT_String tmp; tmp = UT_StringWrap(list(i).bindparm).makeQuotedString('"'); buf.strcat(tmp); }
108 
109  buf.strcat(" )");
110  }
111  buf.strcat(" ]");
112 
113  UT_StringHolder result = buf;
114  return result;
115  }
117  {
120 
121 
123  {
124  binddata = ""_sh;
125  bindparm = ""_sh;
126 
127  }
128 
129  bool operator==(const GroupBindings &src) const
130  {
131  if (binddata != src.binddata) return false;
132  if (bindparm != src.bindparm) return false;
133 
134  return true;
135  }
136 
137  };
138 
140  {
142 
143  buf.strcat("[ ");
144  for (int i = 0; i < list.entries(); i++)
145  {
146  if (i)
147  buf.strcat(", ");
148  buf.strcat("( ");
149  buf.append("");
150  { UT_String tmp; tmp = UT_StringWrap(list(i).binddata).makeQuotedString('"'); buf.strcat(tmp); }
151  buf.append(", ");
152  { UT_String tmp; tmp = UT_StringWrap(list(i).bindparm).makeQuotedString('"'); buf.strcat(tmp); }
153 
154  buf.strcat(" )");
155  }
156  buf.strcat(" ]");
157 
158  UT_StringHolder result = buf;
159  return result;
160  }
162  {
165 
166 
168  {
169  inputnum = 0;
170  inputtype = ""_sh;
171 
172  }
173 
174  bool operator==(const InputBindings &src) const
175  {
176  if (inputnum != src.inputnum) return false;
177  if (inputtype != src.inputtype) return false;
178 
179  return true;
180  }
181 
182  };
183 
185  {
187 
188  buf.strcat("[ ");
189  for (int i = 0; i < list.entries(); i++)
190  {
191  if (i)
192  buf.strcat(", ");
193  buf.strcat("( ");
194  buf.append("");
195  buf.appendSprintf("%d", (int) list(i).inputnum);
196  buf.append(", ");
197  { UT_String tmp; tmp = UT_StringWrap(list(i).inputtype).makeQuotedString('"'); buf.strcat(tmp); }
198 
199  buf.strcat(" )");
200  }
201  buf.strcat(" ]");
202 
203  UT_StringHolder result = buf;
204  return result;
205  }
206 
208  {
209  myVexScript = ""_sh;
210  myVexCWD = ""_sh;
211  myVexOutputMask = ""_sh;
212  myAutobind = false;
213  myGroupAutobind = false;
214  myGeometryName = ""_sh;
215  myAttribClass = 0;
216  myGroup = ""_sh;
217  myGroupType = 0;
218  myUseTimeStep = false;
219  myTimeScale = 0;
220  myActivate = false;
221  myMultiThread = false;
222  myUpdateNormals = false;
223  myNumCount = 0;
224  myThreadJobSize = 0;
225 
226  }
227 
228  explicit GAS_GeometryVexParms(const GAS_GeometryVexParms &) = default;
229 
231 
233  {
234  if (myVexScript != src.myVexScript) return false;
235  if (myVexCWD != src.myVexCWD) return false;
236  if (myVexOutputMask != src.myVexOutputMask) return false;
237  if (myBindings != src.myBindings) return false;
238  if (myFieldBindings != src.myFieldBindings) return false;
239  if (myGroupBindings != src.myGroupBindings) return false;
240  if (myInputBindings != src.myInputBindings) return false;
241  if (myAutobind != src.myAutobind) return false;
242  if (myGroupAutobind != src.myGroupAutobind) return false;
243  if (myGeometryName != src.myGeometryName) return false;
244  if (myAttribClass != src.myAttribClass) return false;
245  if (myGroup != src.myGroup) return false;
246  if (myGroupType != src.myGroupType) return false;
247  if (myUseTimeStep != src.myUseTimeStep) return false;
248  if (myTimeScale != src.myTimeScale) return false;
249  if (myActivate != src.myActivate) return false;
250  if (myMultiThread != src.myMultiThread) return false;
251  if (myUpdateNormals != src.myUpdateNormals) return false;
252  if (myNumCount != src.myNumCount) return false;
253  if (myThreadJobSize != src.myThreadJobSize) return false;
254 
255  return true;
256  }
257 
258 
259  class Query : public SIM_Query
260  {
261  public:
262  explicit Query(const SIM_Data *owner, const GAS_GeometryVexParms &parms)
263  : SIM_Query(owner)
264  , myParms(parms)
265  { }
266  virtual ~Query() {}
267 
268  protected:
269  bool isMyRecord(const char *recordtype) const
270  { return !strcmp(recordtype, "Params"); }
271 
272  virtual int getNumRecordTypesSubclass() const { return 1; }
273  virtual const char *getRecordTypeNameSubclass(int recordtypenum) const
274  {
275  if (recordtypenum == 0) return "Params";
276  return 0;
277  }
278  virtual int getNumRecordsSubclass(const char *recordtype) const
279  {
280  if (isMyRecord(recordtype)) return 1;
281  return 0;
282  }
283  virtual int getNumFieldsSubclass(const char *recordtype) const
284  {
285  if (isMyRecord(recordtype))
286  return 20;
287  return 0;
288  }
289 
290  virtual const char *getFieldNameSubclass(const char *recordtype,
291  int fieldnum) const
292  {
293  if (!isMyRecord(recordtype))
294  return 0;
295 
296  switch (fieldnum)
297  {
298  case 0:
299  return "vexscript";
300  case 1:
301  return "vex_cwdpath";
302  case 2:
303  return "vex_outputmask";
304  case 3:
305  return "bindings";
306  case 4:
307  return "fieldbindings";
308  case 5:
309  return "groupbindings";
310  case 6:
311  return "inputbindings";
312  case 7:
313  return "autobind";
314  case 8:
315  return "groupautobind";
316  case 9:
317  return "geometry";
318  case 10:
319  return "attribclass";
320  case 11:
321  return "group";
322  case 12:
323  return "grouptype";
324  case 13:
325  return "usetimestep";
326  case 14:
327  return "timescale";
328  case 15:
329  return "activate";
330  case 16:
331  return "vex_multithread";
332  case 17:
333  return "vex_updatenmls";
334  case 18:
335  return "vex_numcount";
336  case 19:
337  return "vex_threadjobsize";
338 
339  }
340  return 0;
341  }
342  virtual UT_OptionType getFieldTypeSubclass(const char *recordtype,
343  int fieldnum) const
344  {
345  if (!isMyRecord(recordtype))
346  return UT_OPTION_INVALID;
347 
348  switch (fieldnum)
349  {
350  case 0:
351  return UT_OPTION_STRING;
352  case 1:
353  return UT_OPTION_STRING;
354  case 2:
355  return UT_OPTION_STRING;
356  case 3:
357  return UT_OPTION_STRING;
358  case 4:
359  return UT_OPTION_STRING;
360  case 5:
361  return UT_OPTION_STRING;
362  case 6:
363  return UT_OPTION_STRING;
364  case 7:
365  return UT_OPTION_BOOL;
366  case 8:
367  return UT_OPTION_BOOL;
368  case 9:
369  return UT_OPTION_STRING;
370  case 10:
371  return UT_OPTION_INT;
372  case 11:
373  return UT_OPTION_STRING;
374  case 12:
375  return UT_OPTION_INT;
376  case 13:
377  return UT_OPTION_BOOL;
378  case 14:
379  return UT_OPTION_FPREAL;
380  case 15:
381  return UT_OPTION_BOOL;
382  case 16:
383  return UT_OPTION_BOOL;
384  case 17:
385  return UT_OPTION_BOOL;
386  case 18:
387  return UT_OPTION_INT;
388  case 19:
389  return UT_OPTION_INT;
390 
391  }
392  return UT_OPTION_INVALID;
393  }
394 
395  virtual bool getFieldRawSubclass(const char *recordtype,
396  int recordnum,
397  const char *fieldname,
398  UT_OptionEntry *&result) const
399  {
400  if (!isMyRecord(recordtype))
401  return false;
402  if (recordnum != 0)
403  return false;
404  // This is less optimal, but if we are in SIM_Query
405  // land we have already given up on performance.
406  if (!strcmp(fieldname, "vexscript"))
407  {
408  result = new UT_OptionString(myParms.myVexScript);
409  return true;
410  }
411  if (!strcmp(fieldname, "vex_cwdpath"))
412  {
413  result = new UT_OptionString(myParms.myVexCWD);
414  return true;
415  }
416  if (!strcmp(fieldname, "vex_outputmask"))
417  {
418  result = new UT_OptionString(myParms.myVexOutputMask);
419  return true;
420  }
421  if (!strcmp(fieldname, "bindings"))
422  {
423  result = new UT_OptionString(myParms.createString(myParms.myBindings));
424  return true;
425  }
426  if (!strcmp(fieldname, "fieldbindings"))
427  {
428  result = new UT_OptionString(myParms.createString(myParms.myFieldBindings));
429  return true;
430  }
431  if (!strcmp(fieldname, "groupbindings"))
432  {
433  result = new UT_OptionString(myParms.createString(myParms.myGroupBindings));
434  return true;
435  }
436  if (!strcmp(fieldname, "inputbindings"))
437  {
438  result = new UT_OptionString(myParms.createString(myParms.myInputBindings));
439  return true;
440  }
441  if (!strcmp(fieldname, "autobind"))
442  {
443  result = new UT_OptionBool(myParms.myAutobind);
444  return true;
445  }
446  if (!strcmp(fieldname, "groupautobind"))
447  {
448  result = new UT_OptionBool(myParms.myGroupAutobind);
449  return true;
450  }
451  if (!strcmp(fieldname, "geometry"))
452  {
453  result = new UT_OptionString(myParms.myGeometryName);
454  return true;
455  }
456  if (!strcmp(fieldname, "attribclass"))
457  {
458  result = new UT_OptionInt(myParms.myAttribClass);
459  return true;
460  }
461  if (!strcmp(fieldname, "group"))
462  {
463  result = new UT_OptionString(myParms.myGroup);
464  return true;
465  }
466  if (!strcmp(fieldname, "grouptype"))
467  {
468  result = new UT_OptionInt(myParms.myGroupType);
469  return true;
470  }
471  if (!strcmp(fieldname, "usetimestep"))
472  {
473  result = new UT_OptionBool(myParms.myUseTimeStep);
474  return true;
475  }
476  if (!strcmp(fieldname, "timescale"))
477  {
478  result = new UT_OptionFpreal(myParms.myTimeScale);
479  return true;
480  }
481  if (!strcmp(fieldname, "activate"))
482  {
483  result = new UT_OptionBool(myParms.myActivate);
484  return true;
485  }
486  if (!strcmp(fieldname, "vex_multithread"))
487  {
488  result = new UT_OptionBool(myParms.myMultiThread);
489  return true;
490  }
491  if (!strcmp(fieldname, "vex_updatenmls"))
492  {
493  result = new UT_OptionBool(myParms.myUpdateNormals);
494  return true;
495  }
496  if (!strcmp(fieldname, "vex_numcount"))
497  {
498  result = new UT_OptionInt(myParms.myNumCount);
499  return true;
500  }
501  if (!strcmp(fieldname, "vex_threadjobsize"))
502  {
503  result = new UT_OptionInt(myParms.myThreadJobSize);
504  return true;
505  }
506 
507  // Failed to find
508  return false;
509  }
510 
512  };
513 
514  SIM_Query *createQueryObject(const SIM_Data *owner) const
515  { return new Query(owner, *this); }
516 
517 
518 
519 
520  // Boiler plate to load individual types.
521  static void loadData(UT_IStream &is, int64 &v)
522  { is.bread(&v, 1); }
523  static void loadData(UT_IStream &is, bool &v)
524  { int64 iv; is.bread(&iv, 1); v = iv; }
525  static void loadData(UT_IStream &is, fpreal64 &v)
526  { is.bread<fpreal64>(&v, 1); }
527  static void loadData(UT_IStream &is, UT_Vector2D &v)
528  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
529  static void loadData(UT_IStream &is, UT_Vector3D &v)
530  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
531  is.bread<fpreal64>(&v.z(), 1); }
532  static void loadData(UT_IStream &is, UT_Vector4D &v)
533  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
534  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
535  static void loadData(UT_IStream &is, UT_Matrix2D &v)
536  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
537  static void loadData(UT_IStream &is, UT_Matrix3D &v)
538  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
539  static void loadData(UT_IStream &is, UT_Matrix4D &v)
540  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
541  static void loadData(UT_IStream &is, UT_Vector2I &v)
542  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
543  static void loadData(UT_IStream &is, UT_Vector3I &v)
544  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
545  is.bread<int64>(&v.z(), 1); }
546  static void loadData(UT_IStream &is, UT_Vector4I &v)
547  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
548  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
550  { is.bread(v); }
552  { UT_StringHolder rampdata;
553  loadData(is, rampdata);
554  if (rampdata.isstring())
555  {
556  v.reset(new UT_Ramp());
557  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
558  v->load(istr);
559  }
560  else v.reset();
561  }
564  loadData(is, data);
565  if (data.isstring())
566  {
567  // Find the data type.
568  char *colon = UT_StringWrap(data).findChar(':');
569  if (colon)
570  {
571  int typelen = colon - data.buffer();
573  type.strncpy(data.buffer(), typelen);
574  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
575 
576  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
577  }
578  }
579  else v.reset();
580  }
581 
582  static void saveData(std::ostream &os, int64 v)
583  { UTwrite(os, &v); }
584  static void saveData(std::ostream &os, bool v)
585  { int64 iv = v; UTwrite(os, &iv); }
586  static void saveData(std::ostream &os, fpreal64 v)
587  { UTwrite<fpreal64>(os, &v); }
588  static void saveData(std::ostream &os, UT_Vector2D v)
589  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
590  static void saveData(std::ostream &os, UT_Vector3D v)
591  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
592  UTwrite<fpreal64>(os, &v.z()); }
593  static void saveData(std::ostream &os, UT_Vector4D v)
594  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
595  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
596  static void saveData(std::ostream &os, UT_Matrix2D v)
598  static void saveData(std::ostream &os, UT_Matrix3D v)
600  static void saveData(std::ostream &os, UT_Matrix4D v)
602  static void saveData(std::ostream &os, UT_StringHolder s)
603  { UT_StringWrap(s).saveBinary(os); }
604  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
605  { UT_StringHolder result;
606  UT_OStringStream ostr;
607  if (s) s->save(ostr);
608  result = ostr.str();
609  saveData(os, result);
610  }
611  static void saveData(std::ostream &os, PRM_DataItemHandle s)
612  { UT_StringHolder result;
613  UT_OStringStream ostr;
614  if (s)
615  {
616  ostr << s->getDataTypeToken();
617  ostr << ":";
618  s->saveBinary(ostr);
619  }
620  result = ostr.str();
621  saveData(os, result);
622  }
623 
624 
625  void save(std::ostream &os) const
626  {
627  int32 v = version();
628  UTwrite(os, &v);
629  saveData(os, myVexScript);
630  saveData(os, myVexCWD);
631  saveData(os, myVexOutputMask);
632  {
633  int64 length = myBindings.entries();
634  UTwrite(os, &length);
635  for (exint i = 0; i < length; i++)
636  {
637  saveData(os, myBindings(i).binddata);
638  saveData(os, myBindings(i).bindparm);
639 
640  }
641  }
642  {
643  int64 length = myFieldBindings.entries();
644  UTwrite(os, &length);
645  for (exint i = 0; i < length; i++)
646  {
647  saveData(os, myFieldBindings(i).binddata);
648  saveData(os, myFieldBindings(i).bindparm);
649 
650  }
651  }
652  {
653  int64 length = myGroupBindings.entries();
654  UTwrite(os, &length);
655  for (exint i = 0; i < length; i++)
656  {
657  saveData(os, myGroupBindings(i).binddata);
658  saveData(os, myGroupBindings(i).bindparm);
659 
660  }
661  }
662  {
663  int64 length = myInputBindings.entries();
664  UTwrite(os, &length);
665  for (exint i = 0; i < length; i++)
666  {
667  saveData(os, myInputBindings(i).inputnum);
668  saveData(os, myInputBindings(i).inputtype);
669 
670  }
671  }
672  saveData(os, myAutobind);
673  saveData(os, myGroupAutobind);
674  saveData(os, myGeometryName);
675  saveData(os, myAttribClass);
676  saveData(os, myGroup);
677  saveData(os, myGroupType);
678  saveData(os, myUseTimeStep);
679  saveData(os, myTimeScale);
680  saveData(os, myActivate);
681  saveData(os, myMultiThread);
682  saveData(os, myUpdateNormals);
683  saveData(os, myNumCount);
684  saveData(os, myThreadJobSize);
685 
686  }
687 
688  bool load(UT_IStream &is)
689  {
690  int32 v;
691  is.bread(&v, 1);
692  if (version() != v)
693  {
694  // Fail incompatible versions
695  return false;
696  }
697  loadData(is, myVexScript);
698  loadData(is, myVexCWD);
699  loadData(is, myVexOutputMask);
700  {
701  int64 length;
702  is.read(&length, 1);
703  myBindings.entries(length);
704  for (exint i = 0; i < length; i++)
705  {
706  loadData(is, myBindings(i).binddata);
707  loadData(is, myBindings(i).bindparm);
708 
709  }
710  }
711  {
712  int64 length;
713  is.read(&length, 1);
714  myFieldBindings.entries(length);
715  for (exint i = 0; i < length; i++)
716  {
717  loadData(is, myFieldBindings(i).binddata);
718  loadData(is, myFieldBindings(i).bindparm);
719 
720  }
721  }
722  {
723  int64 length;
724  is.read(&length, 1);
725  myGroupBindings.entries(length);
726  for (exint i = 0; i < length; i++)
727  {
728  loadData(is, myGroupBindings(i).binddata);
729  loadData(is, myGroupBindings(i).bindparm);
730 
731  }
732  }
733  {
734  int64 length;
735  is.read(&length, 1);
736  myInputBindings.entries(length);
737  for (exint i = 0; i < length; i++)
738  {
739  loadData(is, myInputBindings(i).inputnum);
740  loadData(is, myInputBindings(i).inputtype);
741 
742  }
743  }
744  loadData(is, myAutobind);
745  loadData(is, myGroupAutobind);
746  loadData(is, myGeometryName);
747  loadData(is, myAttribClass);
748  loadData(is, myGroup);
749  loadData(is, myGroupType);
750  loadData(is, myUseTimeStep);
751  loadData(is, myTimeScale);
752  loadData(is, myActivate);
753  loadData(is, myMultiThread);
754  loadData(is, myUpdateNormals);
755  loadData(is, myNumCount);
756  loadData(is, myThreadJobSize);
757 
758  return true;
759  }
760 
761  const UT_StringHolder & getVexScript() const { return myVexScript; }
762  void setVexScript(const UT_StringHolder & val) { myVexScript = val; }
763  const UT_StringHolder & getVexCWD() const { return myVexCWD; }
764  void setVexCWD(const UT_StringHolder & val) { myVexCWD = val; }
765  const UT_StringHolder & getVexOutputMask() const { return myVexOutputMask; }
766  void setVexOutputMask(const UT_StringHolder & val) { myVexOutputMask = val; }
767  const UT_Array<Bindings> &getBindings() const { return myBindings; }
768  void setBindings(const UT_Array<Bindings> &val) { myBindings = val; }
769  const UT_Array<FieldBindings> &getFieldBindings() const { return myFieldBindings; }
770  void setFieldBindings(const UT_Array<FieldBindings> &val) { myFieldBindings = val; }
771  const UT_Array<GroupBindings> &getGroupBindings() const { return myGroupBindings; }
772  void setGroupBindings(const UT_Array<GroupBindings> &val) { myGroupBindings = val; }
773  const UT_Array<InputBindings> &getInputBindings() const { return myInputBindings; }
774  void setInputBindings(const UT_Array<InputBindings> &val) { myInputBindings = val; }
775  bool getAutobind() const { return myAutobind; }
776  void setAutobind(bool val) { myAutobind = val; }
777  bool getGroupAutobind() const { return myGroupAutobind; }
778  void setGroupAutobind(bool val) { myGroupAutobind = val; }
779  const UT_StringHolder & getGeometryName() const { return myGeometryName; }
780  void setGeometryName(const UT_StringHolder & val) { myGeometryName = val; }
781  int64 getAttribClass() const { return myAttribClass; }
782  void setAttribClass(int64 val) { myAttribClass = val; }
783  const UT_StringHolder & getGroup() const { return myGroup; }
784  void setGroup(const UT_StringHolder & val) { myGroup = val; }
785  int64 getGroupType() const { return myGroupType; }
786  void setGroupType(int64 val) { myGroupType = val; }
787  bool getUseTimeStep() const { return myUseTimeStep; }
788  void setUseTimeStep(bool val) { myUseTimeStep = val; }
789  fpreal64 getTimeScale() const { return myTimeScale; }
790  void setTimeScale(fpreal64 val) { myTimeScale = val; }
791  bool getActivate() const { return myActivate; }
792  void setActivate(bool val) { myActivate = val; }
793  bool getMultiThread() const { return myMultiThread; }
794  void setMultiThread(bool val) { myMultiThread = val; }
795  bool getUpdateNormals() const { return myUpdateNormals; }
796  void setUpdateNormals(bool val) { myUpdateNormals = val; }
797  int64 getNumCount() const { return myNumCount; }
798  void setNumCount(int64 val) { myNumCount = val; }
799  int64 getThreadJobSize() const { return myThreadJobSize; }
800  void setThreadJobSize(int64 val) { myThreadJobSize = val; }
801 
802 private:
803  UT_StringHolder myVexScript;
804  UT_StringHolder myVexCWD;
805  UT_StringHolder myVexOutputMask;
806  UT_Array<Bindings> myBindings;
807  UT_Array<FieldBindings> myFieldBindings;
808  UT_Array<GroupBindings> myGroupBindings;
809  UT_Array<InputBindings> myInputBindings;
810  bool myAutobind;
811  bool myGroupAutobind;
812  UT_StringHolder myGeometryName;
813  int64 myAttribClass;
814  UT_StringHolder myGroup;
815  int64 myGroupType;
816  bool myUseTimeStep;
817  fpreal64 myTimeScale;
818  bool myActivate;
819  bool myMultiThread;
820  bool myUpdateNormals;
821  int64 myNumCount;
822  int64 myThreadJobSize;
823 
824 };
const UT_StringHolder & getVexScript() const
void setVexScript(const UT_StringHolder &val)
const UT_Array< Bindings > & getBindings() const
#define SIMZ_API
Definition: SIMZ_API.h:10
const UT_Array< FieldBindings > & getFieldBindings() const
Query(const SIM_Data *owner, const GAS_GeometryVexParms &parms)
void setGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getGeometryName() const
const UT_StringHolder & getGroup() const
T & z(void)
Definition: UT_Vector4.h:372
static void loadData(UT_IStream &is, UT_Vector3D &v)
virtual const char * getFieldNameSubclass(const char *recordtype, int fieldnum) const
exint bread(int32 *buffer, exint asize=1)
const GLdouble * v
Definition: glcorearb.h:836
virtual int getNumRecordsSubclass(const char *recordtype) const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T & x(void)
Definition: UT_Vector2.h:284
UT_OptionType
static void loadData(UT_IStream &is, UT_Vector2D &v)
UT_StringHolder createString(const UT_Array< FieldBindings > &list) const
UT_StringHolder createString(const UT_Array< Bindings > &list) const
bool operator==(const GroupBindings &src) const
An output stream object that owns its own string buffer storage.
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void setVexCWD(const UT_StringHolder &val)
const UT_StringHolder & getVexCWD() const
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
bool operator==(const InputBindings &src) const
void setGroupBindings(const UT_Array< GroupBindings > &val)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
bool operator==(const GAS_GeometryVexParms &src) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
png_uint_32 i
Definition: png.h:2877
virtual int getNumRecordTypesSubclass() const
void setBindings(const UT_Array< Bindings > &val)
const GAS_GeometryVexParms & myParms
virtual UT_OptionType getFieldTypeSubclass(const char *recordtype, int fieldnum) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
static void saveData(std::ostream &os, UT_Vector4D v)
long long int64
Definition: SYS_Types.h:106
void setVexOutputMask(const UT_StringHolder &val)
SIM_Query * createQueryObject(const SIM_Data *owner) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void append(char character)
void setGeometryName(const UT_StringHolder &val)
const UT_Array< InputBindings > & getInputBindings() const
SYS_FORCE_INLINE const char * buffer() const
const UT_StringHolder & getVexOutputMask() const
static void loadData(UT_IStream &is, fpreal64 &v)
int64 exint
Definition: SYS_Types.h:115
UT_OptionEntryImpl< int64, UT_OPTION_INT > UT_OptionInt
static void saveData(std::ostream &os, fpreal64 v)
bool operator==(const FieldBindings &src) const
static void saveData(std::ostream &os, UT_Vector3D v)
double fpreal64
Definition: SYS_Types.h:191
const UT_Array< GroupBindings > & getGroupBindings() const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:280
void setFieldBindings(const UT_Array< FieldBindings > &val)
UT_OptionEntryImpl< bool, UT_OPTION_BOOL > UT_OptionBool
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
virtual int getNumFieldsSubclass(const char *recordtype) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool operator==(const Bindings &src) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_StringHolder createString(const UT_Array< GroupBindings > &list) const
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
UT_StringHolder createString(const UT_Array< InputBindings > &list) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void loadData(UT_IStream &is, int64 &v)
virtual bool getFieldRawSubclass(const char *recordtype, int recordnum, const char *fieldname, UT_OptionEntry *&result) const
static void saveData(std::ostream &os, int64 v)
UT_OptionEntryImpl< fpreal64, UT_OPTION_FPREAL > UT_OptionFpreal
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
GLuint GLfloat * val
Definition: glcorearb.h:1607
const char * buffer() const
void setInputBindings(const UT_Array< InputBindings > &val)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
T & x(void)
Definition: UT_Vector4.h:368
T & y(void)
Definition: UT_Vector2.h:286
static void saveData(std::ostream &os, UT_Vector2D v)
bool isMyRecord(const char *recordtype) const
GLboolean r
Definition: glcorearb.h:1221
static void saveData(std::ostream &os, UT_StringHolder s)
void strcat(const char *src)
T & w(void)
Definition: UT_Vector4.h:374
static void loadData(UT_IStream &is, UT_Vector4I &v)
virtual const char * getRecordTypeNameSubclass(int recordtypenum) const
void save(std::ostream &os) const
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, bool &v)
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
GLenum src
Definition: glcorearb.h:1792