44 #include <ACG/Scenegraph/DrawModes.hh> 97 cellBasedDrawModes(cellsFlatShaded | cellsSmoothShaded | cellsPhongShaded | cellsColoredPerCell | cellsColoredPerFace
98 | cellsColoredPerHalfface | cellsColoredPerVertex | cellsTransparent),
99 faceBasedDrawModes(facesFlatShaded | facesSmoothShaded | facesPhongShaded | facesColoredPerFace | facesColoredPerFaceFlatShaded |
100 facesColoredPerVertex | facesTextured | facesTexturedShaded | hiddenLineBackgroundFaces),
101 halffaceBasedDrawModes(halffacesFlatShaded | halffacesSmoothShaded | halffacesPhongShaded | halffacesColoredPerHalfface
102 | halffacesColoredPerVertex),
103 edgeBasedDrawModes(edgesWireframe | edgesHiddenLine | edgesColoredPerEdge | irregularInnerEdges | irregularOuterEdges | edgesOnCells),
104 halfedgeBasedDrawModes(halfedgesWireframe | halfedgesHiddenLine | halfedgesColoredPerHalfedge),
105 vertexBasedDrawModes(verticesFlatShaded | verticesColored)
167 if (cellsFlatShaded & _drawMode)
return cellsFlatShaded;
168 if (cellsSmoothShaded & _drawMode)
return cellsSmoothShaded;
169 if (cellsPhongShaded & _drawMode)
return cellsPhongShaded;
170 if (cellsColoredPerCell & _drawMode)
return cellsColoredPerCell;
171 if (cellsColoredPerFace & _drawMode)
return cellsColoredPerFace;
172 if (cellsColoredPerHalfface & _drawMode)
return cellsColoredPerHalfface;
173 if (cellsColoredPerVertex & _drawMode)
return cellsColoredPerVertex;
174 if (cellsTransparent & _drawMode)
return cellsTransparent;
185 if (facesFlatShaded & _drawMode)
return facesFlatShaded;
186 if (facesSmoothShaded & _drawMode)
return facesSmoothShaded;
187 if (facesPhongShaded & _drawMode)
return facesPhongShaded;
188 if (facesColoredPerFace & _drawMode)
return facesColoredPerFace;
189 if (facesColoredPerFaceFlatShaded & _drawMode)
return facesColoredPerFaceFlatShaded;
190 if (facesColoredPerFace & _drawMode)
return facesColoredPerFace;
191 if (facesColoredPerVertex & _drawMode)
return facesColoredPerVertex;
192 if (facesTextured & _drawMode)
return facesTextured;
193 if (facesTexturedShaded & _drawMode)
return facesTexturedShaded;
195 if (halffacesFlatShaded & _drawMode)
return halffacesFlatShaded;
196 if (halffacesSmoothShaded & _drawMode)
return halffacesSmoothShaded;
197 if (halffacesPhongShaded & _drawMode)
return halffacesPhongShaded;
198 if (halffacesColoredPerHalfface & _drawMode)
return halffacesColoredPerHalfface;
199 if (halffacesColoredPerVertex & _drawMode)
return halffacesColoredPerVertex;
201 if (hiddenLineBackgroundFaces & _drawMode)
return hiddenLineBackgroundFaces;
202 if (edgesHiddenLine & _drawMode)
return hiddenLineBackgroundFaces;
203 if (halfedgesHiddenLine & _drawMode)
return hiddenLineBackgroundFaces;
214 if (edgesWireframe & _drawMode)
return edgesWireframe;
215 if (edgesColoredPerEdge & _drawMode)
return edgesColoredPerEdge;
217 if (halfedgesWireframe & _drawMode)
return halfedgesWireframe;
218 if (halfedgesColoredPerHalfedge & _drawMode)
return halfedgesColoredPerHalfedge;
220 if (irregularInnerEdges & _drawMode)
return irregularInnerEdges;
221 if (irregularOuterEdges & _drawMode)
return irregularOuterEdges;
223 if (edgesHiddenLine & _drawMode)
return edgesHiddenLine;
224 if (halfedgesHiddenLine & _drawMode)
return halfedgesHiddenLine;
226 if (edgesOnCells & _drawMode)
return edgesOnCells;
237 if (verticesFlatShaded & _drawMode)
return verticesFlatShaded;
238 if (verticesColored & _drawMode)
return verticesColored;
239 if (verticesOnCells & _drawMode)
return verticesOnCells;
This class provides easy access to DrawModes supported by OpenVolumeMesh.
const DrawMode & addDrawMode(const std::string &_name, bool _propertyBased)
Add a custom DrawMode.
DrawMode NONE
not a valid draw mode
ACG::SceneGraph::DrawModes::DrawMode getFirstEdgeDrawMode(ACG::SceneGraph::DrawModes::DrawMode _drawMode)
Returns the first edge or halfedge based draw mode that is present in the given draw mode...
ACG::SceneGraph::DrawModes::DrawMode getFirstCellDrawMode(ACG::SceneGraph::DrawModes::DrawMode _drawMode)
Returns the first cell based draw mode that is present in the given draw mode.
ACG::SceneGraph::DrawModes::DrawMode getFirstFaceDrawMode(ACG::SceneGraph::DrawModes::DrawMode _drawMode)
Returns the first face or halfface based draw mode that is present in the given draw mode...
ACG::SceneGraph::DrawModes::DrawMode getFirstVertexDrawMode(ACG::SceneGraph::DrawModes::DrawMode _drawMode)
Returns the first vertex based draw mode that is present in the given draw mode.