![]() |
VR-Forces 4.0.4 Class Documentation
|
A class responsible for rendering lines. More...

Classes | |
| struct | LineSegmentPrimitive |
| struct | LineSegmentSets |
Public Member Functions | |
| DtLineRenderer (DtOverlayResourceProvider &provider) | |
| virtual | ~DtLineRenderer () |
| virtual int | numberOfPrimitives () const |
| Get the number of Primitives. | |
| virtual void | render (bool geocentric, float geocentricAlpha, const double cameraLocation[3], const double positionMatrix[16], bool picking) |
| Render the primitives. | |
| virtual void | releaseResources () |
| Release any rendering resources. | |
| virtual bool | isRenderModeSupported (int mode) |
| Check to see if render mode is supported. | |
| DtLineSegmentProxy * | allocateNewSegment () |
| Allocate a new segment and a proxy object to control it. | |
Static Public Attributes | |
| static const unsigned short | NoStipple = 0xFFFF |
| static const unsigned short | NoLine = 0x0 |
Protected Member Functions | |
| void | dirty (DtLineSegmentProxy *) |
| void | deallocateProxy (const DtLineSegmentProxy &) |
| int | moveSegmentToOtherList (const float currentWidth, const int currentSegmentIndex, const int currentPrimativeIndex, const float desiredWidth, const int desiredSegmentIndex) |
Private Types | |
| typedef std::vector < LineSegmentPrimitive > | LineSegments |
| typedef std::vector < DtLineSegmentProxy * > | LineSegmentProxyList |
| typedef boost::unordered_map < float, LineSegmentSets > | LineMap |
Private Member Functions | |
| void | renderUsingVertexArrays (DtFlat2DLineRenderer &renderer) |
| void | renderStippledLineArrays (DtFlat2DLineRenderer &renderer, DtLineVertex *ptr, LineSegments &segments) |
| void | updateRenderData () |
| void | sortByStipple () |
Private Attributes | |
| LineMap | myLines |
| DtProjected2DLineEffect * | myEffect |
| LineSegmentProxyList | myDirtyList |
| DtBufferObject * | myBufferObject |
| unsigned int | myPrimativeCount |
Friends | |
| class | DtLineSegmentProxy |
A class responsible for rendering lines.
typedef std::vector<LineSegmentPrimitive> makVrv::DtLineRenderer::LineSegments [private] |
typedef std::vector<DtLineSegmentProxy*> makVrv::DtLineRenderer::LineSegmentProxyList [private] |
typedef boost::unordered_map<float,LineSegmentSets> makVrv::DtLineRenderer::LineMap [private] |
| virtual makVrv::DtLineRenderer::~DtLineRenderer | ( | ) | [virtual] |
| virtual int makVrv::DtLineRenderer::numberOfPrimitives | ( | ) | const [virtual] |
Get the number of Primitives.
Implements makVrv::DtPrimitiveRenderer.
| virtual void makVrv::DtLineRenderer::render | ( | bool | geocentric, |
| float | geocentricAlpha, | ||
| const double | cameraLocation[3], | ||
| const double | positionMatrix[16], | ||
| bool | picking | ||
| ) | [virtual] |
Render the primitives.
| virtual void makVrv::DtLineRenderer::releaseResources | ( | ) | [virtual] |
Release any rendering resources.
Implements makVrv::DtPrimitiveRenderer.
| virtual bool makVrv::DtLineRenderer::isRenderModeSupported | ( | int | mode | ) | [virtual] |
Check to see if render mode is supported.
Implements makVrv::DtPrimitiveRenderer.
Allocate a new segment and a proxy object to control it.
| void makVrv::DtLineRenderer::dirty | ( | DtLineSegmentProxy * | ) | [protected] |
| void makVrv::DtLineRenderer::deallocateProxy | ( | const DtLineSegmentProxy & | ) | [protected] |
| int makVrv::DtLineRenderer::moveSegmentToOtherList | ( | const float | currentWidth, |
| const int | currentSegmentIndex, | ||
| const int | currentPrimativeIndex, | ||
| const float | desiredWidth, | ||
| const int | desiredSegmentIndex | ||
| ) | [protected] |
| void makVrv::DtLineRenderer::renderUsingVertexArrays | ( | DtFlat2DLineRenderer & | renderer | ) | [private] |
| void makVrv::DtLineRenderer::renderStippledLineArrays | ( | DtFlat2DLineRenderer & | renderer, |
| DtLineVertex * | ptr, | ||
| LineSegments & | segments | ||
| ) | [private] |
| void makVrv::DtLineRenderer::updateRenderData | ( | ) | [private] |
| void makVrv::DtLineRenderer::sortByStipple | ( | ) | [private] |
friend class DtLineSegmentProxy [friend] |
const unsigned short makVrv::DtLineRenderer::NoStipple = 0xFFFF [static] |
const unsigned short makVrv::DtLineRenderer::NoLine = 0x0 [static] |
LineMap makVrv::DtLineRenderer::myLines [private] |
unsigned int makVrv::DtLineRenderer::myPrimativeCount [private] |