HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_GeometrySelection.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_GeometrySelection_h__
10 #define __HOM_GeometrySelection_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Module.h"
15 #include "HOM_Errors.h"
16 #include <string>
17 #include <vector>
18 
19 class HOM_Node;
20 
21 SWIGOUT(%rename(GeometrySelection) HOM_GeometrySelection;)
22 SWIGOUT(%feature("notabstract") HOM_GeometrySelection;)
23 
25 {
26 public:
27 #ifdef SWIG
28 %extend
29 {
31  {
32  return HOM().newGeometrySelection();
33  }
34 
36  {
37  return HOM().newGeometrySelection(val);
38  }
39 }
40 #else
42  { HOM_CONSTRUCT_OBJECT(this) }
43 
45  { HOM_CONSTRUCT_OBJECT(this) }
46 #endif
47 
49  { HOM_DESTRUCT_OBJECT(this) }
50 
51  virtual std::string __repr__() = 0;
52  virtual std::string __str__() = 0;
53 
54  virtual bool ordered() = 0;
55 
56  virtual HOM_EnumValue &geometryType() = 0;
57  virtual void setGeometryType(HOM_EnumValue &type) = 0;
58 
59  virtual HOM_EnumValue &connectivity() = 0;
60  virtual void setConnectivity(HOM_EnumValue &connectivity) = 0;
61 
62  virtual std::vector<HOM_EnumValue *> primitiveTypes() = 0;
63  virtual void setPrimitiveTypes(std::vector<HOM_EnumValue *> primitive_types) = 0;
64 
65  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes() = 0;
66  SWIGOUT(%kwargs selectionStrings;)
67  virtual std::vector<std::string> selectionStrings(
68  bool empty_string_selects_all = true,
69  bool force_numeric = false) = 0;
70  virtual std::vector<HOM_ElemPtr<HOM_Selection> > selections() = 0;
71 
72  virtual bool needsMergedNode(HOM_Node &parent) = 0;
73  virtual HOM_Node *mergedNode(HOM_Node &parent, const char *creator_name,
74  bool force_keep_original_objects=false,
75  bool display_original_objects=false) = 0;
76  SWIGOUT(%kwargs mergedSelectionString;)
77  virtual std::string mergedSelectionString(
78  bool empty_string_selects_all = true,
79  bool force_numeric = false) = 0;
80 
81  SWIGOUT(%kwargs shrinkSelection;)
82  virtual void shrinkSelection(bool check_uv=true) = 0;
83 
84  SWIGOUT(%kwargs growSelection;)
85  virtual void growSelection() = 0;
86 };
87 
88 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1056
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
virtual HOM_Node * parent()=0
long long int64
Definition: SYS_Types.h:107
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1055
virtual HOM_GeometrySelection * newGeometrySelection()=0
virtual std::string __str__()=0
virtual std::vector< HOM_ElemPtr< HOM_Node > > nodes(const std::vector< std::string > &node_paths)=0
GLuint GLfloat * val
Definition: glcorearb.h:1607
HOM_GeometrySelection(const HOM_GeometrySelection &)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
HOM_API HOM_Module & HOM()