VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtTriangleRenderer Class Reference

The triangle renderer. More...

Inheritance diagram for makVrv::DtTriangleRenderer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTriangleRenderer (DtOverlayResourceProvider &resourceProvider)
 CTOR.
virtual ~DtTriangleRenderer ()
 Virtual DTOR.
virtual int numberOfPrimitives () const
 Get the number of Primitives.
virtual void render (bool geocentric, float geocentricAlpha, const double location[3], const double positionMatrix[16])
 Render the primitives.
virtual void releaseResources ()
 Release any rendering resources.
virtual bool isRenderModeSupported (int mode)
 Check to see if render mode is supported.
DtTriangleProxyallocateProxy ()
 Create a new Polygon proxy.

Protected Types

enum  Styles { Style_Flat = 0, Style_Stippled, Styles_End }
typedef std::vector
< DtTriangleProxy * > 
TriangleProxyList

Protected Member Functions

void add (DtTriangleProxy *toAdd)
 Add the proxy to the renderer's internal list of proxies.
void remove (const DtTriangleProxy *const proxy, bool isBeingDeleted=false)
 Remove the proxy from the renderer's internal list of proxies.
void dirty (DtTriangleProxy *proxy)
 Flags the proxy as dirty and in need of an update.
void updateRenderData ()
 Updates the proxy's render data for all dirty proxies.

Protected Attributes

DtPrimitiveStylemyStyles [Styles_End]
TriangleProxyList myTriangles
TriangleProxyList myDirtyList

Friends

class DtTriangleProxy

Detailed Description

The triangle renderer.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
Style_Flat 
Style_Stippled 
Styles_End 

Constructor & Destructor Documentation

CTOR.

Virtual DTOR.


Member Function Documentation

virtual int makVrv::DtTriangleRenderer::numberOfPrimitives ( ) const [virtual]

Get the number of Primitives.

Implements makVrv::DtPrimitiveRenderer.

virtual void makVrv::DtTriangleRenderer::render ( bool  geocentric,
float  geocentricAlpha,
const double  location[3],
const double  positionMatrix[16] 
) [virtual]

Render the primitives.

Release any rendering resources.

Implements makVrv::DtPrimitiveRenderer.

Check to see if render mode is supported.

Implements makVrv::DtPrimitiveRenderer.

Create a new Polygon proxy.

void makVrv::DtTriangleRenderer::add ( DtTriangleProxy toAdd) [protected]

Add the proxy to the renderer's internal list of proxies.

void makVrv::DtTriangleRenderer::remove ( const DtTriangleProxy *const  proxy,
bool  isBeingDeleted = false 
) [protected]

Remove the proxy from the renderer's internal list of proxies.

void makVrv::DtTriangleRenderer::dirty ( DtTriangleProxy proxy) [protected]

Flags the proxy as dirty and in need of an update.

Updates the proxy's render data for all dirty proxies.


Friends And Related Function Documentation

friend class DtTriangleProxy [friend]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)