VR-Forces 4.2 Class Documentation
List of all members | Classes | Public Types | Public 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

class  Buffer
 Contains all the regional nodes for a single memory block so each can be redraw independantly. More...
struct  BufferInfo
class  DtRegionalGeodeInfo
 Regional nodes are a simple way to spatially index the geometries into separate osg nodes so they can be effectively culled. More...

Public Types

typedef std::vector< BufferInfoBufferVector
typedef std::map< long, BufferBufferMap
typedef std::map< std::string,
bool
TagSet

Public Member Functions

 DtKynapseLinesModel (makVrv::DtDe &de, makVrv::DtUniqueID id, double distanceThreshold=500000)
 CTOR.
virtual ~DtKynapseLinesModel ()
 DTOR.
virtual void init (std::string &str, bool useLocalCoord=false)
 Initialize.
virtual void update ()
 Update the lines according to the current state of the shared memory buffer.
virtual void updateAll ()
 Update the lines according to the current state of the shared memory buffer.
virtual BufferVector bufferNames ()
 Information about current buffers.
virtual void drawBufferWithName (std::string tag, bool draw)
 Set whether a given buffer is drawn.
virtual void transformToLocal (DtVector &)
 Transform vector in local coordinates according to useLocalCoord init parameter.
virtual osg::Group * parentNode ()
 Group node representing the parent of the entire lines model geometry.
virtual double distanceThresholdSquared ()
 Regional node lookup distance threshold squared.
DtDebugDrawerSharedMemoryManagermemory ()
 Lazy create shared memory.

Protected Attributes

makVrv::DtDe & myDe
osg::ref_ptr< osg::Group > myGroupNode
BufferMap myBufferMap
TagSet myDrawingTags
boost::scoped_ptr
< DtDebugDrawerSharedMemoryManager
sharedMemory
bool myUseLocalCoord
double myDistanceThresholdSquared
DtDebugDrawerNameManager::MemoryType myType

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.

Member Typedef Documentation

typedef std::map<std::string, bool> makVrf::DtKynapseLinesModel::TagSet

Constructor & Destructor Documentation

makVrf::DtKynapseLinesModel::DtKynapseLinesModel ( makVrv::DtDe &  de,
makVrv::DtUniqueID  id,
double  distanceThreshold = 500000 
)

CTOR.

Parameters
deVR-Vantage display engine.
doubleBufferWhether to create new osg::Group objects or maniuplate previous ones.
distanceThresholdDistance threshold for looking up regional nodes.
virtual makVrf::DtKynapseLinesModel::~DtKynapseLinesModel ( )
virtual

DTOR.

Member Function Documentation

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

Initialize.

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

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

Only update buffers which are present in internal buffer map.

Reimplemented in DtBhaveLinesModel.

virtual void makVrf::DtKynapseLinesModel::updateAll ( )
virtual

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

Update all buffers, adding them all the internal buffer map

virtual BufferVector makVrf::DtKynapseLinesModel::bufferNames ( )
virtual

Information about current buffers.

virtual void makVrf::DtKynapseLinesModel::drawBufferWithName ( std::string  tag,
bool  draw 
)
virtual

Set whether a given buffer is drawn.

virtual void makVrf::DtKynapseLinesModel::transformToLocal ( DtVector )
virtual

Transform vector in local coordinates according to useLocalCoord init parameter.

virtual osg::Group* makVrf::DtKynapseLinesModel::parentNode ( )
virtual

Group node representing the parent of the entire lines model geometry.

virtual double makVrf::DtKynapseLinesModel::distanceThresholdSquared ( )
virtual

Regional node lookup distance threshold squared.

DtDebugDrawerSharedMemoryManager& makVrf::DtKynapseLinesModel::memory ( )

Lazy create shared memory.

Member Data Documentation

makVrv::DtDe& makVrf::DtKynapseLinesModel::myDe
protected
osg::ref_ptr<osg::Group> makVrf::DtKynapseLinesModel::myGroupNode
protected
BufferMap makVrf::DtKynapseLinesModel::myBufferMap
protected
TagSet makVrf::DtKynapseLinesModel::myDrawingTags
protected
boost::scoped_ptr<DtDebugDrawerSharedMemoryManager> makVrf::DtKynapseLinesModel::sharedMemory
protected
bool makVrf::DtKynapseLinesModel::myUseLocalCoord
protected
double makVrf::DtKynapseLinesModel::myDistanceThresholdSquared
protected
DtDebugDrawerNameManager::MemoryType makVrf::DtKynapseLinesModel::myType
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)