50 #ifndef VOLUMEMESHDRAWMODESCONTAINER_HH
51 #define VOLUMEMESHDRAWMODESCONTAINER_HH
53 #include <ACG/Scenegraph/DrawModes.hh>
105 cellBasedDrawModes(cellsFlatShaded | cellsSmoothShaded | cellsPhongShaded | cellsColoredPerCell | cellsColoredPerFace
106 | cellsColoredPerHalfface | cellsColoredPerVertex | cellsTransparent),
107 faceBasedDrawModes(facesFlatShaded | facesSmoothShaded | facesPhongShaded | facesColoredPerFace |
108 facesColoredPerVertex | facesTextured | facesTexturedShaded | hiddenLineBackgroundFaces),
109 halffaceBasedDrawModes(halffacesFlatShaded | halffacesSmoothShaded | halffacesPhongShaded | halffacesColoredPerHalfface
110 | halffacesColoredPerVertex),
111 edgeBasedDrawModes(edgesWireframe | edgesHiddenLine | edgesColoredPerEdge | irregularInnerEdges | irregularOuterEdges | edgesOnCells),
112 halfedgeBasedDrawModes(halfedgesWireframe | halfedgesHiddenLine | halfedgesColoredPerHalfedge),
113 vertexBasedDrawModes(verticesFlatShaded | verticesColored)
174 if (cellsFlatShaded & _drawMode)
return cellsFlatShaded;
175 if (cellsSmoothShaded & _drawMode)
return cellsSmoothShaded;
176 if (cellsPhongShaded & _drawMode)
return cellsPhongShaded;
177 if (cellsColoredPerCell & _drawMode)
return cellsColoredPerCell;
178 if (cellsColoredPerFace & _drawMode)
return cellsColoredPerFace;
179 if (cellsColoredPerHalfface & _drawMode)
return cellsColoredPerHalfface;
180 if (cellsColoredPerVertex & _drawMode)
return cellsColoredPerVertex;
181 if (cellsTransparent & _drawMode)
return cellsTransparent;
192 if (facesFlatShaded & _drawMode)
return facesFlatShaded;
193 if (facesSmoothShaded & _drawMode)
return facesSmoothShaded;
194 if (facesPhongShaded & _drawMode)
return facesPhongShaded;
195 if (facesColoredPerFace & _drawMode)
return facesColoredPerFace;
196 if (facesColoredPerFace & _drawMode)
return facesColoredPerFace;
197 if (facesColoredPerVertex & _drawMode)
return facesColoredPerVertex;
198 if (facesTextured & _drawMode)
return facesTextured;
199 if (facesTexturedShaded & _drawMode)
return facesTexturedShaded;
201 if (halffacesFlatShaded & _drawMode)
return halffacesFlatShaded;
202 if (halffacesSmoothShaded & _drawMode)
return halffacesSmoothShaded;
203 if (halffacesPhongShaded & _drawMode)
return halffacesPhongShaded;
204 if (halffacesColoredPerHalfface & _drawMode)
return halffacesColoredPerHalfface;
205 if (halffacesColoredPerVertex & _drawMode)
return halffacesColoredPerVertex;
207 if (hiddenLineBackgroundFaces & _drawMode)
return hiddenLineBackgroundFaces;
208 if (edgesHiddenLine & _drawMode)
return hiddenLineBackgroundFaces;
209 if (halfedgesHiddenLine & _drawMode)
return hiddenLineBackgroundFaces;
220 if (edgesWireframe & _drawMode)
return edgesWireframe;
221 if (edgesColoredPerEdge & _drawMode)
return edgesColoredPerEdge;
223 if (halfedgesWireframe & _drawMode)
return halfedgesWireframe;
224 if (halfedgesColoredPerHalfedge & _drawMode)
return halfedgesColoredPerHalfedge;
226 if (irregularInnerEdges & _drawMode)
return irregularInnerEdges;
227 if (irregularOuterEdges & _drawMode)
return irregularOuterEdges;
229 if (edgesHiddenLine & _drawMode)
return edgesHiddenLine;
230 if (halfedgesHiddenLine & _drawMode)
return halfedgesHiddenLine;
232 if (edgesOnCells & _drawMode)
return edgesOnCells;
243 if (verticesFlatShaded & _drawMode)
return verticesFlatShaded;
244 if (verticesColored & _drawMode)
return verticesColored;
245 if (verticesOnCells & _drawMode)
return verticesOnCells;
252 #endif // VOLUMEMESHDRAWMODESCONTAINER_HH
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.
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 getFirstEdgeDrawMode(ACG::SceneGraph::DrawModes::DrawMode _drawMode)
Returns the first edge or halfedge based draw mode that is present in the given draw mode...
const DrawMode & addDrawMode(const std::string &_name, bool _propertyBased)
Add a custom DrawMode.
DrawMode NONE
not a valid draw mode
This class provides easy access to DrawModes supported by OpenVolumeMesh.