VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtProjectedTextModelInstance Class Reference

OSG-specific instance of an attachable, projected text model (as used for HAT lines) More...

Inheritance diagram for makVrv::DtProjectedTextModelInstance:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtProjectedTextModelInstance (DtDe &de, const std::string &uniqueName)
 CTOR.
 ~DtProjectedTextModelInstance ()
 DTOR.
virtual void addToConnector (DtOsgSceneConnector *connector)
 Implementation of model instance function Add the draw model instance to a node in the scene graph.
virtual bool removeFromConnector (DtOsgSceneConnector *connector)
 Implementation of model instance function Remove the draw model instance from a node in the scene graph.
virtual void setColor (const osg::Vec4 &color)
virtual void setFontName (const std::string &fontName)
virtual void setFontSize (double size)
virtual void setText (const std::string &text)
virtual void setPosition (int vtx, const DtVector &position)
virtual void setVisible (bool visible)
 no-op

Protected Member Functions

DtChannelfindChannelWithLocation (const osg::Vec3d &location) const
bool locationInChannel (DtChannel *channel, const osg::Vec3d &location) const
void getChannelDimensions (DtChannel *channel, double &startX, double &startY, double &endX, double &endY) const

Protected Attributes

osg::ref_ptr< osgText::Text > myTextDrawable
osg::ref_ptr< osg::Geode > myTextGeode
std::string myFontName
osg::Vec4 myColor
double mySize
std::string myUniqueName

Detailed Description

OSG-specific instance of an attachable, projected text model (as used for HAT lines)


Constructor & Destructor Documentation

makVrv::DtProjectedTextModelInstance::DtProjectedTextModelInstance ( DtDe de,
const std::string &  uniqueName 
)

CTOR.

DTOR.


Member Function Documentation

Implementation of model instance function Add the draw model instance to a node in the scene graph.

Reimplemented from makVrv::DtOsgModelInstance.

Implementation of model instance function Remove the draw model instance from a node in the scene graph.

Reimplemented from makVrv::DtOsgModelInstance.

virtual void makVrv::DtProjectedTextModelInstance::setColor ( const osg::Vec4 &  color) [virtual]
virtual void makVrv::DtProjectedTextModelInstance::setFontName ( const std::string &  fontName) [virtual]
virtual void makVrv::DtProjectedTextModelInstance::setFontSize ( double  size) [virtual]
virtual void makVrv::DtProjectedTextModelInstance::setText ( const std::string &  text) [virtual]
virtual void makVrv::DtProjectedTextModelInstance::setPosition ( int  vtx,
const DtVector position 
) [virtual]
virtual void makVrv::DtProjectedTextModelInstance::setVisible ( bool  visible) [inline, virtual]

no-op

Implements makVrv::DtModelInstance.

DtChannel* makVrv::DtProjectedTextModelInstance::findChannelWithLocation ( const osg::Vec3d &  location) const [protected]
bool makVrv::DtProjectedTextModelInstance::locationInChannel ( DtChannel channel,
const osg::Vec3d &  location 
) const [protected]
void makVrv::DtProjectedTextModelInstance::getChannelDimensions ( DtChannel channel,
double &  startX,
double &  startY,
double &  endX,
double &  endY 
) const [protected]

Member Data Documentation

osg::ref_ptr<osgText::Text> makVrv::DtProjectedTextModelInstance::myTextDrawable [protected]
osg::ref_ptr<osg::Geode> makVrv::DtProjectedTextModelInstance::myTextGeode [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)