Developer Documentation

DrawModeConverter.cc
1 /*===========================================================================*\
2 * *
3 * OpenFlipper *
4 * Copyright (c) 2001-2015, RWTH-Aachen University *
5 * Department of Computer Graphics and Multimedia *
6 * All rights reserved. *
7 * www.openflipper.org *
8 * *
9 *---------------------------------------------------------------------------*
10 * This file is part of OpenFlipper. *
11 *---------------------------------------------------------------------------*
12 * *
13 * Redistribution and use in source and binary forms, with or without *
14 * modification, are permitted provided that the following conditions *
15 * are met: *
16 * *
17 * 1. Redistributions of source code must retain the above copyright notice, *
18 * this list of conditions and the following disclaimer. *
19 * *
20 * 2. Redistributions in binary form must reproduce the above copyright *
21 * notice, this list of conditions and the following disclaimer in the *
22 * documentation and/or other materials provided with the distribution. *
23 * *
24 * 3. Neither the name of the copyright holder nor the names of its *
25 * contributors may be used to endorse or promote products derived from *
26 * this software without specific prior written permission. *
27 * *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
30 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
31 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
32 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
33 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
34 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
35 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
36 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
37 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
38 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
39 * *
40 \*===========================================================================*/
41
42
43
44
45
46 //=============================================================================
47 //
48 //
49 //=============================================================================
50
51
52 //== INCLUDES =================================================================
53
54 #include "ACG/Scenegraph/DrawModes.hh"
55 #include "DrawModeConverter.hh"
56
57 //== TYPEDEFS =================================================================
58
59 //== CLASS DEFINITION =========================================================
60
62 std::vector< QString > drawModeToList(ACG::SceneGraph::DrawModes::DrawMode _drawMode) {
63 std::vector< QString > draw_modes;
64
65 if ( _drawMode & ACG::SceneGraph::DrawModes::DEFAULT )
66 draw_modes.push_back("DEFAULT");
67 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED)
68 draw_modes.push_back("SOLID_SMOOTH_SHADED");
69 if ( _drawMode & ACG::SceneGraph::DrawModes::HIDDENLINE)
70 draw_modes.push_back("HIDDENLINE");
71 if ( _drawMode & ACG::SceneGraph::DrawModes::WIREFRAME)
72 draw_modes.push_back("WIREFRAME");
73 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS)
74 draw_modes.push_back("POINTS");
75 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_COLORED)
76 draw_modes.push_back("POINTS_COLORED");
77 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_SHADED)
78 draw_modes.push_back("POINTS_SHADED");
79 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED)
80 draw_modes.push_back("SOLID_FLAT_SHADED");
81 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED)
82 draw_modes.push_back("SOLID_PHONG_SHADED");
83 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED)
84 draw_modes.push_back("SOLID_FACES_COLORED");
85 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED)
86 draw_modes.push_back("SOLID_POINTS_COLORED");
87 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED)
88 draw_modes.push_back("SOLID_POINTS_COLORED_SHADED");
89 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED)
90 draw_modes.push_back("SOLID_ENV_MAPPED");
91 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED)
92 draw_modes.push_back("SOLID_TEXTURED");
93 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED)
94 draw_modes.push_back("SOLID_TEXTURED_SHADED");
95 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED)
96 draw_modes.push_back("SOLID_1DTEXTURED");
97 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED)
98 draw_modes.push_back("SOLID_1DTEXTURED_SHADED");
99 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED)
100 draw_modes.push_back("SOLID_3DTEXTURED");
101 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED)
102 draw_modes.push_back("SOLID_3DTEXTURED_SHADED");
103 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED)
104 draw_modes.push_back("SOLID_FACES_COLORED_FLAT_SHADED");
105 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED)
106 draw_modes.push_back("SOLID_FACES_COLORED_SMOOTH_SHADED");
107 if (_drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED)
108 draw_modes.push_back("SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED");
109 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE)
110 draw_modes.push_back("SOLID_2DTEXTURED_FACE");
111 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED)
112 draw_modes.push_back("SOLID_2DTEXTURED_FACE_SHADED");
113 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SHADER)
114 draw_modes.push_back("SOLID_SHADER");
115 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES)
116 draw_modes.push_back("SOLID_SMOOTH_SHADED_FEATURES");
117
118 return draw_modes;
119 }
120
122 ACG::SceneGraph::DrawModes::DrawMode listToDrawMode( std::vector< QString > _draw_modes ) {
123
124 ACG::SceneGraph::DrawModes::DrawMode drawMode( ACG::SceneGraph::DrawModes::NONE );
125
126 for ( uint i = 0 ; i < _draw_modes.size() ; ++i ) {
127 if( _draw_modes[i] == "DEFAULT" ) {
128 drawMode = drawMode | ACG::SceneGraph::DrawModes::DEFAULT;
129 } else if( _draw_modes[i] == "SOLID_SMOOTH_SHADED" ) {
130 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED;
131 } else if( _draw_modes[i] == "HIDDENLINE" ) {
132 drawMode = drawMode | ACG::SceneGraph::DrawModes::HIDDENLINE;
133 } else if( _draw_modes[i] == "WIREFRAME" ) {
134 drawMode = drawMode | ACG::SceneGraph::DrawModes::WIREFRAME;
135 } else if( _draw_modes[i] == "POINTS" ) {
136 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS;
137 } else if( _draw_modes[i] == "POINTS_COLORED" ) {
138 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_COLORED;
139 } else if( _draw_modes[i] == "POINTS_SHADED" ) {
140 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_SHADED;
141 } else if( _draw_modes[i] == "SOLID_FLAT_SHADED" ) {
142 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED;
143 } else if( _draw_modes[i] == "SOLID_PHONG_SHADED" ) {
144 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED;
145 } else if( _draw_modes[i] == "SOLID_FACES_COLORED" ) {
146 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED;
147 } else if( _draw_modes[i] == "SOLID_POINTS_COLORED" ) {
148 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED;
149 } else if( _draw_modes[i] == "SOLID_POINTS_COLORED_SHADED" ) {
150 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED;
151 } else if( _draw_modes[i] == "SOLID_ENV_MAPPED" ) {
152 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED;
153 } else if( _draw_modes[i] == "SOLID_TEXTURED" ) {
154 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED;
155 } else if( _draw_modes[i] == "SOLID_TEXTURED_SHADED" ) {
156 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED;
157 } else if( _draw_modes[i] == "SOLID_1DTEXTURED" ) {
158 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED;
159 } else if( _draw_modes[i] == "SOLID_1DTEXTURED_SHADED" ) {
160 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED;
161 } else if( _draw_modes[i] == "SOLID_3DTEXTURED" ) {
162 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED;
163 } else if( _draw_modes[i] == "SOLID_3DTEXTURED_SHADED" ) {
164 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED;
165 } else if( _draw_modes[i] == "SOLID_FACES_COLORED_FLAT_SHADED" ) {
166 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED;
167 } else if( _draw_modes[i] == "SOLID_FACES_COLORED_SMOOTH_SHADED" ) {
168 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED;
169 } else if (_draw_modes[i] == "SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED") {
170 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED;
171 } else if (_draw_modes[i] == "SOLID_2DTEXTURED_FACE") {
172 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE;
173 } else if( _draw_modes[i] == "SOLID_2DTEXTURED_FACE_SHADED" ) {
174 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED;
175 } else if( _draw_modes[i] == "SOLID_SHADER" ) {
176 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SHADER;
177 } else if( _draw_modes[i] == "SOLID_SMOOTH_SHADED_FEATURES" ) {
178 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES;
179 } else {
180 drawMode |= ACG::SceneGraph::DrawModes::getDrawMode(_draw_modes[i].toStdString());
181 }
182 }
183
184 return drawMode;
185
186 }
187
189 ACG::SceneGraph::DrawModes::DrawMode descriptionsToDrawMode ( std::vector< QString > _draw_modes ) {
190
191 ACG::SceneGraph::DrawModes::DrawMode drawMode( ACG::SceneGraph::DrawModes::NONE );
192
193 for ( uint i = 0 ; i < _draw_modes.size() ; ++i ) {
194 if( _draw_modes[i] == "Default" ) {
195 drawMode = drawMode | ACG::SceneGraph::DrawModes::DEFAULT;
196 } else if( _draw_modes[i] == "Solid (smooth shaded)" ) {
197 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED;
198 } else if( _draw_modes[i] == "Hiddenline" ) {
199 drawMode = drawMode | ACG::SceneGraph::DrawModes::HIDDENLINE;
200 } else if( _draw_modes[i] == "Wireframe" ) {
201 drawMode = drawMode | ACG::SceneGraph::DrawModes::WIREFRAME;
202 } else if( _draw_modes[i] == "Points" ) {
203 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS;
204 } else if( _draw_modes[i] == "Points (colored)" ) {
205 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_COLORED;
206 } else if( _draw_modes[i] == "Points (shaded)" ) {
207 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_SHADED;
208 } else if( _draw_modes[i] == "Solid (flat shaded)" ) {
209 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED;
210 } else if( _draw_modes[i] == "Solid (Phong shaded)" ) {
211 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED;
212 } else if( _draw_modes[i] == "Solid (colored per-face)" ) {
213 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED;
214 } else if( _draw_modes[i] == "Solid (colored per-vertex)" ) {
215 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED;
216 } else if( _draw_modes[i] == "Solid (colored per-vertex, shaded)" ) {
217 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED;
218 } else if( _draw_modes[i] == "Solid (environment mapped)" ) {
219 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED;
220 } else if( _draw_modes[i] == "Solid (textured)" ) {
221 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED;
222 } else if( _draw_modes[i] == "Solid (textured, shaded)" ) {
223 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED;
224 } else if( _draw_modes[i] == "Solid (scalar field)" ) {
225 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED;
226 } else if( _draw_modes[i] == "Solid (scalar field, shaded)" ) {
227 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED;
228 } else if( _draw_modes[i] == "Solid (3D textured)" ) {
229 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED;
230 } else if( _draw_modes[i] == "Solid (3D textured, shaded)" ) {
231 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED;
232 } else if( _draw_modes[i] == "Solid (colored per-face, flat shaded)" ) {
233 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED;
234 } else if( _draw_modes[i] == "Solid (colored per-face, smooth shaded)" ) {
235 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED;
236 } else if( _draw_modes[i] == "Solid (colored per-face, face textured, smooth shaded)" ) {
237 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED;
238 } else if( _draw_modes[i] == "Solid (face textured)" ) {
239 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE;
240 } else if( _draw_modes[i] == "Solid (face textured, shaded)" ) {
241 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED;
242 } else if( _draw_modes[i] == "Shader controlled" ) {
243 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SHADER;
244 } else if( _draw_modes[i] == "Solid (smooth shaded, features)" ) {
245 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES;
246 } else {
247 drawMode |= ACG::SceneGraph::DrawModes::getDrawMode(_draw_modes[i].toStdString());
248 }
249 }
250
251 return drawMode;
252 }
253
255 std::vector< QString > drawModeToDescriptions(ACG::SceneGraph::DrawModes::DrawMode _drawMode) {
256 std::vector< QString > draw_modes;
257
258 if ( _drawMode & ACG::SceneGraph::DrawModes::DEFAULT )
259 draw_modes.push_back("Default");
260 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED)
261 draw_modes.push_back("Solid (smooth shaded)");
262 if ( _drawMode & ACG::SceneGraph::DrawModes::HIDDENLINE)
263 draw_modes.push_back("Hiddenline");
264 if ( _drawMode & ACG::SceneGraph::DrawModes::WIREFRAME)
265 draw_modes.push_back("Wireframe");
266 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS)
267 draw_modes.push_back("Points");
268 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_COLORED)
269 draw_modes.push_back("Points (colored)");
270 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_SHADED)
271 draw_modes.push_back("Points (shaded)");
272 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED)
273 draw_modes.push_back("Solid (flat shaded)");
274 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED)
275 draw_modes.push_back("Solid (Phong shaded)");
276 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED)
277 draw_modes.push_back("Solid (colored per-face)");
278 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED)
279 draw_modes.push_back("Solid (colored per-vertex)");
280 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED)
281 draw_modes.push_back("Solid (colored per-vertex, shaded)");
282 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED)
283 draw_modes.push_back("Solid (environment mapped)");
284 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED)
285 draw_modes.push_back("Solid (textured)");
286 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED)
287 draw_modes.push_back("Solid (textured, shaded)");
288 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED)
289 draw_modes.push_back("Solid (scalar field)");
290 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED)
291 draw_modes.push_back("Solid (scalar field, shaded)");
292 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED)
293 draw_modes.push_back("Solid (3D textured)");
294 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED)
295 draw_modes.push_back("Solid (3D textured, shaded)");
296 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED)
297 draw_modes.push_back("Solid (colored per-face, flat shaded)");
298 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED)
299 draw_modes.push_back("Solid (colored per-face, smooth shaded)");
300 if (_drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED)
301 draw_modes.push_back("Solid (colored per-face, face textured, smooth shaded)");
302 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE)
303 draw_modes.push_back("Solid (face textured)");
304 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED)
305 draw_modes.push_back("Solid (face textured, shaded)");
306 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SHADER)
307 draw_modes.push_back("Shader controlled");
308 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES)
309 draw_modes.push_back("Solid (smooth shaded, features)");
310
311 return draw_modes;
312 }
313 //=============================================================================
314
ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE
DrawMode SOLID_2DTEXTURED_FACE
draw per halfedge textured faces
Definition: DrawModes.cc:96
ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED
DrawMode SOLID_3DTEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:93
ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED
DrawMode SOLID_ENV_MAPPED
draw environment mapped
Definition: DrawModes.cc:87
ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES
DrawMode SOLID_SMOOTH_SHADED_FEATURES
draw smooth shaded (Gouraud shaded) faces (requires halfedge normals)
Definition: DrawModes.cc:99
ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED
DrawMode SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED
draw per halfedge texture faces modulated with face colors with smooth shading
Definition: DrawModes.cc:104
PluginFunctions::drawMode
ACG::SceneGraph::DrawModes::DrawMode drawMode(int _viewer)
Get the current draw Mode of a Viewer.
Definition: PluginFunctions.cc:452
ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED
DrawMode SOLID_2DTEXTURED_FACE_SHADED
draw per halfedge textured faces
Definition: DrawModes.cc:97
ACG::SceneGraph::DrawModes::HIDDENLINE
DrawMode HIDDENLINE
draw hidden line (2 rendering passes needed)
Definition: DrawModes.cc:80
ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED
DrawMode SOLID_SMOOTH_SHADED
draw smooth shaded (Gouraud shaded) faces (requires halfedge normals)
Definition: DrawModes.cc:82
ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED
DrawMode SOLID_3DTEXTURED
draw textured faces
Definition: DrawModes.cc:92
ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED
DrawMode SOLID_POINTS_COLORED_SHADED
draw faces, but use Gouraud shading to interpolate vertex colors
Definition: DrawModes.cc:86
ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED
DrawMode SOLID_PHONG_SHADED
draw phong shaded faces
Definition: DrawModes.cc:83
ACG::SceneGraph::DrawModes::DEFAULT
DrawMode DEFAULT
use the default (global) draw mode and not the node&#39;s own.
Definition: DrawModes.cc:72
ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED
DrawMode SOLID_1DTEXTURED
draw textured faces
Definition: DrawModes.cc:90
ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED
DrawMode SOLID_POINTS_COLORED
draw colored, but not lighted faces using interpolated vertex colors
Definition: DrawModes.cc:85
ACG::SceneGraph::DrawModes::getDrawMode
const DrawMode & getDrawMode(const std::string &_name)
Get a custom DrawMode.
Definition: DrawModes.cc:807
ACG::SceneGraph::DrawModes::SOLID_TEXTURED
DrawMode SOLID_TEXTURED
draw textured faces
Definition: DrawModes.cc:88
ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED
DrawMode SOLID_FACES_COLORED_FLAT_SHADED
draw flat shaded and colored faces (requires face normals and colors)
Definition: DrawModes.cc:94
ACG::SceneGraph::DrawModes::NONE
DrawMode NONE
not a valid draw mode
Definition: DrawModes.cc:71
ACG::SceneGraph::DrawModes::POINTS
DrawMode POINTS
draw unlighted points using the default base color
Definition: DrawModes.cc:73
ACG::SceneGraph::DrawModes::SOLID_SHADER
DrawMode SOLID_SHADER
Definition: DrawModes.cc:98
ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED
DrawMode SOLID_FLAT_SHADED
draw flat shaded faces (requires face normals)
Definition: DrawModes.cc:81
ACG::SceneGraph::DrawModes::DrawMode
Specifies a DrawMode.
Definition: DrawModes.hh:288
ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED
DrawMode SOLID_1DTEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:91
ACG::SceneGraph::DrawModes::WIREFRAME
DrawMode WIREFRAME
draw wireframe
Definition: DrawModes.cc:78
ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED
DrawMode SOLID_FACES_COLORED
draw colored, but not lighted faces using face colors
Definition: DrawModes.cc:84
ACG::SceneGraph::DrawModes::POINTS_COLORED
DrawMode POINTS_COLORED
draw colored, but not lighted points (requires point colors)
Definition: DrawModes.cc:74
ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED
DrawMode SOLID_TEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:89
ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED
DrawMode SOLID_FACES_COLORED_SMOOTH_SHADED
draw smooth shaded and colored faces (requires vertex normals and face colors)
Definition: DrawModes.cc:95
ACG::SceneGraph::DrawModes::POINTS_SHADED
DrawMode POINTS_SHADED
draw shaded points (requires point normals)
Definition: DrawModes.cc:75