HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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(PrimProfileNumbers);
64 
65  TOGGLE_MARKER(VertexMarkers);
66  TOGGLE_MARKER(VertexNumbers);
67  TOGGLE_MARKER(VertexNormals);
68  TOGGLE_MARKER(VertexUVs);
69  TOGGLE_MARKER(UVBackfaces);
70  TOGGLE_MARKER(UVOverlap);
71 
72  // *Visibility, set*Visibility
73  MARKER_VISIBILITY(pointMarker, PointMarker);
74  MARKER_VISIBILITY(pointNumber, PointNumber);
75  MARKER_VISIBILITY(pointNormal, PointNormal);
76  MARKER_VISIBILITY(pointPosition, PointPosition);
77  MARKER_VISIBILITY(pointUV, PointUV);
78  MARKER_VISIBILITY(pointTrail, PointTrail);
79 
80  MARKER_VISIBILITY(primNumber, PrimNumber);
81  MARKER_VISIBILITY(primNormal, PrimNormal);
82  MARKER_VISIBILITY(primBreakpoint, PrimBreakpoint);
83 
84  MARKER_VISIBILITY(vertexMarker, VertexMarker);
85  MARKER_VISIBILITY(vertexNormal, VertexNormal);
86  MARKER_VISIBILITY(vertexNumber, VertexNumber);
87  MARKER_VISIBILITY(vertexUV, VertexUV);
88 
89  // set/isUsing
90  TOGGLE_LOOK(GhostedLook);
91  TOGGLE_LOOK(FadedLook);
92  TOGGLE_LOOK(XRay);
93  TOGGLE_LOOK(Lighting);
94 
95  // set/is
96  TOGGLE_ITEM(ShadingModeLocked);
97  TOGGLE_ITEM(ToolbarLinked);
98  TOGGLE_ITEM(UniqueDisplaySet);
99 
100  virtual void setShadedMode(HOM_EnumValue &)=0;
101  virtual HOM_EnumValue &shadedMode()=0;
102 
103  virtual void setLinkToDisplaySet(HOM_EnumValue &)=0;
104  virtual HOM_EnumValue & linkedToDisplaySet()=0;
105 
106 };
107 
108 #undef TOGGLE_MARKER
109 #undef TOGGLE_LOOK
110 #undef TOGGLE_ITEM
111 #undef MARKER_VISIBILITY
112 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define TOGGLE_ITEM(name)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
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:972
GLuint const GLchar * name
Definition: glcorearb.h:785
#define TOGGLE_MARKER(name)
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1221
#define TOGGLE_LOOK(name)