HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_GeometryViewportDisplaySet.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_GeometryViewportDisplaySet_h__
10 #define __HOM_GeometryViewportDisplaySet_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include "HOM_EnumValue.h"
17 
18 SWIGOUT(%rename(GeometryViewportDisplaySet) HOM_GeometryViewportDisplaySet;)
19 
20 #define TOGGLE_MARKER(name) \
21  virtual void show##name(bool b)=0; \
22  virtual bool isShowing##name()=0
23 
24 #define TOGGLE_LOOK(name) \
25  virtual void use##name(bool b)=0; \
26  virtual bool isUsing##name()=0
27 
28 #define TOGGLE_ITEM(name) \
29  virtual void set##name(bool b)=0; \
30  virtual bool is##name()=0
31 
32 #define MARKER_VISIBILITY(getname, setname) \
33  virtual void set##setname##Visibility(HOM_EnumValue &v)=0; \
34  virtual HOM_EnumValue &getname##Visibility()=0
35 
37 {
38 public:
40  { HOM_CONSTRUCT_OBJECT(this) }
42  { HOM_CONSTRUCT_OBJECT(this) }
44  { HOM_DESTRUCT_OBJECT(this) }
45 
46  virtual std::string __repr__() = 0;
47 
48  virtual HOM_EnumValue &displaySetType() = 0;
49 
50  // show/isShowing
51  TOGGLE_MARKER(PointMarkers);
52  TOGGLE_MARKER(PointNumbers);
53  TOGGLE_MARKER(PointNormals);
54  TOGGLE_MARKER(PointPositions);
55  TOGGLE_MARKER(PointUVs);
56  TOGGLE_MARKER(PointTrails);
57  TOGGLE_MARKER(CoincidentPoints);
58 
59  TOGGLE_MARKER(PrimHulls);
60  TOGGLE_MARKER(PrimNumbers);
61  TOGGLE_MARKER(PrimNormals);
62  TOGGLE_MARKER(PrimProfiles);
63  TOGGLE_MARKER(PrimBreakpoints);
64  TOGGLE_MARKER(PrimProfileNumbers);
65  TOGGLE_MARKER(PrimBackfaces);
66 
67  TOGGLE_MARKER(VertexMarkers);
68  TOGGLE_MARKER(VertexNumbers);
69  TOGGLE_MARKER(VertexNormals);
70  TOGGLE_MARKER(VertexUVs);
71  TOGGLE_MARKER(UVBackfaces);
72  TOGGLE_MARKER(UVOverlap);
73 
74  // *Visibility, set*Visibility
75  MARKER_VISIBILITY(pointMarker, PointMarker);
76  MARKER_VISIBILITY(pointNumber, PointNumber);
77  MARKER_VISIBILITY(pointNormal, PointNormal);
78  MARKER_VISIBILITY(pointPosition, PointPosition);
79  MARKER_VISIBILITY(pointUV, PointUV);
80  MARKER_VISIBILITY(pointTrail, PointTrail);
81 
82  MARKER_VISIBILITY(primNumber, PrimNumber);
83  MARKER_VISIBILITY(primNormal, PrimNormal);
84  MARKER_VISIBILITY(primBreakpoint, PrimBreakpoint);
85 
86  MARKER_VISIBILITY(vertexMarker, VertexMarker);
87  MARKER_VISIBILITY(vertexNormal, VertexNormal);
88  MARKER_VISIBILITY(vertexNumber, VertexNumber);
89  MARKER_VISIBILITY(vertexUV, VertexUV);
90 
91  // set/isUsing
92  TOGGLE_LOOK(GhostedLook);
93  TOGGLE_LOOK(FadedLook);
94  TOGGLE_LOOK(XRay);
95  TOGGLE_LOOK(Lighting);
96 
97  // set/is
98  TOGGLE_ITEM(ShadingModeLocked);
99  TOGGLE_ITEM(ToolbarLinked);
100  TOGGLE_ITEM(UniqueDisplaySet);
101 
102  virtual void setShadedMode(HOM_EnumValue &)=0;
103  virtual HOM_EnumValue &shadedMode()=0;
104 
105  virtual void setBoundaryMode(HOM_EnumValue &) = 0;
106  virtual HOM_EnumValue &boundaryMode() = 0;
107 
108  virtual void setUVBoundaryMode(HOM_EnumValue &) = 0;
109  virtual HOM_EnumValue &uvBoundaryMode() = 0;
110 
111  virtual void setLinkToDisplaySet(HOM_EnumValue &)=0;
112  virtual HOM_EnumValue & linkedToDisplaySet()=0;
113 
114 };
115 
116 #undef TOGGLE_MARKER
117 #undef TOGGLE_LOOK
118 #undef TOGGLE_ITEM
119 #undef MARKER_VISIBILITY
120 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1056
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define TOGGLE_ITEM(name)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
HOM_GeometryViewportDisplaySet(const HOM_GeometryViewportDisplaySet &)
#define MARKER_VISIBILITY(getname, setname)
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1055
GLuint const GLchar * name
Definition: glcorearb.h:785
#define TOGGLE_MARKER(name)
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1221
#define TOGGLE_LOOK(name)