Classes | |
| class | DrawMode |
Typedefs | |
| typedef std::vector< DrawMode > | VecDrawModes |
Enumerations | |
| enum | DrawModeIDs { NONE = 0, DEFAULT = 1, POINTS = 1<<1, POINTS_COLORED = 1<<2, POINTS_SHADED = 1<<3, WIREFRAME = 1<<4, HIDDENLINE = 1<<5, SOLID_FLAT_SHADED = 1<<6, SOLID_SMOOTH_SHADED = 1<<7, SOLID_PHONG_SHADED = 1<<8, SOLID_FACES_COLORED = 1<<9, SOLID_POINTS_COLORED = 1<<10, SOLID_ENV_MAPPED = 1<<11, SOLID_TEXTURED = 1<<12, SOLID_TEXTURED_SHADED = 1<<13, SOLID_1DTEXTURED = 1<<14, SOLID_1DTEXTURED_SHADED = 1<<15, SOLID_3DTEXTURED = 1<<16, SOLID_3DTEXTURED_SHADED = 1<<17, SOLID_FACES_COLORED_FLAT_SHADED = 1<<18, SOLID_2DTEXTURED_FACE = 1<<19, SOLID_2DTEXTURED_FACE_SHADED = 1<<20, SOLID_SHADER = 1 <<21, UNUSED = 1 <<22 } |
Functions | |
| std::string | description (unsigned int _drawMode) |
| std::vector< unsigned int > | getDrawModeIDs (unsigned int _drawModes) |
| bool | containsId (unsigned int _drawMode, unsigned int _id) |
| void | initializeDefaultDrawModes (void) |
| bool | addDrawMode (const std::string &_name, unsigned int &_newId) |
| bool | getDrawModeId (const std::string &_name, unsigned int &_Id) |
Variables | |
| static VecDrawModes | currentDrawModes_ |
| static unsigned int | firstFreeID_ |
This namespace consists of the definition of all available draw modes, function to get their name (description()) and to include them in a QPopupMenu.
Lists all basic draw modes. The function BaseNode::availableDrawModes() returns OR'ed items of this enum
Definition at line 91 of file DrawModes.hh.
| ACGDLLEXPORT bool ACG::SceneGraph::DrawModes::addDrawMode | ( | const std::string & | _name, | |
| unsigned int & | _newId | |||
| ) |
Add a custom DrawMode. The new ID is returned in the variable _newId. A false return value indicates that the addition failed because all available IDs are occupied.
| ACGDLLEXPORT bool ACG::SceneGraph::DrawModes::containsId | ( | unsigned int | _drawMode, | |
| unsigned int | _id | |||
| ) |
Check whether an ID is encoded in _drawMode
Referenced by CoreWidget::slotUpdateGlobalDrawMenu(), and CoreWidget::slotUpdateViewerDrawMenu().
| ACGDLLEXPORT std::string ACG::SceneGraph::DrawModes::description | ( | unsigned int | _drawMode | ) |
Get a description string for _drawMode. An empty string is returned if _drawMode is not a valid draw mode.
Referenced by CoreWidget::slotGlobalDrawMenu(), CoreWidget::slotUpdateGlobalDrawMenu(), CoreWidget::slotUpdateViewerDrawMenu(), and CoreWidget::slotViewerDrawMenu().
| ACGDLLEXPORT bool ACG::SceneGraph::DrawModes::getDrawModeId | ( | const std::string & | _name, | |
| unsigned int & | _Id | |||
| ) |
| ACGDLLEXPORT std::vector< unsigned int > ACG::SceneGraph::DrawModes::getDrawModeIDs | ( | unsigned int | _drawMode | ) |
Get all draw mode IDs that are encoded in _drawMode
Referenced by CoreWidget::slotGlobalDrawMenu(), CoreWidget::slotUpdateGlobalDrawMenu(), CoreWidget::slotUpdateViewerDrawMenu(), and CoreWidget::slotViewerDrawMenu().
| ACGDLLEXPORT void ACG::SceneGraph::DrawModes::initializeDefaultDrawModes | ( | void | ) |
Initialize the default modes. This function has to be called at least once at application startup.
Referenced by ACG::SceneGraph::BaseNode::BaseNode().
VecDrawModes ACG::SceneGraph::DrawModes::currentDrawModes_ [static] |
Vector of all currently defined DrawModes.
Definition at line 90 of file DrawModes.cc.
unsigned int ACG::SceneGraph::DrawModes::firstFreeID_ [static] |
First free DrawMode ID for custom modes.
Definition at line 93 of file DrawModes.cc.