Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 * $Revision$ *
45 * $LastChangedBy$ *
46 * $Date$ *
47 * *
48 \*===========================================================================*/
49
50
51
52 //=============================================================================
53 //
54 //
55 //=============================================================================
56
57
58 //== INCLUDES =================================================================
59
60 #include "DrawModeConverter.hh"
61
62 //== TYPEDEFS =================================================================
63
64 //== CLASS DEFINITION =========================================================
65
67 std::vector< QString > drawModeToList(ACG::SceneGraph::DrawModes::DrawMode _drawMode) {
68 std::vector< QString > draw_modes;
69
70 if ( _drawMode & ACG::SceneGraph::DrawModes::DEFAULT )
71 draw_modes.push_back("DEFAULT");
72 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED)
73 draw_modes.push_back("SOLID_SMOOTH_SHADED");
74 if ( _drawMode & ACG::SceneGraph::DrawModes::HIDDENLINE)
75 draw_modes.push_back("HIDDENLINE");
76 if ( _drawMode & ACG::SceneGraph::DrawModes::WIREFRAME)
77 draw_modes.push_back("WIREFRAME");
78 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS)
79 draw_modes.push_back("POINTS");
80 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_COLORED)
81 draw_modes.push_back("POINTS_COLORED");
82 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_SHADED)
83 draw_modes.push_back("POINTS_SHADED");
84 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED)
85 draw_modes.push_back("SOLID_FLAT_SHADED");
86 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED)
87 draw_modes.push_back("SOLID_PHONG_SHADED");
88 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED)
89 draw_modes.push_back("SOLID_FACES_COLORED");
90 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED)
91 draw_modes.push_back("SOLID_POINTS_COLORED");
92 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED)
93 draw_modes.push_back("SOLID_POINTS_COLORED_SHADED");
94 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED)
95 draw_modes.push_back("SOLID_ENV_MAPPED");
96 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED)
97 draw_modes.push_back("SOLID_TEXTURED");
98 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED)
99 draw_modes.push_back("SOLID_TEXTURED_SHADED");
100 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED)
101 draw_modes.push_back("SOLID_1DTEXTURED");
102 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED)
103 draw_modes.push_back("SOLID_1DTEXTURED_SHADED");
104 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED)
105 draw_modes.push_back("SOLID_3DTEXTURED");
106 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED)
107 draw_modes.push_back("SOLID_3DTEXTURED_SHADED");
108 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED)
109 draw_modes.push_back("SOLID_FACES_COLORED_FLAT_SHADED");
110 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED)
111 draw_modes.push_back("SOLID_FACES_COLORED_SMOOTH_SHADED");
112 if (_drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED)
113 draw_modes.push_back("SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED");
114 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE)
115 draw_modes.push_back("SOLID_2DTEXTURED_FACE");
116 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED)
117 draw_modes.push_back("SOLID_2DTEXTURED_FACE_SHADED");
118 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SHADER)
119 draw_modes.push_back("SOLID_SHADER");
120 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES)
121 draw_modes.push_back("SOLID_SMOOTH_SHADED_FEATURES");
122
123 return draw_modes;
124 }
125
127 ACG::SceneGraph::DrawModes::DrawMode listToDrawMode( std::vector< QString > _draw_modes ) {
128
129 ACG::SceneGraph::DrawModes::DrawMode drawMode( ACG::SceneGraph::DrawModes::NONE );
130
131 for ( uint i = 0 ; i < _draw_modes.size() ; ++i ) {
132 if( _draw_modes[i] == "DEFAULT" ) {
133 drawMode = drawMode | ACG::SceneGraph::DrawModes::DEFAULT;
134 } else if( _draw_modes[i] == "SOLID_SMOOTH_SHADED" ) {
135 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED;
136 } else if( _draw_modes[i] == "HIDDENLINE" ) {
137 drawMode = drawMode | ACG::SceneGraph::DrawModes::HIDDENLINE;
138 } else if( _draw_modes[i] == "WIREFRAME" ) {
139 drawMode = drawMode | ACG::SceneGraph::DrawModes::WIREFRAME;
140 } else if( _draw_modes[i] == "POINTS" ) {
141 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS;
142 } else if( _draw_modes[i] == "POINTS_COLORED" ) {
143 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_COLORED;
144 } else if( _draw_modes[i] == "POINTS_SHADED" ) {
145 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_SHADED;
146 } else if( _draw_modes[i] == "SOLID_FLAT_SHADED" ) {
147 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED;
148 } else if( _draw_modes[i] == "SOLID_PHONG_SHADED" ) {
149 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED;
150 } else if( _draw_modes[i] == "SOLID_FACES_COLORED" ) {
151 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED;
152 } else if( _draw_modes[i] == "SOLID_POINTS_COLORED" ) {
153 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED;
154 } else if( _draw_modes[i] == "SOLID_POINTS_COLORED_SHADED" ) {
155 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED;
156 } else if( _draw_modes[i] == "SOLID_ENV_MAPPED" ) {
157 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED;
158 } else if( _draw_modes[i] == "SOLID_TEXTURED" ) {
159 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED;
160 } else if( _draw_modes[i] == "SOLID_TEXTURED_SHADED" ) {
161 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED;
162 } else if( _draw_modes[i] == "SOLID_1DTEXTURED" ) {
163 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED;
164 } else if( _draw_modes[i] == "SOLID_1DTEXTURED_SHADED" ) {
165 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED;
166 } else if( _draw_modes[i] == "SOLID_3DTEXTURED" ) {
167 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED;
168 } else if( _draw_modes[i] == "SOLID_3DTEXTURED_SHADED" ) {
169 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED;
170 } else if( _draw_modes[i] == "SOLID_FACES_COLORED_FLAT_SHADED" ) {
171 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED;
172 } else if( _draw_modes[i] == "SOLID_FACES_COLORED_SMOOTH_SHADED" ) {
173 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED;
174 } else if (_draw_modes[i] == "SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED") {
175 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED;
176 } else if (_draw_modes[i] == "SOLID_2DTEXTURED_FACE") {
177 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE;
178 } else if( _draw_modes[i] == "SOLID_2DTEXTURED_FACE_SHADED" ) {
179 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED;
180 } else if( _draw_modes[i] == "SOLID_SHADER" ) {
181 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SHADER;
182 } else if( _draw_modes[i] == "SOLID_SMOOTH_SHADED_FEATURES" ) {
183 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES;
184 }
185 }
186
187 return drawMode;
188
189 }
190
192 ACG::SceneGraph::DrawModes::DrawMode descriptionsToDrawMode ( std::vector< QString > _draw_modes ) {
193
194 ACG::SceneGraph::DrawModes::DrawMode drawMode( ACG::SceneGraph::DrawModes::NONE );
195
196 for ( uint i = 0 ; i < _draw_modes.size() ; ++i ) {
197 if( _draw_modes[i] == "Default" ) {
198 drawMode = drawMode | ACG::SceneGraph::DrawModes::DEFAULT;
199 } else if( _draw_modes[i] == "Solid (smooth shaded)" ) {
200 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED;
201 } else if( _draw_modes[i] == "Hiddenline" ) {
202 drawMode = drawMode | ACG::SceneGraph::DrawModes::HIDDENLINE;
203 } else if( _draw_modes[i] == "Wireframe" ) {
204 drawMode = drawMode | ACG::SceneGraph::DrawModes::WIREFRAME;
205 } else if( _draw_modes[i] == "Points" ) {
206 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS;
207 } else if( _draw_modes[i] == "Points (colored)" ) {
208 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_COLORED;
209 } else if( _draw_modes[i] == "Points (shaded)" ) {
210 drawMode = drawMode | ACG::SceneGraph::DrawModes::POINTS_SHADED;
211 } else if( _draw_modes[i] == "Solid (flat shaded)" ) {
212 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED;
213 } else if( _draw_modes[i] == "Solid (Phong shaded)" ) {
214 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED;
215 } else if( _draw_modes[i] == "Solid (colored per-face)" ) {
216 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED;
217 } else if( _draw_modes[i] == "Solid (colored per-vertex)" ) {
218 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED;
219 } else if( _draw_modes[i] == "Solid (colored per-vertex, shaded)" ) {
220 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED;
221 } else if( _draw_modes[i] == "Solid (environment mapped)" ) {
222 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED;
223 } else if( _draw_modes[i] == "Solid (textured)" ) {
224 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED;
225 } else if( _draw_modes[i] == "Solid (textured, shaded)" ) {
226 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED;
227 } else if( _draw_modes[i] == "Solid (scalar field)" ) {
228 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED;
229 } else if( _draw_modes[i] == "Solid (scalar field, shaded)" ) {
230 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED;
231 } else if( _draw_modes[i] == "Solid (3D textured)" ) {
232 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED;
233 } else if( _draw_modes[i] == "Solid (3D textured, shaded)" ) {
234 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED;
235 } else if( _draw_modes[i] == "Solid (colored per-face, flat shaded)" ) {
236 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED;
237 } else if( _draw_modes[i] == "Solid (colored per-face, smooth shaded)" ) {
238 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED;
239 } else if( _draw_modes[i] == "Solid (colored per-face, face textured, smooth shaded)" ) {
240 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED;
241 } else if( _draw_modes[i] == "Solid (face textured)" ) {
242 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE;
243 } else if( _draw_modes[i] == "Solid (face textured, shaded)" ) {
244 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED;
245 } else if( _draw_modes[i] == "Shader controlled" ) {
246 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SHADER;
247 } else if( _draw_modes[i] == "Solid (smooth shaded, features)" ) {
248 drawMode = drawMode | ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES;
249 }
250 }
251
252 return drawMode;
253 }
254
256 std::vector< QString > drawModeToDescriptions(ACG::SceneGraph::DrawModes::DrawMode _drawMode) {
257 std::vector< QString > draw_modes;
258
259 if ( _drawMode & ACG::SceneGraph::DrawModes::DEFAULT )
260 draw_modes.push_back("Default");
261 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED)
262 draw_modes.push_back("Solid (smooth shaded)");
263 if ( _drawMode & ACG::SceneGraph::DrawModes::HIDDENLINE)
264 draw_modes.push_back("Hiddenline");
265 if ( _drawMode & ACG::SceneGraph::DrawModes::WIREFRAME)
266 draw_modes.push_back("Wireframe");
267 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS)
268 draw_modes.push_back("Points");
269 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_COLORED)
270 draw_modes.push_back("Points (colored)");
271 if ( _drawMode & ACG::SceneGraph::DrawModes::POINTS_SHADED)
272 draw_modes.push_back("Points (shaded)");
273 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED)
274 draw_modes.push_back("Solid (flat shaded)");
275 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED)
276 draw_modes.push_back("Solid (Phong shaded)");
277 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED)
278 draw_modes.push_back("Solid (colored per-face)");
279 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED)
280 draw_modes.push_back("Solid (colored per-vertex)");
281 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED_SHADED)
282 draw_modes.push_back("Solid (colored per-vertex, shaded)");
283 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED)
284 draw_modes.push_back("Solid (environment mapped)");
285 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED)
286 draw_modes.push_back("Solid (textured)");
287 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED)
288 draw_modes.push_back("Solid (textured, shaded)");
289 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED)
290 draw_modes.push_back("Solid (scalar field)");
291 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED)
292 draw_modes.push_back("Solid (scalar field, shaded)");
293 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED)
294 draw_modes.push_back("Solid (3D textured)");
295 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED)
296 draw_modes.push_back("Solid (3D textured, shaded)");
297 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_FLAT_SHADED)
298 draw_modes.push_back("Solid (colored per-face, flat shaded)");
299 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_SMOOTH_SHADED)
300 draw_modes.push_back("Solid (colored per-face, smooth shaded)");
301 if (_drawMode & ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED_2DTEXTURED_FACE_SMOOTH_SHADED)
302 draw_modes.push_back("Solid (colored per-face, face textured, smooth shaded)");
303 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE)
304 draw_modes.push_back("Solid (face textured)");
305 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED)
306 draw_modes.push_back("Solid (face textured, shaded)");
307 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SHADER)
308 draw_modes.push_back("Shader controlled");
309 if ( _drawMode & ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES)
310 draw_modes.push_back("Solid (smooth shaded, features)");
311
312 return draw_modes;
313 }
314 //=============================================================================
315
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:101
PluginFunctions::drawMode
ACG::SceneGraph::DrawModes::DrawMode drawMode(int _viewer)
Get the current draw Mode of a Viewer.
Definition: PluginFunctions.cc:454
ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED_SHADED
DrawMode SOLID_1DTEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:97
ACG::SceneGraph::DrawModes::HIDDENLINE
DrawMode HIDDENLINE
draw hidden line (2 rendering passes needed)
Definition: DrawModes.cc:86
ACG::SceneGraph::DrawModes::DEFAULT
DrawMode DEFAULT
use the default (global) draw mode and not the node's own.
Definition: DrawModes.cc:78
ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE_SHADED
DrawMode SOLID_2DTEXTURED_FACE_SHADED
draw per halfedge textured faces
Definition: DrawModes.cc:103
ACG::SceneGraph::DrawModes::SOLID_2DTEXTURED_FACE
DrawMode SOLID_2DTEXTURED_FACE
draw per halfedge textured faces
Definition: DrawModes.cc:102
ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED
DrawMode SOLID_FLAT_SHADED
draw flat shaded faces (requires face normals)
Definition: DrawModes.cc:87
ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED
DrawMode SOLID_SMOOTH_SHADED
draw smooth shaded (Gouraud shaded) faces (requires halfedge normals)
Definition: DrawModes.cc:88
ACG::SceneGraph::DrawModes::SOLID_SHADER
DrawMode SOLID_SHADER
Definition: DrawModes.cc:104
ACG::SceneGraph::DrawModes::DrawMode
Specifies a DrawMode.
Definition: DrawModes.hh:294
ACG::SceneGraph::DrawModes::SOLID_ENV_MAPPED
DrawMode SOLID_ENV_MAPPED
draw environment mapped
Definition: DrawModes.cc:93
ACG::SceneGraph::DrawModes::POINTS_COLORED
DrawMode POINTS_COLORED
draw colored, but not lighted points (requires point colors)
Definition: DrawModes.cc:80
ACG::SceneGraph::DrawModes::POINTS
DrawMode POINTS
draw unlighted points using the default base color
Definition: DrawModes.cc:79
ACG::SceneGraph::DrawModes::SOLID_POINTS_COLORED
DrawMode SOLID_POINTS_COLORED
draw colored, but not lighted faces using interpolated vertex colors
Definition: DrawModes.cc:91
ACG::SceneGraph::DrawModes::SOLID_TEXTURED
DrawMode SOLID_TEXTURED
draw textured faces
Definition: DrawModes.cc:94
ACG::SceneGraph::DrawModes::POINTS_SHADED
DrawMode POINTS_SHADED
draw shaded points (requires point normals)
Definition: DrawModes.cc:81
ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED
DrawMode SOLID_3DTEXTURED
draw textured faces
Definition: DrawModes.cc:98
ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED
DrawMode SOLID_PHONG_SHADED
draw phong shaded faces
Definition: DrawModes.cc:89
ACG::SceneGraph::DrawModes::WIREFRAME
DrawMode WIREFRAME
draw wireframe
Definition: DrawModes.cc:84
ACG::SceneGraph::DrawModes::SOLID_FACES_COLORED
DrawMode SOLID_FACES_COLORED
draw colored, but not lighted faces using face colors
Definition: DrawModes.cc:90
ACG::SceneGraph::DrawModes::SOLID_1DTEXTURED
DrawMode SOLID_1DTEXTURED
draw textured faces
Definition: DrawModes.cc:96
ACG::SceneGraph::DrawModes::SOLID_TEXTURED_SHADED
DrawMode SOLID_TEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:95
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:110
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:100
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:92
ACG::SceneGraph::DrawModes::SOLID_SMOOTH_SHADED_FEATURES
DrawMode SOLID_SMOOTH_SHADED_FEATURES
draw smooth shaded (Gouraud shaded) faces (requires halfedge normals)
Definition: DrawModes.cc:105
ACG::SceneGraph::DrawModes::NONE
DrawMode NONE
not a valid draw mode
Definition: DrawModes.cc:77
ACG::SceneGraph::DrawModes::SOLID_3DTEXTURED_SHADED
DrawMode SOLID_3DTEXTURED_SHADED
draw smooth shaded textured faces
Definition: DrawModes.cc:99