VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtKynapseLinesModel Class Reference

This model draws lines in the scene using data pulled from the kynapse shared buffer. More...

Inheritance diagram for makVrf::DtKynapseLinesModel:
Inheritance graph
[legend]

List of all members.

Classes

struct  DtRegionalGeodeInfo

Public Member Functions

 DtKynapseLinesModel (makVrv::DtDe &de, makVrv::DtUniqueID id)
 The Constructor for a distributed object must take a DtIg and a Unique Id.
virtual ~DtKynapseLinesModel ()
 DTOR.
virtual void init (std::string &str, bool useLocalCoord=false)
 Initialize the shared memory queue.
void update ()
 Update the lines according to the current state of the shared memory buffer.

Protected Member Functions

virtual DtRegionalGeodeInfo findOrCreateRegonalNode (const DtVector &location)
virtual void clearRegionalNodes ()
virtual void drawMemoryBlock (unsigned long entries)

Protected Attributes

makVrv::DtDemyDe
std::list< DtRegionalGeodeInfomyRegionalNodes
osg::ref_ptr< osg::Group > myGroupNode
DtDebugDrawerSharedMemoryManagersharedMemory
std::vector< int > myLastFrameNumber
bool myUseLocalCoord
bool myFirstUpdate

Detailed Description

This model draws lines in the scene using data pulled from the kynapse shared buffer.

Note that this object will draw whatever is in the kynapse shared buffer on the local machine, i.e. there is no synchronization across machines.


Constructor & Destructor Documentation

The Constructor for a distributed object must take a DtIg and a Unique Id.

DTOR.


Member Function Documentation

virtual void makVrf::DtKynapseLinesModel::init ( std::string &  str,
bool  useLocalCoord = false 
) [virtual]

Initialize the shared memory queue.

Parameters:
strThe name of the shared queue
useLocalCoordif set to true, the system shall assume the network data is set to local. Otherwise a netToLocal conversion is done before drawing.

Update the lines according to the current state of the shared memory buffer.

Reimplemented in DtBhaveLinesModel.

virtual DtRegionalGeodeInfo makVrf::DtKynapseLinesModel::findOrCreateRegonalNode ( const DtVector location) [protected, virtual]

Reimplemented in DtBhaveLinesModel.

virtual void makVrf::DtKynapseLinesModel::clearRegionalNodes ( ) [protected, virtual]

Reimplemented in DtBhaveLinesModel.

virtual void makVrf::DtKynapseLinesModel::drawMemoryBlock ( unsigned long  entries) [protected, virtual]

Member Data Documentation

osg::ref_ptr<osg::Group> makVrf::DtKynapseLinesModel::myGroupNode [protected]
std::vector<int> makVrf::DtKynapseLinesModel::myLastFrameNumber [protected]

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)