HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Geometry.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_Geometry_h__
10 #define __HOM_Geometry_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_BinaryString.h"
14 #include "HOM_Defines.h"
15 #include "HOM_Errors.h"
16 #include "HOM_IterableList.h"
17 #include "HOM_BoundingBox.h"
19 #include "HOM_Attrib.h"
20 #include "HOM_LopNode.h"
21 #include "HOM_LopSelectionRule.h"
22 #include <UT/UT_Tuple.h>
23 #include <vector>
24 #include <string>
25 
26 class HOM_AttribDataId;
27 class HOM_ChannelPrim;
28 class HOM_Edge;
29 class HOM_EdgeGroup;
30 class HOM_Face;
31 class HOM_GUDetailHandle;
32 class HOM_LopLockedStage;
33 class HOM_Matrix4;
34 class HOM_PackedGeometry;
35 class HOM_PackedPrim;
36 class HOM_Parm;
37 class HOM_Point;
38 class HOM_PointGroup;
39 class HOM_Polygon;
40 class HOM_Prim;
41 class HOM_PrimGroup;
42 class HOM_Selection;
43 class HOM_SopNode;
44 class HOM_Surface;
45 class HOM_VDB;
46 class HOM_Vector2;
47 class HOM_Vector3;
48 class HOM_Vertex;
49 class HOM_VertexGroup;
50 class HOM_Volume;
51 class HOMF_GeometryHandle;
52 
53 SWIGOUT(%rename(Geometry) HOM_Geometry;)
54 // Force SWIG to output an __init__ method even though it determines this
55 // class is abstract.
56 SWIGOUT(%feature("notabstract") HOM_Geometry;)
57 
59 {
60 public:
61 #ifdef SWIG
62 %extend
63 {
64  HOM_Geometry(HOM_Geometry *geo=nullptr, bool clone_data_ids=false)
65  { return HOM().newGeometry(geo, clone_data_ids); }
66 }
67 #else
69  { HOM_CONSTRUCT_OBJECT(this) }
71  { HOM_CONSTRUCT_OBJECT(this) }
72 #endif
73  virtual ~HOM_Geometry()
74  { HOM_DESTRUCT_OBJECT(this) }
75 
76  virtual std::string __repr__() = 0;
77 
78  SWIGOUT(%newobject sopNode;)
79  virtual HOM_SopNode *sopNode() = 0;
80  virtual int sopNodeOutputIndex() = 0;
81 
82  virtual bool isValid() = 0;
83 
84  SWIGOUT(%newobject freeze;)
85  virtual HOM_Geometry *freeze(bool read_only=false,
86  bool clone_data_ids=false) = 0;
87 
88  SWIGOUT(%newobject iterPoints;)
89  virtual HOM_IterableList<HOM_Point> *iterPoints() = 0;
90 
91  virtual std::vector<HOM_ElemPtr<HOM_Point> > points() = 0;
92 
93  SWIGOUT(%newobject point;)
94  virtual HOM_Point *point(int index) = 0;
95 
96  SWIGOUT(%newobject iterPrims;)
97  virtual HOM_IterableList<HOM_Prim> *iterPrims() = 0;
98 
99  virtual std::vector<HOM_ElemPtr<HOM_Prim> > prims() = 0;
100 
101  SWIGOUT(%newobject prim;)
102  virtual HOM_Prim *prim(int index) = 0;
103 
104  virtual bool containsPrimType(const char *type_name) = 0;
105  virtual bool containsPrimType(HOM_EnumValue &prim_type) = 0;
106  virtual int64 countPrimType(const char *type_name) = 0;
107  virtual int64 countPrimType(HOM_EnumValue &prim_type) = 0;
108  virtual int64 countUnusedPoints() = 0;
109 
110  virtual std::vector<HOM_ElemPtr<HOM_Prim> > primsOfType(HOM_EnumValue &prim_type) = 0;
111 
112  SWIGOUT(%newobject iterPrimsOfType;)
113  virtual HOM_IterableList<HOM_Prim> *iterPrimsOfType(HOM_EnumValue &prim_type) = 0;
114 
115  virtual int64 preferredPrecision() = 0;
116  virtual void setPreferredPrecision(int64 prec) = 0;
117 
118  virtual double averageMinDistance(
119  const HOM_Matrix4& local_transform,
120  HOM_Geometry& geometry,
121  const HOM_Matrix4& geometry_transform) = 0;
122 
123  virtual double averageEdgeLength() = 0;
124 
125  virtual std::vector<HOM_ElemPtr<HOM_Point> > globPoints(const char *pattern, bool ordered = false) = 0;
126 
127  virtual std::vector<HOM_ElemPtr<HOM_Prim> > globPrims(const char *pattern) = 0;
128 
129  virtual std::vector<HOM_ElemPtr<HOM_Vertex> > globVertices(
130  const char *pattern) = 0;
131 
132  virtual std::vector<HOM_ElemPtr<HOM_Edge> > globEdges(const char *pattern) = 0;
133 
134  // Wrapped in houpythonportion.py for the deprecated include_private flag
135  virtual std::vector<HOM_ElemPtr<HOM_Attrib> > _pointAttribs(
136  HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
137 
138  // Wrapped in houpythonportion.py for the deprecated include_private flag
139  virtual std::vector<HOM_ElemPtr<HOM_Attrib> > _primAttribs(
140  HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
141 
142  // Wrapped in houpythonportion.py for the deprecated include_private flag
143  virtual std::vector<HOM_ElemPtr<HOM_Attrib> > _vertexAttribs(
144  HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
145 
146  // Wrapped in houpythonportion.py for the deprecated include_private flag
147  virtual std::vector<HOM_ElemPtr<HOM_Attrib> > _globalAttribs(
148  HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
149 
150 
151  SWIGOUT(%newobject findPointAttrib;)
152  virtual HOM_Attrib *findPointAttrib(
153  const char *name, HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
154 
155  SWIGOUT(%newobject findPrimAttrib;)
156  virtual HOM_Attrib *findPrimAttrib(
157  const char *name, HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
158 
159  SWIGOUT(%newobject findVertexAttrib;)
160  virtual HOM_Attrib *findVertexAttrib(
161  const char *name, HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
162 
163  SWIGOUT(%newobject findGlobalAttrib;)
164  virtual HOM_Attrib *findGlobalAttrib(
165  const char *name, HOM_EnumValue &scope = HOM_attribScope::Public) = 0;
166 
167  virtual HOM_EnumValue& attribType() = 0;
168 
169 
170  // These methods return global (detail) attribute values.
171  virtual double floatAttribValue(const char *name) = 0;
172 
173  virtual double floatAttribValue(HOM_Attrib &attrib) = 0;
174 
175  virtual std::vector<double> floatListAttribValue(const char *name) = 0;
176 
177  virtual std::vector<double> floatListAttribValue(HOM_Attrib &attrib) = 0;
178 
179  virtual int64 intAttribValue(const char *name) = 0;
180 
181  virtual int64 intAttribValue(HOM_Attrib &attrib) = 0;
182 
183  virtual std::vector<int64> intListAttribValue(const char *name) = 0;
184 
185  virtual std::vector<int64> intListAttribValue(HOM_Attrib &attrib) = 0;
186 
187  virtual std::string stringAttribValue(const char *name) = 0;
188 
189  virtual std::string stringAttribValue(HOM_Attrib &attrib) = 0;
190 
191  virtual std::vector<std::string> stringListAttribValue(const char *name) = 0;
192 
193  virtual std::vector<std::string> stringListAttribValue(HOM_Attrib &attrib) = 0;
194  virtual std::map<std::string,hboost::any> dictAttribValue(const char *name) = 0;
195  virtual std::map<std::string,hboost::any> dictAttribValue(HOM_Attrib &name) = 0;
196  virtual std::vector<std::map<std::string,hboost::any> > dictListAttribValue(const char *name) = 0;
197  virtual std::vector<std::map<std::string,hboost::any> > dictListAttribValue(HOM_Attrib &name) = 0;
198 
199 
200  // These methods return/set arrays of point/primitive attribute values.
201  virtual std::vector<double> pointFloatAttribValues(const char *name) = 0;
202  SWIGOUT(%kwargs pointFloatAttribValuesAsString;)
203  virtual HOM_BinaryString pointFloatAttribValuesAsString(const char *name,
204  HOM_EnumValue &float_type = HOM_numericData::Float32) = 0;
205  virtual std::vector<double> primFloatAttribValues(const char *name) = 0;
206  SWIGOUT(%kwargs primFloatAttribValuesAsString;)
207  virtual HOM_BinaryString primFloatAttribValuesAsString(const char *name,
208  HOM_EnumValue &float_type = HOM_numericData::Float32) = 0;
209  virtual std::vector<double> vertexFloatAttribValues(const char *name) = 0;
210  SWIGOUT(%kwargs vertexFloatAttribValuesAsString;)
211  virtual HOM_BinaryString vertexFloatAttribValuesAsString(const char *name,
212  HOM_EnumValue &float_type = HOM_numericData::Float32) = 0;
213 
214  virtual std::vector<int64> pointIntAttribValues(const char *name) = 0;
215  SWIGOUT(%kwargs pointIntAttribValuesAsString;)
216  virtual HOM_BinaryString pointIntAttribValuesAsString(const char *name,
218  virtual std::vector<int64> primIntAttribValues(const char *name) = 0;
219  SWIGOUT(%kwargs primIntAttribValuesAsString;)
220  virtual HOM_BinaryString primIntAttribValuesAsString(const char *name,
222  virtual std::vector<int64> vertexIntAttribValues(const char *name) = 0;
223  SWIGOUT(%kwargs vertexIntAttribValuesAsString;)
224  virtual HOM_BinaryString vertexIntAttribValuesAsString(const char *name,
226 
227  virtual std::vector<std::string> pointStringAttribValues(const char *name) = 0;
228  virtual std::vector<std::string> primStringAttribValues(const char *name) = 0;
229  virtual std::vector<std::string> vertexStringAttribValues(const char *name) = 0;
230 
231  virtual void setPointFloatAttribValues(
232  const char *name, const std::vector<double> &values) = 0;
233  virtual void setPrimFloatAttribValues(
234  const char *name, const std::vector<double> &values) = 0;
235  virtual void setVertexFloatAttribValues(
236  const char *name, const std::vector<double> &values) = 0;
237 
238  SWIGOUT(%ignore opaqueSetPointFloatAttribValuesFromString);
239  virtual void opaqueSetPointFloatAttribValuesFromString(
240  const char *name, const char *values, int64 length,
242  SWIGOUT(%ignore opaqueSetPrimFloatAttribValuesFromString);
243  virtual void opaqueSetPrimFloatAttribValuesFromString(
244  const char *name, const char *values, int64 length,
246  SWIGOUT(%ignore opaqueSetVertexFloatAttribValuesFromString);
247  virtual void opaqueSetVertexFloatAttribValuesFromString(
248  const char *name, const char *values, int64 length,
250 
251 #ifdef SWIG
252 %extend
253 {
254  %kwargs setPointFloatAttribValuesFromString;
255  void setPointFloatAttribValuesFromString(
256  const char *name, InterpreterObject values,
257  HOM_EnumValue &float_type = HOM_numericData::Float32)
258  {
259  HOM_PyBuffer buffer(values);
260  self->opaqueSetPointFloatAttribValuesFromString(
261  name, (const char *)buffer.myData, buffer.myLength, float_type);
262  }
263 
264  %kwargs setPrimFloatAttribValuesFromString;
265  void setPrimFloatAttribValuesFromString(
266  const char *name, InterpreterObject values,
267  HOM_EnumValue &float_type = HOM_numericData::Float32)
268  {
269  HOM_PyBuffer buffer(values);
270  self->opaqueSetPrimFloatAttribValuesFromString(
271  name, (const char *)buffer.myData, buffer.myLength, float_type);
272  }
273 
274  %kwargs setVertexFloatAttribValuesFromString;
275  void setVertexFloatAttribValuesFromString(
276  const char *name, InterpreterObject values,
277  HOM_EnumValue &float_type = HOM_numericData::Float32)
278  {
279  HOM_PyBuffer buffer(values);
280  self->opaqueSetVertexFloatAttribValuesFromString(
281  name, (const char *)buffer.myData, buffer.myLength, float_type);
282  }
283 }
284 #endif
285 
286  virtual void setPointIntAttribValues(
287  const char *name, const std::vector<int64> &values) = 0;
288  virtual void setPrimIntAttribValues(
289  const char *name, const std::vector<int64> &values) = 0;
290  virtual void setVertexIntAttribValues(
291  const char *name, const std::vector<int64> &values) = 0;
292 
293  SWIGOUT(%ignore opaqueSetPointIntAttribValuesFromString);
294  virtual void opaqueSetPointIntAttribValuesFromString(
295  const char *name, const char *values, int64 length,
296  HOM_EnumValue &int_type) = 0;
297  SWIGOUT(%ignore opaqueSetPrimIntAttribValuesFromString);
298  virtual void opaqueSetPrimIntAttribValuesFromString(
299  const char *name, const char *values, int64 length,
300  HOM_EnumValue &int_type) = 0;
301  SWIGOUT(%ignore opaqueSetVertexIntAttribValuesFromString);
302  virtual void opaqueSetVertexIntAttribValuesFromString(
303  const char *name, const char *values, int64 length,
304  HOM_EnumValue &int_type) = 0;
305 
306 #ifdef SWIG
307 %extend
308 {
309  %kwargs setPointIntAttribValuesFromString;
310  void setPointIntAttribValuesFromString(
311  const char *name, InterpreterObject values,
313  {
314  HOM_PyBuffer buffer(values);
315  self->opaqueSetPointIntAttribValuesFromString(
316  name, (const char *)buffer.myData, buffer.myLength, int_type);
317  }
318 
319  %kwargs setPrimIntAttribValuesFromString;
320  void setPrimIntAttribValuesFromString(
321  const char *name, InterpreterObject values,
323  {
324  HOM_PyBuffer buffer(values);
325  self->opaqueSetPrimIntAttribValuesFromString(
326  name, (const char *)buffer.myData, buffer.myLength, int_type);
327  }
328 
329  %kwargs setVertexIntAttribValuesFromString;
330  void setVertexIntAttribValuesFromString(
331  const char *name, InterpreterObject values,
333  {
334  HOM_PyBuffer buffer(values);
335  self->opaqueSetVertexIntAttribValuesFromString(
336  name, (const char *)buffer.myData, buffer.myLength, int_type);
337  }
338 }
339 #endif
340 
341  virtual void setPointStringAttribValues(
342  const char *name, const std::vector<std::string> &values) = 0;
343  virtual void setPrimStringAttribValues(
344  const char *name, const std::vector<std::string> &values) = 0;
345  virtual void setVertexStringAttribValues(
346  const char *name, const std::vector<std::string> &values) = 0;
347 
348  virtual void renamePointAttrib(const char *old_name, const char *new_name) = 0;
349  virtual void renamePrimAttrib(const char *old_name, const char *new_name) = 0;
350  virtual void renameVertexAttrib(const char *old_name, const char *new_name) = 0;
351  virtual void renameGlobalAttrib(const char *old_name, const char *new_name) = 0;
352 
353  SWIGOUT(%newobject createPoint;)
354  virtual HOM_Point *createPoint() = 0;
355  virtual std::vector<HOM_ElemPtr<HOM_Point> >createPoints(
356  const std::vector<std::vector<double> > &point_positions) = 0;
357  virtual std::vector<HOM_ElemPtr<HOM_Point> >createPoints(
358  const std::vector<HOM_Vector3 *> &point_positions) = 0;
359 
360  SWIGOUT(%newobject createPolygon;)
361  virtual HOM_Polygon *createPolygon(bool is_closed=true) = 0;
362  virtual std::vector<HOM_ElemPtr<HOM_Polygon> >createPolygons(
363  const std::vector<std::vector<HOM_Point *> > &points,
364  bool is_closed=true) = 0;
365  virtual std::vector<HOM_ElemPtr<HOM_Polygon> >createPolygons(
366  const std::vector<std::vector<int> > &point_numbers,
367  bool is_closed=true) = 0;
368 
369  SWIGOUT(%newobject createPacked;)
370  virtual HOM_PackedPrim *createPacked(
371  const char *packed_type,
372  HOM_Point *point = nullptr) = 0;
373 
374  SWIGOUT(%newobject createTetrahedron;)
375  virtual HOM_Prim *createTetrahedron() = 0;
376 
377  SWIGOUT(%newobject createTetrahedronInPlace;)
378  virtual HOM_Prim *createTetrahedronInPlace(HOM_Point *p0, HOM_Point *p1,
379  HOM_Point *p2, HOM_Point *p3) = 0;
380 
381  SWIGOUT(%newobject createHexahedron;)
382  virtual HOM_Prim *createHexahedron() = 0;
383 
384  SWIGOUT(%newobject createHexahedronInPlace;)
385  virtual HOM_Prim *createHexahedronInPlace(HOM_Point *p0, HOM_Point *p1,
386  HOM_Point *p2, HOM_Point *p3,
387  HOM_Point *p4, HOM_Point *p5,
388  HOM_Point *p6, HOM_Point *p7
389  ) = 0;
390 
391  SWIGOUT(%newobject createNURBSCurve;)
392  SWIGOUT(%kwargs createNURBSCurve;)
393  virtual HOM_Face *createNURBSCurve(int num_points=4, bool is_closed=false,
394  int order=4) = 0;
395 
396  SWIGOUT(%newobject createBezierCurve;)
397  SWIGOUT(%kwargs createBezierCurve;)
398  virtual HOM_Face *createBezierCurve(int num_points=4, bool is_closed=false,
399  int order=4) = 0;
400 
401  SWIGOUT(%newobject createNURBSSurface;)
402  SWIGOUT(%kwargs createNURBSSurface;)
403  virtual HOM_Surface *createNURBSSurface(
404  int rows, int cols,
405  bool is_closed_in_u=false, bool is_closed_in_v=false,
406  int order_u=4, int order_v=4) = 0;
407 
408  SWIGOUT(%newobject createBezierSurface;)
409  SWIGOUT(%kwargs createBezierSurface;)
410  virtual HOM_Surface *createBezierSurface(
411  int rows, int cols,
412  bool is_closed_in_u=false, bool is_closed_in_v=false,
413  int order_u=4, int order_v=4) = 0;
414 
415  SWIGOUT(%newobject createMeshSurface;)
416  SWIGOUT(%kwargs createMeshSurface;)
417  virtual HOM_Surface *createMeshSurface(
418  int rows, int cols,
419  bool is_closed_in_u=false, bool is_closed_in_v=false) = 0;
420 
421  SWIGOUT(%newobject createVolume;)
422  SWIGOUT(%kwargs createVolume;)
423  virtual HOM_Volume *createVolume(
424  int xres, int yres, int zres, HOM_BoundingBox *bounding_box=NULL) = 0;
425 
426  SWIGOUT(%newobject createChannelPrim;)
427  SWIGOUT(%kwargs createChannelPrim;)
428  virtual HOM_ChannelPrim *createChannelPrim() = 0;
429 
430 
431  virtual void transform(HOM_Matrix4 &matrix) = 0;
432 
433  virtual void transformPrims(
434  const std::vector<HOM_Prim *> &prims, const HOM_Matrix4 &matrix) = 0;
435  virtual void transformPrims(
436  const HOM_PrimGroup &prims, const HOM_Matrix4 &matrix) = 0;
437 
438  // Swig does not allow keyword arguments for overloaded functions, so
439  // deletePrims is wrapped in houpythonportion.py to enable keyword
440  // arguments. If you want to change the signature of deletePrims, you must
441  // also edit houpythonportion.py.
442  virtual void deletePrims(
443  const std::vector<HOM_Prim *> &prims, bool keep_points = false) = 0;
444  virtual void deletePrims(
445  const HOM_PrimGroup &prims, bool keep_points = false) = 0;
446 
447  SWIGOUT(%kwargs deletePrimsOutsideBoundingBox;)
448  virtual void deletePrimsOutsideBoundingBox(
449  const HOM_BoundingBox &bbox) = 0;
450 
451  virtual void deletePoints(const std::vector<HOM_Point *> &points) = 0;
452  virtual void deletePoints(const HOM_PointGroup &points) = 0;
453 
454 
455  // Swig does not allow keyword arguments for overloaded functions, so
456  // addAttrib is wrapped in houpythonportion.py to enable keyword
457  // arguments. If you want to change the signature of addAttrib, you must
458  // also edit houpythonportion.py.
459  SWIGOUT(%newobject addAttrib;)
460  virtual HOM_Attrib *addAttrib(
461  HOM_EnumValue &type, const char *name,
462  int64 default_value,
463  bool transform_as_normal,
464  bool create_local_variable) = 0;
465 
466  virtual HOM_Attrib *addAttrib(
467  HOM_EnumValue &type, const char *name,
468  double default_value,
469  bool transform_as_normal,
470  bool create_local_variable) = 0;
471 
472  virtual HOM_Attrib *addAttrib(
473  HOM_EnumValue &type, const char *name,
474  const char *default_value,
475  bool transform_as_normal,
476  bool create_local_variable) = 0;
477 
478  virtual HOM_Attrib *addAttrib(
480  const char *name,
481  const std::vector<int64> &default_value,
482  bool transform_as_normal,
483  bool create_local_variable) = 0;
484 
485  virtual HOM_Attrib *addAttrib(
487  const char *name,
488  const std::vector<double> &default_value,
489  bool transform_as_normal,
490  bool create_local_variable) = 0;
491 
492  virtual HOM_Attrib *addAttrib(
494  const char *name,
495  const std::vector<std::string> &default_value,
496  bool transform_as_normal,
497  bool create_local_variable) = 0;
498 
499  virtual HOM_Attrib *addAttrib(
501  const char *name,
502  const std::map<std::string, hboost::any> &default_value,
503  bool transform_as_normal,
504  bool create_local_variable) = 0;
505 
506  SWIGOUT(%kwargs addArrayAttrib;)
507  SWIGOUT(%newobject addArrayAttrib;)
508  virtual HOM_Attrib *addArrayAttrib(
509  HOM_EnumValue &type, const char *name,
510  HOM_EnumValue &data_type,
511  int64 tuple_size = 1) = 0;
512 
513 
514  virtual void setGlobalAttribValue(
515  HOM_Attrib &attrib, int64 attrib_value) = 0;
516  virtual void setGlobalAttribValue(
517  HOM_Attrib &attrib, double attrib_value) = 0;
518  virtual void setGlobalAttribValue(
519  HOM_Attrib &attrib, const char *attrib_value) = 0;
520  virtual void setGlobalAttribValue(
521  HOM_Attrib &attrib, const std::vector<int64> &attrib_value) = 0;
522  virtual void setGlobalAttribValue(
523  HOM_Attrib &attrib, const std::vector<double> &attrib_value) = 0;
524  virtual void setGlobalAttribValue(
525  HOM_Attrib &attrib, const std::vector<std::string> &attrib_value) = 0;
526  virtual void setGlobalAttribValue(
527  HOM_Attrib &attrib, const std::map<std::string, hboost::any> &attrib_value) = 0;
528  virtual void setGlobalAttribValue(
529  HOM_Attrib &attrib, const std::vector<std::map<std::string,hboost::any> > &attrib_value) = 0;
530 
531  virtual void setGlobalAttribValue(
532  const char *attrib_name, int64 attrib_value) = 0;
533  virtual void setGlobalAttribValue(
534  const char *attrib_name, double attrib_value) = 0;
535  virtual void setGlobalAttribValue(
536  const char *attrib_name, const char *attrib_value) = 0;
537  // Note that, because of strangess the with way swig works when deciding
538  // which overloaded method to call, it's very important that we list the
539  // vector of ints before the vector of doubles. Otherwise, swig will call
540  // the double version when you pass in a vector of ints.
541  // It isn't that simple, the order is important but also depends on
542  // everything else in the override, so you may have to switch these
543  // until SWIG generates the right code...
544  virtual void setGlobalAttribValue(
545  const char *attrib_name, const std::vector<int64> &attrib_value) = 0;
546  virtual void setGlobalAttribValue(
547  const char *attrib_name, const std::vector<double> &attrib_value) = 0;
548  virtual void setGlobalAttribValue(
549  const char *attrib_name,
550  const std::vector<std::string> &attrib_value) = 0;
551  virtual void setGlobalAttribValue(
552  const char *attrib_name,
553  const std::map<std::string, hboost::any> &attrib_value) = 0;
554  virtual void setGlobalAttribValue(
555  const char *attrib_name,
556  const std::vector<std::map<std::string,hboost::any> > &attrib_value) = 0;
557 
558  virtual void copyAttrib(HOM_Attrib *attrib) = 0;
559  virtual void copyAttribs(const std::vector<HOM_Attrib *> &attribs) = 0;
560 
561  SWIGOUT(%kwargs copy;)
562  virtual void copy(HOM_Geometry &geometry, bool clone_data_ids = false,
563  const HOM_Selection *prims = nullptr) = 0;
564 
565  virtual void copyPoints(HOM_Geometry &geometry, const HOM_PointGroup *points = nullptr) = 0;
566  virtual void copyPrims(HOM_Geometry &geometry, const HOM_PrimGroup *prims = nullptr) = 0;
567  virtual void copyEdges(HOM_Geometry &geometry, const HOM_EdgeGroup *edges = nullptr) = 0;
568 
569  virtual int _copySelectionForDrawable(HOM_Geometry &src_geo, const HOM_Selection *sel) = 0;
570  virtual int _copyPrimsForDrawable(HOM_Geometry &src_geo, const std::vector<HOM_Prim*> &prims) = 0;
571  virtual int _copyClearForDrawable(bool keep) = 0;
572  virtual int _replaceWith(HOM_Geometry &src_geo) = 0;
573  virtual int _copyCacheTopology(HOM_Geometry &src_geo) = 0;
574 
575  virtual std::vector<HOM_ElemPtr<HOM_Point> > _getPointChildren(HOM_Point *pt) = 0;
576 #ifdef SWIG
577 %extend
578 {
579  InterpreterObject attribValue(const char *name)
580  { return HOMattribValue(*self, name); }
581 
582  InterpreterObject attribValue(HOM_Attrib &attrib)
583  { return HOMattribValue(*self, attrib); }
584 }
585 #endif
586 
587  virtual std::vector<std::string> attributeCaptureRegions() = 0;
588  virtual std::vector<std::string> attributeCaptureObjectPaths() = 0;
589 
590 
591  virtual std::vector<std::string> intrinsicNames() = 0;
592 
593  virtual hboost::any intrinsicValue(
594  const char *intrinsic_name) = 0;
595  virtual size_t intrinsicSize(const char *intrinsic_name) = 0;
596  virtual bool intrinsicReadOnly(const char *intrinsic_name) = 0;
597 
598  virtual void setIntrinsicValue(const char *intrinsic_name, double value) = 0;
599  virtual void setIntrinsicValue(const char *intrinsic_name, int value) = 0;
600  virtual void setIntrinsicValue(const char *intrinsic_name, int64 value) = 0;
601  virtual void setIntrinsicValue(
602  const char *intrinsic_name, const char *value) = 0;
603  virtual void setIntrinsicValue(
604  const char *intrinsic_name, const std::vector<double> &value) = 0;
605  virtual void setIntrinsicValue(
606  const char *intrinsic_name, const std::vector<int> &value) = 0;
607  virtual void setIntrinsicValue(
608  const char *intrinsic_name, const std::vector<int64> &value) = 0;
609  virtual void setIntrinsicValue(
610  const char *intrinsic_name, const std::vector<std::string> &value) = 0;
611 
612  virtual HOM_BinaryString data() = 0;
613  virtual void load(HOM_BinaryString data) = 0;
614 
615  virtual void saveToFile(const char *file_name) = 0;
616 
617  virtual void loadFromFile(const char *file_name) = 0;
618 
619  SWIGOUT(%kwargs merge;)
620  virtual void merge(HOM_Geometry &geometry, bool clone_data_ids = false,
621  const HOM_Selection *prims = nullptr) = 0;
622 
623  virtual void mergePoints(HOM_Geometry &geometry, const HOM_PointGroup *points = nullptr) = 0;
624  virtual void mergePrims(HOM_Geometry &geometry, const HOM_PrimGroup *prims = nullptr) = 0;
625  virtual void mergeEdges(HOM_Geometry &geometry, const HOM_EdgeGroup *edges = nullptr) = 0;
626 
627  virtual void clear() = 0;
628 
629  SWIGOUT(%kwargs intersect;)
630  virtual int intersect(
631  const HOM_Vector3 &rayorig, const HOM_Vector3 &dir,
633  const char *pattern = nullptr, float min_hit=1e-2f, float max_hit=1e18f,
634  float tolerance=1e-2F) = 0;
635 
636  virtual std::vector<int> _orderedPoints(
637  const char *groupname,
638  const char *corner_groupname,
639  HOM_Vector2 &dimensions) = 0;
640 
641  virtual std::vector<HOM_ElemPtr<HOM_PointGroup> > pointGroups(
642  HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
643 
644  SWIGOUT(%newobject findPointGroup;)
645  virtual HOM_PointGroup *findPointGroup(
646  const char *name, HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
647 
648  SWIGOUT(%newobject createPointGroup;)
649  SWIGOUT(%kwargs createPointGroup;)
650  virtual HOM_PointGroup *createPointGroup(
651  const char *name,
652  bool is_ordered = false,
653  bool unique_name = false) = 0;
654 
655  virtual std::vector<HOM_ElemPtr<HOM_PrimGroup> > primGroups(
656  HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
657 
658  SWIGOUT(%newobject findPrimGroup;)
659  virtual HOM_PrimGroup *findPrimGroup(
660  const char *name, HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
661 
662  SWIGOUT(%newobject createPrimGroup;)
663  SWIGOUT(%kwargs createPrimGroup;)
664  virtual HOM_PrimGroup *createPrimGroup(
665  const char *name,
666  bool is_ordered = false,
667  bool unique_name = false) = 0;
668 
669  virtual std::vector<HOM_ElemPtr<HOM_EdgeGroup> > edgeGroups(
670  HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
671 
672  SWIGOUT(%newobject findEdgeGroup;)
673  virtual HOM_EdgeGroup *findEdgeGroup(
674  const char *name, HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
675 
676  SWIGOUT(%newobject createEdgeGroup;)
677  virtual HOM_EdgeGroup *createEdgeGroup(
678  const char *name) = 0;
679 
680  virtual std::vector<HOM_ElemPtr<HOM_VertexGroup> > vertexGroups(
681  HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
682 
683  SWIGOUT(%newobject findVertexGroup;)
684  virtual HOM_VertexGroup *findVertexGroup(
685  const char *name, HOM_EnumValue &scope = HOM_groupScope::Public) = 0;
686 
687  SWIGOUT(%newobject createVertexGroup;)
688  virtual HOM_VertexGroup *createVertexGroup(
689  const char *name, bool is_ordered=false) = 0;
690 
691  SWIGOUT(%newobject findEdge;)
692  virtual HOM_Edge *findEdge(HOM_Point * p0, HOM_Point * p1) = 0;
693 
694  virtual HOM_BoundingBox boundingBox(HOM_Matrix4* transform = nullptr) = 0;
695  virtual HOM_BoundingBox pointBoundingBox(const char *ptgroup) = 0;
696  virtual HOM_BoundingBox primBoundingBox(const char *primgroup) = 0;
697 
698  virtual HOM_OrientedBoundingBox orientedBoundingBox() = 0;
699  virtual HOM_OrientedBoundingBox orientedPointBoundingBox(const char *ptgroup) = 0;
700  virtual HOM_OrientedBoundingBox orientedPrimBoundingBox(const char *primgroup) = 0;
701 
702  virtual UT_Tuple<HOM_ElemPtr<HOM_Prim>, double, double, double>
703  nearestPrim(const std::vector<double> &position) = 0;
704 
705  SWIGOUT(%newobject nearestPoint;)
706  SWIGOUT(%kwargs nearestPoint;)
707  virtual HOM_Point *
708  nearestPoint(const std::vector<double> &position,
709  const char *ptgroup = nullptr,
710  double max_radius = 1e+18f) = 0;
711 
712  SWIGOUT(%kwargs nearestPoints;)
713  virtual std::vector<HOM_ElemPtr<HOM_Point> >
714  nearestPoints(const std::vector<double> &position,
715  int64 max_points,
716  const char *ptgroup = nullptr,
717  double max_radius = 1e+18f) = 0;
718 
719  SWIGOUT(%kwargs primLoop;)
720  virtual std::vector<HOM_ElemPtr<HOM_Prim> >
721  primLoop(const std::vector<HOM_Prim *> &prims,
722  HOM_EnumValue &loop_type = HOM_componentLoopType::Partial) = 0;
723  SWIGOUT(%kwargs pointLoop;)
724  virtual std::vector<HOM_ElemPtr<HOM_Point> >
725  pointLoop(const std::vector<HOM_Point *> &points,
726  HOM_EnumValue &loop_type = HOM_componentLoopType::Partial) = 0;
727  SWIGOUT(%kwargs edgeLoop;)
728  virtual std::vector<HOM_ElemPtr<HOM_Edge> >
729  edgeLoop(const std::vector<HOM_Edge *> &edges,
730  HOM_EnumValue &loop_type = HOM_componentLoopType::Partial,
731  bool full_loop_per_edge = true,
732  bool force_ring = false,
733  bool allow_ring = true) = 0;
734 
735  virtual std::vector<HOM_Vector3>
736  pointNormals(const std::vector<HOM_Point *> &points) = 0;
737  virtual std::vector<HOM_Vector3>
738  pointNormals(const HOM_PointGroup &points) = 0;
739 
740  SWIGOUT(%newobject importLop;)
741  SWIGOUT(%kwargs importLop;)
742  virtual HOM_LopLockedStage *
743  importLop(
744  HOM_LopNode &lopnode,
745  HOM_LopSelectionRule &selection_rule,
746  const char *purpose = NULL,
747  const char *traversal = NULL,
748  const char *path_attrib_name = NULL,
749  const char *name_attrib_name = NULL,
750  bool strip_layers = false,
751  HOM_OptionalDouble frame = HOM_OptionalDouble()) = 0;
752 
753  SWIGOUT(%ignore importUsdStageOpaque;)
754  virtual void importUsdStageOpaque(
755  void *stage,
756  HOM_LopSelectionRule &selection_rule,
757  const char *purpose = NULL,
758  const char *traversal = NULL,
759  const char *path_attrib_name = NULL,
760  const char *name_attrib_name = NULL,
761  HOM_OptionalDouble frame = HOM_OptionalDouble()) = 0;
762 
763 #ifdef SWIG
764 %extend
765 {
766  %kwargs importUsdStage;
767  void importUsdStage(
768  InterpreterObject stage,
769  HOM_LopSelectionRule &selection_rule,
770  const char *purpose = NULL,
771  const char *traversal = NULL,
772  const char *path_attrib_name = NULL,
773  const char *name_attrib_name = NULL,
775  {
776  return self->importUsdStageOpaque(
777  stage, selection_rule, purpose, traversal,
778  path_attrib_name, name_attrib_name, frame);
779  }
780 }
781 #endif
782 
783  SWIGOUT(%newobject selection;)
784  virtual HOM_Selection *selection() = 0;
785 
786  // This method is not documented in the user documentation. See
787  // the comments in HOMF_Geometry.C for what it does.
788  SWIGOUT(%newobject _guDetailHandle;)
789  virtual HOM_GUDetailHandle *_guDetailHandle() = 0;
790 
791  // This method is not documented in the user documentation. See the
792  // comments in HOMF_Geometry.C for what it does.
793  virtual HOMF_GeometryHandle& _geometryHandle() = 0;
794 
795  virtual std::vector<int> vexAttribDataId() = 0;
796 
797  virtual int64 modificationCounter() = 0;
798  virtual void incrementModificationCounter() = 0;
799 
800  virtual void incrementAllDataIds() = 0;
801 
802  SWIGOUT(%kwargs incrementDataIdsForAddOrRemove;)
803  virtual void incrementDataIdsForAddOrRemove(
804  bool for_points=true, bool for_prims=true) = 0;
805 
806  SWIGOUT(%newobject primitiveIntrinsicsDataId;)
807  virtual HOM_AttribDataId *primitiveIntrinsicsDataId() = 0;
808  virtual void incrementPrimitiveIntrinsicsDataId() = 0;
809 
810  SWIGOUT(%newobject topologyDataId;)
811  virtual HOM_AttribDataId *topologyDataId() = 0;
812  virtual void incrementTopologyDataId() = 0;
813 
814  SWIGOUT(%kwargs generateAttribMenu;)
815  virtual std::vector<std::string> generateAttribMenu(
816  HOM_EnumValue *attrib_type = nullptr,
817  HOM_EnumValue *data_type = nullptr,
818  int min_size = 1,
819  int max_size = -1,
820  bool array_type = true,
821  bool scalar_type = true,
822  bool case_sensitive = true,
823  const char *pattern = "*",
824  bool decode_tokens = false) = 0;
825 
826  // Wrapped in houpythonportion to handle kwargs for an overloaded method.
827  virtual std::vector<std::string> _generateGroupMenu(
828  const std::vector<HOM_EnumValue *> &group_types,
829  bool include_selection,
830  bool include_name_attrib,
831  bool case_sensitive,
832  const char *pattern,
833  bool decode_tokens,
834  HOM_Parm *parm) = 0;
835 
836  virtual bool isReadOnly() = 0;
837 
838  virtual void _attribInfo( const char *name, int &attr_data_type, int &attr_size, bool &is_array_type) = 0;
839 
840  virtual std::vector<std::string> extractPackedPaths(const char *pattern) = 0;
841  SWIGOUT(%newobject unpackFromFolder;)
842  virtual HOM_Geometry *unpackFromFolder(const char *path) = 0;
843  SWIGOUT(%newobject unpackPropertiesFromFolder;)
844  virtual std::map<std::string, hboost::any> packedFolderProperties(const char *path) = 0;
845  SWIGOUT(%kwargs packToFolder;)
846  virtual bool packToFolder(
847  const char *path,
848  HOM_Geometry &geometry,
849  bool is_folder = false) = 0;
850 };
851 
852 #endif
GT_API const UT_StringHolder selection
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676
GLboolean * data
Definition: glcorearb.h:131
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
std::tuple< Types...> UT_Tuple
Definition: UT_Tuple.h:53
virtual HOM_Geometry * newGeometry(HOM_Geometry *geo=nullptr, bool clone_data_ids=false)=0
GLuint buffer
Definition: glcorearb.h:660
GLdouble n
Definition: glcorearb.h:2008
GLfloat f
Definition: glcorearb.h:1926
Definition: core.h:760
bool any(const vbool4 &v)
Definition: simd.h:3468
#define HOM_API
Definition: HOM_API.h:13
HOM_Geometry(const HOM_Geometry &)
Definition: HOM_Geometry.h:70
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
constexpr std::enable_if< I< type_count_base< T >::value, int >::type tuple_type_size(){return subtype_count< typename std::tuple_element< I, T >::type >::value+tuple_type_size< T, I+1 >);}template< typename T > struct type_count< T, typename std::enable_if< is_tuple_like< T >::value >::type >{static constexpr int value{tuple_type_size< T, 0 >)};};template< typename T > struct subtype_count{static constexpr int value{is_mutable_container< T >::value?expected_max_vector_size:type_count< T >::value};};template< typename T, typename Enable=void > struct type_count_min{static const int value{0};};template< typename T >struct type_count_min< T, typename std::enable_if<!is_mutable_container< T >::value &&!is_tuple_like< T >::value &&!is_wrapper< T >::value &&!is_complex< T >::value &&!std::is_void< T >::value >::type >{static constexpr int value{type_count< T >::value};};template< typename T > struct type_count_min< T, typename std::enable_if< is_complex< T >::value >::type >{static constexpr int value{1};};template< typename T >struct type_count_min< T, typename std::enable_if< is_wrapper< T >::value &&!is_complex< T >::value &&!is_tuple_like< T >::value >::type >{static constexpr int value{subtype_count_min< typename T::value_type >::value};};template< typename T, std::size_t I >constexpr typename std::enable_if< I==type_count_base< T >::value, int >::type tuple_type_size_min(){return 0;}template< typename T, std::size_t I > constexpr typename std::enable_if< I< type_count_base< T >::value, int >::type tuple_type_size_min(){return subtype_count_min< typename std::tuple_element< I, T >::type >::value+tuple_type_size_min< T, I+1 >);}template< typename T > struct type_count_min< T, typename std::enable_if< is_tuple_like< T >::value >::type >{static constexpr int value{tuple_type_size_min< T, 0 >)};};template< typename T > struct subtype_count_min{static constexpr int value{is_mutable_container< T >::value?((type_count< T >::value< expected_max_vector_size)?type_count< T >::value:0):type_count_min< T >::value};};template< typename T, typename Enable=void > struct expected_count{static const int value{0};};template< typename T >struct expected_count< T, typename std::enable_if<!is_mutable_container< T >::value &&!is_wrapper< T >::value &&!std::is_void< T >::value >::type >{static constexpr int value{1};};template< typename T > struct expected_count< T, typename std::enable_if< is_mutable_container< T >::value >::type >{static constexpr int value{expected_max_vector_size};};template< typename T >struct expected_count< T, typename std::enable_if<!is_mutable_container< T >::value &&is_wrapper< T >::value >::type >{static constexpr int value{expected_count< typename T::value_type >::value};};enum class object_category:int{char_value=1, integral_value=2, unsigned_integral=4, enumeration=6, boolean_value=8, floating_point=10, number_constructible=12, double_constructible=14, integer_constructible=16, string_assignable=23, string_constructible=24, other=45, wrapper_value=50, complex_number=60, tuple_value=70, container_value=80,};template< typename T, typename Enable=void > struct classify_object{static constexpr object_category value{object_category::other};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_integral< T >::value &&!std::is_same< T, char >::value &&std::is_signed< T >::value &&!is_bool< T >::value &&!std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::integral_value};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value &&!std::is_same< T, char >::value &&!is_bool< T >::value >::type >{static constexpr object_category value{object_category::unsigned_integral};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_same< T, char >::value &&!std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::char_value};};template< typename T > struct classify_object< T, typename std::enable_if< is_bool< T >::value >::type >{static constexpr object_category value{object_category::boolean_value};};template< typename T > struct classify_object< T, typename std::enable_if< std::is_floating_point< T >::value >::type >{static constexpr object_category value{object_category::floating_point};};template< typename T >struct classify_object< T, typename std::enable_if<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&std::is_assignable< T &, std::string >::value >::type >{static constexpr object_category value{object_category::string_assignable};};template< typename T >struct classify_object< T, typename std::enable_if<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&!std::is_assignable< T &, std::string >::value &&(type_count< T >::value==1)&&std::is_constructible< T, std::string >::value >::type >{static constexpr object_category value{object_category::string_constructible};};template< typename T > struct classify_object< T, typename std::enable_if< std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::enumeration};};template< typename T > struct classify_object< T, typename std::enable_if< is_complex< T >::value >::type >{static constexpr object_category value{object_category::complex_number};};template< typename T > struct uncommon_type{using type=typename std::conditional<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&!std::is_assignable< T &, std::string >::value &&!std::is_constructible< T, std::string >::value &&!is_complex< T >::value &&!is_mutable_container< T >::value &&!std::is_enum< T >::value, std::true_type, std::false_type >::type;static constexpr bool value=type::value;};template< typename T >struct classify_object< T, typename std::enable_if<(!is_mutable_container< T >::value &&is_wrapper< T >::value &&!is_tuple_like< T >::value &&uncommon_type< T >::value)>::type >{static constexpr object_category value{object_category::wrapper_value};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&is_direct_constructible< T, double >::value &&is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::number_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&!is_direct_constructible< T, double >::value &&is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::integer_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&is_direct_constructible< T, double >::value &&!is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::double_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< is_tuple_like< T >::value &&((type_count< T >::value >=2 &&!is_wrapper< T >::value)||(uncommon_type< T >::value &&!is_direct_constructible< T, double >::value &&!is_direct_constructible< T, int >::value)||(uncommon_type< T >::value &&type_count< T >::value >=2))>::type >{static constexpr object_category value{object_category::tuple_value};};template< typename T > struct classify_object< T, typename std::enable_if< is_mutable_container< T >::value >::type >{static constexpr object_category value{object_category::container_value};};template< typename T, enable_if_t< classify_object< T >::value==object_category::char_value, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"CHAR";}template< typename T, enable_if_t< classify_object< T >::value==object_category::integral_value||classify_object< T >::value==object_category::integer_constructible, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"INT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::unsigned_integral, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"UINT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::floating_point||classify_object< T >::value==object_category::number_constructible||classify_object< T >::value==object_category::double_constructible, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"FLOAT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::enumeration, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"ENUM";}template< typename T, enable_if_t< classify_object< T >::value==object_category::boolean_value, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"BOOLEAN";}template< typename T, enable_if_t< classify_object< T >::value==object_category::complex_number, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"COMPLEX";}template< typename T, enable_if_t< classify_object< T >::value >=object_category::string_assignable &&classify_object< T >::value<=object_category::other, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"TEXT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value >=2, detail::enabler >=detail::dummy >std::string type_name();template< typename T, enable_if_t< classify_object< T >::value==object_category::container_value||classify_object< T >::value==object_category::wrapper_value, detail::enabler >=detail::dummy >std::string type_name();template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value==1, detail::enabler >=detail::dummy >inline std::string type_name(){return type_name< typename std::decay< typename std::tuple_element< 0, T >::type >::type >);}template< typename T, std::size_t I >inline typename std::enable_if< I==type_count_base< T >::value, std::string >::type tuple_name(){return std::string{};}template< typename T, std::size_t I >inline typename std::enable_if<(I< type_count_base< T >::value), std::string >::type tuple_name(){auto str=std::string{type_name< typename std::decay< typename std::tuple_element< I, T >::type >::type >)}+ ','+tuple_name< T, I+1 >);if(str.back()== ',') str.pop_back();return str;}template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value >=2, detail::enabler > > std::string type_name()
Recursively generate the tuple type name.
Definition: CLI11.h:1729
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLdouble GLdouble GLint GLint order
Definition: glad.h:2676
long long int64
Definition: SYS_Types.h:116
GLuint const GLchar * name
Definition: glcorearb.h:786
GLushort pattern
Definition: glad.h:2583
GA_API const UT_StringHolder transform
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1602
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint index
Definition: glcorearb.h:786
SIM_API const UT_StringHolder position
IMATH_CONSTEXPR14 bool intersect(const Line3< T > &line, const Vec3< T > &v0, const Vec3< T > &v1, const Vec3< T > &v2, Vec3< T > &pt, Vec3< T > &barycentric, bool &front) IMATH_NOEXCEPT
Definition: ImathLineAlgo.h:80
UT_Optional< double > HOM_OptionalDouble
Definition: HOM_Defines.h:45
Definition: core.h:1131
virtual ~HOM_Geometry()
Definition: HOM_Geometry.h:73
HOM_API HOM_Module & HOM()
type
Definition: core.h:1059
Definition: format.h:895