VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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::map< DtString, 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

makVrf::DtKynapseLinesModel::DtKynapseLinesModel ( makVrv::DtDe de,
makVrv::DtUniqueID  id 
)

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

virtual makVrf::DtKynapseLinesModel::~DtKynapseLinesModel ( )
virtual

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.
void makVrf::DtKynapseLinesModel::update ( )

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

Reimplemented in DtBhaveLinesModel.

virtual DtRegionalGeodeInfo makVrf::DtKynapseLinesModel::findOrCreateRegonalNode ( const DtVector location)
protectedvirtual

Reimplemented in DtBhaveLinesModel.

virtual void makVrf::DtKynapseLinesModel::clearRegionalNodes ( )
protectedvirtual

Reimplemented in DtBhaveLinesModel.

virtual void makVrf::DtKynapseLinesModel::drawMemoryBlock ( unsigned long  entries)
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtKynapseLinesModel::myDe
protected
std::list<DtRegionalGeodeInfo> makVrf::DtKynapseLinesModel::myRegionalNodes
protected
osg::ref_ptr<osg::Group> makVrf::DtKynapseLinesModel::myGroupNode
protected
DtDebugDrawerSharedMemoryManager* makVrf::DtKynapseLinesModel::sharedMemory
protected
std::map<DtString, int> makVrf::DtKynapseLinesModel::myLastFrameNumber
protected
bool makVrf::DtKynapseLinesModel::myUseLocalCoord
protected
bool makVrf::DtKynapseLinesModel::myFirstUpdate
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)