VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Attributes
makVrf::DtDebugDrawerLinesModel Class Reference

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

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

 DtDebugDrawerLinesModel (makVrv::DtDe &de, makVrv::DtUniqueID id, double distanceThreshold=500000)
 CTOR.
virtual ~DtDebugDrawerLinesModel ()
 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::DtDemyDe
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::DtDebugDrawerLinesModel::TagSet

Constructor & Destructor Documentation

makVrf::DtDebugDrawerLinesModel::DtDebugDrawerLinesModel ( 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::DtDebugDrawerLinesModel::~DtDebugDrawerLinesModel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtDebugDrawerLinesModel::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::DtDebugDrawerLinesModel::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.

virtual void makVrf::DtDebugDrawerLinesModel::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::DtDebugDrawerLinesModel::bufferNames ( )
virtual

Information about current buffers.

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

Set whether a given buffer is drawn.

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

Transform vector in local coordinates according to useLocalCoord init parameter.

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

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

virtual double makVrf::DtDebugDrawerLinesModel::distanceThresholdSquared ( )
virtual

Regional node lookup distance threshold squared.

DtDebugDrawerSharedMemoryManager& makVrf::DtDebugDrawerLinesModel::memory ( )

Lazy create shared memory.

Member Data Documentation

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

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)