![]() |
VR-Forces 5.0.3 Developer's Guide
|
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 DtOverlayRenderer does the actual drawing of the graphical primitives.
Classes | |
| struct | RenderInfo |
Public Member Functions | |
| DtOverlayRenderer (DtOverlayResourceProvider &provider) | |
| virtual | ~DtOverlayRenderer () |
| DtOverlayRenderer ()=delete | |
| DtOverlayRenderer (const DtOverlayRenderer &other)=delete | |
| DtOverlayRenderer & | operator= (const DtOverlayRenderer &other)=delete |
| virtual bool | render (bool geocentric, float geocentricAlpha, const double location[3], double altitude, const double worldToWindow[16], const double projectionMatrix[16], double viewport[4]) |
| virtual void | releaseResources () |
| virtual void | setProjectCameraIs3D (bool is3D) |
| virtual bool | projectCameraIs3D () const |
| virtual void | setProjectCameraIsNormalized (bool isNormalize) |
| virtual bool | projectCameraIsNormalized () const |
| virtual DtOverlayResourceProvider & | resourceProvider () |
| virtual DtLineRenderer & | lineRenderer () const |
| virtual DtQuadRenderer & | quadRenderer () const |
| virtual DtTriangleRenderer & | triangleRenderer () const |
| virtual DtTextRenderer & | textRenderer () const |
| virtual bool | somethingToRender () const |
Protected Member Functions | |
| DtOverlayRenderer (DtDe &de, DtOverlayResourceProvider &provider) | |
Static Protected Member Functions | |
| static void | fillInNormalizedProjectionMatrix (const double viewport[4], double mat[16]) |
| static void | fillInTextProjectionMatrix (const double viewport[4], double mat[16]) |
Private Attributes | |
| friend | DtOverlayRendererCreator |
| makVrv::DtOverlayRenderer::DtOverlayRenderer | ( | DtOverlayResourceProvider & | provider | ) |
constructor
|
virtual |
Virtual DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
protected |
CTOR.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Render the overlay.
Returns false IFF no objects were rendered
|
virtual |
Release any rendering resources.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
whether there is something to render (lines or quads or triangles or text)
|
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.
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |