![]() |
VR-Forces 4.10 Class Documentation
|
The DtOverlayRenderer implements the overlay concept. More...
Classes | |
| struct | RenderInfo |
Public Member Functions | |
| DtOverlayRenderer (DtOverlayResourceProvider &provider) | |
| ~DtOverlayRenderer () | |
| bool | render (bool geocentric, float geocentricAlpha, const double location[3], const double worldToWindow[16], const double projectionMatrix[16], double viewport[4]) |
| Render the overlay. More... | |
| void | releaseResources () |
| Release any rendering resources. More... | |
| void | setProjectCameraIs3D (bool is3D) |
| bool | projectCameraIs3D () const |
| void | setProjectCameraIsNormalized (bool isNormalize) |
| bool | projectCameraIsNormalized () const |
| DtOverlayResourceProvider & | resourceProvider () |
| DtLineRenderer & | lineRenderer () const |
| DtQuadRenderer & | quadRenderer () const |
| DtTriangleRenderer & | triangleRenderer () const |
| DtTextRenderer & | textRenderer () const |
Static Protected Member Functions | |
| static void | fillInNormalizedProjectionMatrix (const double viewport[4], double mat[16]) |
| The projection matrix that needs to be given to to the line, quad and triangle renderers is different from the camera projection matrix when normalized coordinates are used; it incorporates the viewport information. More... | |
| static void | fillInTextProjectionMatrix (const double viewport[4], double mat[16]) |
| The projection matrix that needs to be given to the text renderer is different then the camera projection matrix. More... | |
The DtOverlayRenderer implements the overlay concept.
An overlay is a 2D scene that is drawn on top of a 3D scene. The 2D scene can contain any number of the 2D primitives which include: DtLineSegment, DtQuad, DtFilledPolygon and DtOutlinedPolygon. The DtOverlayRendered does the actual drawing of the graphical primitives.
| makVrv::DtOverlayRenderer::DtOverlayRenderer | ( | DtOverlayResourceProvider & | provider | ) |
| makVrv::DtOverlayRenderer::~DtOverlayRenderer | ( | ) |
| bool makVrv::DtOverlayRenderer::render | ( | bool | geocentric, |
| float | geocentricAlpha, | ||
| const double | location[3], | ||
| const double | worldToWindow[16], | ||
| const double | projectionMatrix[16], | ||
| double | viewport[4] | ||
| ) |
Render the overlay.
Returns false IFF no objects were rendered
| void makVrv::DtOverlayRenderer::releaseResources | ( | ) |
Release any rendering resources.
| void makVrv::DtOverlayRenderer::setProjectCameraIs3D | ( | bool | is3D | ) |
| bool makVrv::DtOverlayRenderer::projectCameraIs3D | ( | ) | const |
| void makVrv::DtOverlayRenderer::setProjectCameraIsNormalized | ( | bool | isNormalize | ) |
| bool makVrv::DtOverlayRenderer::projectCameraIsNormalized | ( | ) | const |
| DtOverlayResourceProvider& makVrv::DtOverlayRenderer::resourceProvider | ( | ) |
| DtLineRenderer& makVrv::DtOverlayRenderer::lineRenderer | ( | ) | const |
| DtQuadRenderer& makVrv::DtOverlayRenderer::quadRenderer | ( | ) | const |
| DtTriangleRenderer& makVrv::DtOverlayRenderer::triangleRenderer | ( | ) | const |
| DtTextRenderer& makVrv::DtOverlayRenderer::textRenderer | ( | ) | const |
|
staticprotected |
The projection matrix that needs to be given to to the line, quad and triangle renderers is different from the camera projection matrix when normalized coordinates are used; it incorporates the viewport information.
This will fill in that as an array of 16 doubles that the caller mus provide.
|
staticprotected |
The projection matrix that needs to be given to the text renderer is different then the camera projection matrix.
It is the same regardless of camera type. You must pass in an array of 16 doubles.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |