26 #ifndef RENDERING_MODE_H
27 #define RENDERING_MODE_H
62 RenderingMode(
const bool surface,
const bool wireframe,
const bool points) {
72 surfaceVisibility = value;
75 wireframeVisibility = value;
78 pointsVisibility = value;
81 wireframeVisibility = !value;
82 surfaceVisibility = pointsVisibility = value;
85 surfaceVisibility = wireframeVisibility = pointsVisibility = value;
88 surfaceVisibility = wireframeVisibility = value;
89 pointsVisibility = !value;
92 pointsVisibility = wireframeVisibility = value;
93 surfaceVisibility = !value;
104 return surfaceVisibility;
107 return wireframeVisibility;
110 return pointsVisibility;
113 return (surfaceVisibility && pointsVisibility);
116 return (wireframeVisibility && surfaceVisibility);
119 return (wireframeVisibility && pointsVisibility);
122 return (wireframeVisibility && surfaceVisibility && pointsVisibility);
133 return (surfaceVisibility || wireframeVisibility || pointsVisibility);
140 surfaceVisibility = wireframeVisibility = pointsVisibility =
false;
143 surfaceVisibility = wireframeVisibility =
false;
144 pointsVisibility =
true;
147 wireframeVisibility =
false;
148 surfaceVisibility = pointsVisibility =
true;
151 surfaceVisibility =
true;
152 wireframeVisibility = pointsVisibility =
false;
155 surfaceVisibility = wireframeVisibility = pointsVisibility =
true;
158 surfaceVisibility = wireframeVisibility =
true;
159 pointsVisibility =
false;
162 pointsVisibility = wireframeVisibility =
true;
163 surfaceVisibility =
false;
166 surfaceVisibility = pointsVisibility =
false;
167 wireframeVisibility =
true;
174 if (pointsVisibility) {
175 if (surfaceVisibility) {
176 if (wireframeVisibility) {
184 if (wireframeVisibility) {
193 if (surfaceVisibility) {
194 if (wireframeVisibility) {
202 if (wireframeVisibility) {
216 if (pointsVisibility) {
217 if (surfaceVisibility) {
218 if (wireframeVisibility) {
219 n =
"WIREFRAME_AND_SURFACE_AND_POINTS";
222 n =
"POINTS_AND_SURFACE";
226 if (wireframeVisibility) {
227 n =
"WIREFRAME_AND_POINTS";
235 if (surfaceVisibility) {
236 if (wireframeVisibility) {
237 n =
"WIREFRAME_AND_SURFACE";
244 if (wireframeVisibility) {
260 bool surfaceVisibility;
262 bool wireframeVisibility;
264 bool pointsVisibility;
Handle rendering options (surface and wireframe) of an Object3D.
Definition: RenderingMode.h:37
void setMode(const Mode mode)
set a vizualisation mode
Definition: RenderingMode.h:137
void setVisible(const Mode mode, const bool value)
Set a rendering mode visible or not.
Definition: RenderingMode.h:69
RenderingMode(const bool surface, const bool wireframe, const bool points)
another constructor provided for conveniance
Definition: RenderingMode.h:62
RenderingMode(const Mode mode=SURFACE)
default constructor with initialisation
Definition: RenderingMode.h:52
bool isVisible(const Mode mode) const
Return if a rendering mode is currently visible or not.
Definition: RenderingMode.h:101
Mode
This is a duplicate of RenderingMode Mode....
Definition: RenderingMode.h:40
@ WIREFRAME_AND_SURFACE_AND_POINTS
Definition: RenderingMode.h:48
@ WIREFRAME_AND_SURFACE
Definition: RenderingMode.h:45
@ WIREFRAME_AND_POINTS
Definition: RenderingMode.h:46
@ WIREFRAME
Definition: RenderingMode.h:47
@ POINTS
Definition: RenderingMode.h:42
@ NONE
Definition: RenderingMode.h:41
@ POINTS_AND_SURFACE
Definition: RenderingMode.h:43
@ SURFACE
Definition: RenderingMode.h:44
bool isVisible() const
Return true if at least a mode is currently visible, false otherwise.
Definition: RenderingMode.h:131
std::string getModeString() const
get the string equivalent to the enum rendering mode
Definition: RenderingMode.h:213
RenderingMode::Mode getMode() const
get current mode
Definition: RenderingMode.h:173