HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupInvert.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_GroupInvertEnums
24 {
25  enum class Grouptype
26  {
27  AUTO = 0,
28  PRIMS,
29  POINTS,
30  EDGES,
31  VERTICES
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGrouptype = 0;
44  myGroup = ""_UTsh;
45  myNewname = ""_UTsh;
46 
47  }
48 
49  explicit SOP_GroupInvertParms(const SOP_GroupInvertParms &) = default;
51  SOP_GroupInvertParms(SOP_GroupInvertParms &&) noexcept = default;
52  SOP_GroupInvertParms &operator=(SOP_GroupInvertParms &&) noexcept = default;
53 
54  ~SOP_GroupInvertParms() override {}
55 
56  bool operator==(const SOP_GroupInvertParms &src) const
57  {
58  if (myGrouptype != src.myGrouptype) return false;
59  if (myGroup != src.myGroup) return false;
60  if (myNewname != src.myNewname) return false;
61 
62  return true;
63  }
64  bool operator!=(const SOP_GroupInvertParms &src) const
65  {
66  return !operator==(src);
67  }
69 
70 
71 
72  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
73  {
74  myGrouptype = 0;
75  if (true)
76  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
77  myGroup = ""_UTsh;
78  if (true)
79  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
80  myNewname = ""_UTsh;
81  if (true)
82  graph->evalOpParm(myNewname, nodeidx, "newname", time, 0);
83 
84  }
85 
86 
87  void loadFromOpSubclass(const LoadParms &loadparms) override
88  {
89  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
90  }
91 
92 
93  void copyFrom(const OP_NodeParms *src) override
94  {
95  *this = *((const SOP_GroupInvertParms *)src);
96  }
97 
98  template <typename T>
99  void
100  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
101  {
102  if (idx.size() < 1)
103  return;
104  UT_ASSERT(idx.size() == instance.size()+1);
105  if (idx.size() != instance.size()+1)
106  return;
107  switch (idx[0])
108  {
109  case 0:
110  coerceValue(value, myGrouptype);
111  break;
112  case 1:
113  coerceValue(value, myGroup);
114  break;
115  case 2:
116  coerceValue(value, myNewname);
117  break;
118 
119  }
120  }
121 
122  bool isParmColorRamp(exint idx) const override
123  {
124  switch (idx)
125  {
126 
127  }
128  return false;
129  }
130 
131  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
132  { doGetParmValue(idx, instance, value); }
133  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
134  { doGetParmValue(idx, instance, value); }
135  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
136  { doGetParmValue(idx, instance, value); }
137  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
138  { doGetParmValue(idx, instance, value); }
139  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
140  { doGetParmValue(idx, instance, value); }
141  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
142  { doGetParmValue(idx, instance, value); }
143  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
144  { doGetParmValue(idx, instance, value); }
145  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
146  { doGetParmValue(idx, instance, value); }
147  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
148  { doGetParmValue(idx, instance, value); }
149  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
150  { doGetParmValue(idx, instance, value); }
151  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
152  { doGetParmValue(idx, instance, value); }
153 
154  template <typename T>
155  void
156  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
157  {
158  if (idx.size() < 1)
159  return;
160  UT_ASSERT(idx.size() == instance.size()+1);
161  if (idx.size() != instance.size()+1)
162  return;
163  switch (idx[0])
164  {
165  case 0:
166  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
167  break;
168  case 1:
169  coerceValue(myGroup, ( ( value ) ));
170  break;
171  case 2:
172  coerceValue(myNewname, ( ( value ) ));
173  break;
174 
175  }
176  }
177 
178  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
179  { doSetParmValue(idx, instance, value); }
180  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
181  { doSetParmValue(idx, instance, value); }
182  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
183  { doSetParmValue(idx, instance, value); }
184  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
185  { doSetParmValue(idx, instance, value); }
186  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
187  { doSetParmValue(idx, instance, value); }
188  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
189  { doSetParmValue(idx, instance, value); }
190  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
191  { doSetParmValue(idx, instance, value); }
192  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
193  { doSetParmValue(idx, instance, value); }
194  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
195  { doSetParmValue(idx, instance, value); }
196  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
197  { doSetParmValue(idx, instance, value); }
198  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
199  { doSetParmValue(idx, instance, value); }
200 
201  exint getNestNumParms(TempIndex idx) const override
202  {
203  if (idx.size() == 0)
204  return 3;
205  switch (idx[0])
206  {
207 
208  }
209  // Invalid
210  return 0;
211  }
212 
213  const char *getNestParmName(TempIndex fieldnum) const override
214  {
215  if (fieldnum.size() < 1)
216  return 0;
217  switch (fieldnum[0])
218  {
219  case 0:
220  return "grouptype";
221  case 1:
222  return "group";
223  case 2:
224  return "newname";
225 
226  }
227  return 0;
228  }
229 
230  ParmType getNestParmType(TempIndex fieldnum) const override
231  {
232  if (fieldnum.size() < 1)
233  return PARM_UNSUPPORTED;
234  switch (fieldnum[0])
235  {
236  case 0:
237  return PARM_INTEGER;
238  case 1:
239  return PARM_STRING;
240  case 2:
241  return PARM_STRING;
242 
243  }
244  return PARM_UNSUPPORTED;
245  }
246 
247  // Boiler plate to load individual types.
248  static void loadData(UT_IStream &is, int64 &v)
249  { is.bread(&v, 1); }
250  static void loadData(UT_IStream &is, bool &v)
251  { int64 iv; is.bread(&iv, 1); v = iv; }
252  static void loadData(UT_IStream &is, fpreal64 &v)
253  { is.bread<fpreal64>(&v, 1); }
254  static void loadData(UT_IStream &is, UT_Vector2D &v)
255  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
256  static void loadData(UT_IStream &is, UT_Vector3D &v)
257  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
258  is.bread<fpreal64>(&v.z(), 1); }
259  static void loadData(UT_IStream &is, UT_Vector4D &v)
260  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
261  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
262  static void loadData(UT_IStream &is, UT_Matrix2D &v)
263  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
264  static void loadData(UT_IStream &is, UT_Matrix3D &v)
265  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
266  static void loadData(UT_IStream &is, UT_Matrix4D &v)
267  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
268  static void loadData(UT_IStream &is, UT_Vector2I &v)
269  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
270  static void loadData(UT_IStream &is, UT_Vector3I &v)
271  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
272  is.bread<int64>(&v.z(), 1); }
273  static void loadData(UT_IStream &is, UT_Vector4I &v)
274  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
275  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
277  { is.bread(v); }
279  { UT_StringHolder rampdata;
280  loadData(is, rampdata);
281  if (rampdata.isstring())
282  {
283  v.reset(new UT_Ramp());
284  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
285  v->load(istr);
286  }
287  else v.reset();
288  }
291  loadData(is, data);
292  if (data.isstring())
293  {
294  // Find the data type.
295  const char *colon = UT_StringWrap(data).findChar(':');
296  if (colon)
297  {
298  int typelen = colon - data.buffer();
300  type.strncpy(data.buffer(), typelen);
301  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
302 
303  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
304  }
305  }
306  else v.reset();
307  }
308 
309  static void saveData(std::ostream &os, int64 v)
310  { UTwrite(os, &v); }
311  static void saveData(std::ostream &os, bool v)
312  { int64 iv = v; UTwrite(os, &iv); }
313  static void saveData(std::ostream &os, fpreal64 v)
314  { UTwrite<fpreal64>(os, &v); }
315  static void saveData(std::ostream &os, UT_Vector2D v)
316  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
317  static void saveData(std::ostream &os, UT_Vector3D v)
318  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
319  UTwrite<fpreal64>(os, &v.z()); }
320  static void saveData(std::ostream &os, UT_Vector4D v)
321  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
322  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
323  static void saveData(std::ostream &os, UT_Matrix2D v)
325  static void saveData(std::ostream &os, UT_Matrix3D v)
327  static void saveData(std::ostream &os, UT_Matrix4D v)
329  static void saveData(std::ostream &os, UT_StringHolder s)
330  { UT_StringWrap(s).saveBinary(os); }
331  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
333  UT_OStringStream ostr;
334  if (s) s->save(ostr);
335  result = ostr.str();
336  saveData(os, result);
337  }
338  static void saveData(std::ostream &os, PRM_DataItemHandle s)
340  UT_OStringStream ostr;
341  if (s)
342  {
343  ostr << s->getDataTypeToken();
344  ostr << ":";
345  s->saveBinary(ostr);
346  }
347  result = ostr.str();
348  saveData(os, result);
349  }
350 
351 
352  void save(std::ostream &os) const
353  {
354  int32 v = version();
355  UTwrite(os, &v);
356  saveData(os, myGrouptype);
357  saveData(os, myGroup);
358  saveData(os, myNewname);
359 
360  }
361 
362  bool load(UT_IStream &is)
363  {
364  int32 v;
365  is.bread(&v, 1);
366  if (version() != v)
367  {
368  // Fail incompatible versions
369  return false;
370  }
371  loadData(is, myGrouptype);
372  loadData(is, myGroup);
373  loadData(is, myNewname);
374 
375  return true;
376  }
377 
378  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
379  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
381  {
382  SOP_Node *thissop = cookparms.getNode();
383  if (!thissop) return getGrouptype();
384  int64 result;
385  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
386  return Grouptype(result);
387  }
388  const UT_StringHolder & getGroup() const { return myGroup; }
389  void setGroup(const UT_StringHolder & val) { myGroup = val; }
391  {
392  SOP_Node *thissop = cookparms.getNode();
393  if (!thissop) return getGroup();
395  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
396  return result;
397  }
398  const UT_StringHolder & getNewname() const { return myNewname; }
399  void setNewname(const UT_StringHolder & val) { myNewname = val; }
401  {
402  SOP_Node *thissop = cookparms.getNode();
403  if (!thissop) return getNewname();
405  OP_Utils::evalOpParm(result, thissop, "newname", cookparms.getCookTime(), 0);
406  return result;
407  }
408 
409 private:
410  int64 myGrouptype;
411  UT_StringHolder myGroup;
412  UT_StringHolder myNewname;
413 
414 };
exint getNestNumParms(TempIndex idx) const override
bool load(UT_IStream &is)
Grouptype getGrouptype() const
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Vector3D v)
const char * getNestParmName(TempIndex fieldnum) const override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, UT_Matrix2D &v)
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setGrouptype(Grouptype val)
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
static void saveData(std::ostream &os, fpreal64 v)
GLdouble s
Definition: glad.h:3009
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Vector2D v)
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_Matrix2D v)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool operator!=(const SOP_GroupInvertParms &src) const
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Vector2I &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
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
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, UT_Vector3I &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
void save(std::ostream &os) const
ParmType getNestParmType(TempIndex fieldnum) const override
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_StringHolder opNewname(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNewname(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
void setGroup(const UT_StringHolder &val)
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
Definition: core.h:1131
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLboolean r
Definition: glcorearb.h:1222
bool operator==(const SOP_GroupInvertParms &src) const
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getNewname() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, int64 &v)