![]() |
VR-Forces 4.6 Class Documentation
|
The DtRenderer is the component responsible for rendering 3D images onto the screen. More...

Public Types | |
| typedef boost::unordered_map < DtElementID, double > | DtRenderMap |
| Type definition of an unordered map that maps the element ids of objects recently rendered to the last simulation time at which they were rendered. | |
Public Member Functions | |
| DtRenderer (DtDe &de) | |
| CTOR. | |
| virtual | ~DtRenderer () |
| DTOR. | |
| virtual void | update () |
| Abstract update. | |
| virtual void | postUpdate () |
| Called after tick; time to update observers. | |
| DtObserverObjectManager * | observerObjectManager () |
| Get the observer object manager. | |
| DtTickableManagerInterface & | tickableManager () |
| Get the scene manager's attachable scene object manager. | |
| const DtTickableManagerInterface & | tickableManager () const |
| DtOverlayManager & | overlayManager () |
| Get the manager's over the 2D overlays. | |
| const DtOverlayManager & | overlayManager () const |
| virtual bool | exportTerrainAndProps (const std::string &)=0 |
| Saves terrain geometry and props to specified file. | |
| virtual void | render ()=0 |
| Abstract render. | |
| virtual void | resetSceneGraph ()=0 |
| Removes all nodes from the scene graph. | |
| virtual void | setWireframeRendering (bool enabled)=0 |
| Turn wireframe mode on/off. | |
| virtual bool | wireframeRendering () const =0 |
| Get status of wireframe mode. | |
| virtual void | setShadowState (bool enabled)=0 |
| Set the shadow mode and settings. | |
| virtual bool | shadowsEnabled () const =0 |
| Get status of shadow mode. | |
| virtual void | releaseResources ()=0 |
| Release all openGL objects in the scene graph. | |
| virtual bool | makeContextCurrent ()=0 |
| Attempt to make a context current. | |
| void | createManagers () |
| Create overlay manager, must be called after creating the renderer as the manager may expect a specific subclasses of renderer. | |
| const DtRenderMap & | renderMap () const |
| Returns a const reference to the unordered map that contains all the element IDs of objects that were in the scene and what simTime they were last rendered in the scene. | |
Public Attributes | |
| boost::signal< void(double simTime)> | signal_update |
| Signal used to update systems. | |
| boost::signal< void(double simTime)> | signal_preObserverUpdate |
| Signal used to update systems. | |
| boost::signal< void(double simTime)> | signal_postUpdate |
| Signal used to update systems. | |
| boost::signal< void()> | signal_releaseResources |
| Signal used to update systems. | |
The DtRenderer is the component responsible for rendering 3D images onto the screen.
The component responsible for drawing 3D images onto a screen is the DtRenderer. Each display engine owns one. The DtRenderer provides an interface for updating the scene graph and rendering the scene. Its update() and render() functions are called each display engine tick.
The core VR-Vantage Toolkit framework abstracts away from the underlying rendering implementation. This separation ensures that the rendering-independent code remains independent of OSG, while the rendering code exists in the libraries that depend on OSG. (VR-Vantage can support alternate rendering solutions.)
| typedef boost::unordered_map<DtElementID, double> makVrv::DtRenderer::DtRenderMap |
Type definition of an unordered map that maps the element ids of objects recently rendered to the last simulation time at which they were rendered.
Elements not rendered recently are removed
| makVrv::DtRenderer::DtRenderer | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Abstract update.
Reimplemented in makVrv::DtOsgRenderer.
|
virtual |
Called after tick; time to update observers.
| DtObserverObjectManager* makVrv::DtRenderer::observerObjectManager | ( | ) |
Get the observer object manager.
| DtTickableManagerInterface& makVrv::DtRenderer::tickableManager | ( | ) |
Get the scene manager's attachable scene object manager.
| const DtTickableManagerInterface& makVrv::DtRenderer::tickableManager | ( | ) | const |
| DtOverlayManager& makVrv::DtRenderer::overlayManager | ( | ) |
Get the manager's over the 2D overlays.
| const DtOverlayManager& makVrv::DtRenderer::overlayManager | ( | ) | const |
|
pure virtual |
Saves terrain geometry and props to specified file.
This file will be saved in the format specified by the file extension. Currently only the .gdb extension is supported
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Abstract render.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Removes all nodes from the scene graph.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Turn wireframe mode on/off.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Get status of wireframe mode.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Set the shadow mode and settings.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Get status of shadow mode.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Release all openGL objects in the scene graph.
Implemented in makVrv::DtOsgRenderer.
|
pure virtual |
Attempt to make a context current.
Implemented in makVrv::DtOsgRenderer.
| void makVrv::DtRenderer::createManagers | ( | ) |
Create overlay manager, must be called after creating the renderer as the manager may expect a specific subclasses of renderer.
|
inline |
Returns a const reference to the unordered map that contains all the element IDs of objects that were in the scene and what simTime they were last rendered in the scene.
| boost::signal<void (double simTime)> makVrv::DtRenderer::signal_update |
Signal used to update systems.
Connect functions to this signal that need to be called once per tick in the update phase.
| boost::signal<void (double simTime)> makVrv::DtRenderer::signal_preObserverUpdate |
Signal used to update systems.
Connect functions to this signal that need to be called once per tick AFTER scene objects have been updated but before the observers are updated
| boost::signal<void (double simTime)> makVrv::DtRenderer::signal_postUpdate |
Signal used to update systems.
Connect functions to this signal that need to be called once per tick in the post update phase.
| boost::signal<void ()> makVrv::DtRenderer::signal_releaseResources |
Signal used to update systems.
Connect functions to this signal that need to be called once per tick in the post update phase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |