Developer Documentation

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
RenderManager Class Reference

## 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.

## Detailed Description

Definition at line 93 of file RendererInfo.hh.

## Member Function Documentation

RendererInfo * RenderManager::active | ( | int | _id | ) |

Get the current active renderer.

Parameters

  _id | viewer id

Returns
  Renderer

Definition at line 191 of file RendererInfo.cc.

unsigned int RenderManager::activeId | ( | int | _id | ) |

Get the id of the active renderer.

Parameters

  _id | viewer id

Returns
  renderer id

Definition at line 204 of file RendererInfo.cc.

unsigned int RenderManager::available | ( |  | ) |

number of available renderers

Returns
  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.

Parameters

  _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

Parameters

  _name | Name of the renderer

Returns
  pointer or 0 if it does not exist

Definition at line 110 of file RendererInfo.cc.

int RenderManager::getRendererId | ( | QString | _name | ) |

get renderer id with the given name

Parameters

  _name | Name of the renderer

Returns
  Id of the renderer or -1 if it does not exist

Definition at line 119 of file RendererInfo.cc.

RendererInfo * RenderManager::newRenderer | ( | QString | _name | ) |

Get a new renderer Instance.

Parameters

  _name | Name of the new renderer

Returns
  Pointer to renderer. If it exists, the existing one is returned!

Definition at line 98 of file RendererInfo.cc.

RendererInfo * RenderManager::operator[] | ( | unsigned int | _id | ) |

Get the renderer with the given id.

Parameters

  _id | Id of the renderer

Returns

Definition at line 140 of file RendererInfo.cc.

bool RenderManager::rendererExists | ( | QString | _name | ) |

Check if a renderer with the given name exists.

Parameters

  _name | Name of the renderer

Returns
  exists or not

Definition at line 88 of file RendererInfo.cc.

void RenderManager::setActive | ( | unsigned int | _active,
|  | int | _id
| ) |  |

set the active renderer

Parameters

  _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

Parameters

  _active | name of the renderer
  _id | viewer id

Definition at line 171 of file RendererInfo.cc.

The documentation for this class was generated from the following files:

- OpenFlipper/common/RendererInfo.hh
- OpenFlipper/common/RendererInfo.cc