Developer Documentation
|
Public Member Functions | |
bool | rendererExists (QString _name) |
Check if a renderer with the given name exists. More... | |
RendererInfo * | newRenderer (QString _name) |
Get a new renderer Instance. More... | |
int | getRendererId (QString _name) |
get renderer id with the given name More... | |
RendererInfo * | getRenderer (QString _name) |
get renderer with the given name More... | |
int | countRenderers (ACG::SceneGraph::DrawModes::DrawMode _mode) |
count renderers for a DrawMode (excluding the default renderer) More... | |
RendererInfo * | operator[] (unsigned int _id) |
Get the renderer with the given id. More... | |
unsigned int | available () |
number of available renderers More... | |
void | setActive (unsigned int _active, int _id) |
set the active renderer More... | |
void | setActive (QString _active, int _id) |
set the active renderer More... | |
RendererInfo * | active (int _id) |
Get the current active renderer. More... | |
unsigned int | activeId (int _id) |
Get the id of the active renderer. More... | |
Private Attributes | |
std::vector< RendererInfo > | availableRenderers_ |
Vector holding all available renderers. | |
std::vector< unsigned int > | activeRenderers_ |
The currently active renderer ids. | |
Definition at line 93 of file RendererInfo.hh.
RendererInfo * RenderManager::active | ( | int | _id | ) |
Get the current active renderer.
_id | viewer id |
Definition at line 191 of file RendererInfo.cc.
unsigned int RenderManager::activeId | ( | int | _id | ) |
Get the id of the active renderer.
_id | viewer id |
Definition at line 204 of file RendererInfo.cc.
unsigned int RenderManager::available | ( | ) |
number of available renderers
Definition at line 149 of file RendererInfo.cc.
int RenderManager::countRenderers | ( | ACG::SceneGraph::DrawModes::DrawMode | _mode | ) |
count renderers for a DrawMode (excluding the default renderer)
Checks in the list of renderers how many support the given draw mode combination. The combination is checked as one complete block.
_mode | The mode that should be checked. |
Definition at line 128 of file RendererInfo.cc.
RendererInfo * RenderManager::getRenderer | ( | QString | _name | ) |
get renderer with the given name
_name | Name of the renderer |
Definition at line 110 of file RendererInfo.cc.
int RenderManager::getRendererId | ( | QString | _name | ) |
get renderer id with the given name
_name | Name of the renderer |
Definition at line 119 of file RendererInfo.cc.
RendererInfo * RenderManager::newRenderer | ( | QString | _name | ) |
Get a new renderer Instance.
_name | Name of the new renderer |
Definition at line 98 of file RendererInfo.cc.
RendererInfo * RenderManager::operator[] | ( | unsigned int | _id | ) |
Get the renderer with the given id.
_id | Id of the renderer |
Definition at line 140 of file RendererInfo.cc.
bool RenderManager::rendererExists | ( | QString | _name | ) |
Check if a renderer with the given name exists.
_name | Name of the renderer |
Definition at line 88 of file RendererInfo.cc.
void RenderManager::setActive | ( | unsigned int | _active, |
int | _id | ||
) |
set the active renderer
_id | viewer id |
_active | id of the renderer |
Definition at line 154 of file RendererInfo.cc.
void RenderManager::setActive | ( | QString | _active, |
int | _id | ||
) |
set the active renderer
_active | name of the renderer |
_id | viewer id |
Definition at line 171 of file RendererInfo.cc.