VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgOverlayEllipseArcModelInstance Class Reference

vrvGraphics implementation of a 2D ellipsoid arc More...

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

Public Member Functions

 DtOsgOverlayEllipseArcModelInstance (DtDe &de)
 CTOR.
virtual ~DtOsgOverlayEllipseArcModelInstance ()
 DTOR.
virtual void setModelSet (int modelSet)
 Sets the model set for the overlay.
virtual void setMaxAngleSegment (double angleSegmentMax)
 Set the max angle segment used when building the geometry.
virtual void setGeometry (double angle, double sweep)
 Sets the direction and sweep angles on the geometry.
virtual void setDimensions (float x, float y)
 Set the axis lengths of the ellipsoid.
virtual void dimensions (float &x, float &y)
virtual void setRelativePosition (double x, double y, double z)
 Set the local translation of the ellipsoid.
virtual void setPosition (const DtVector &position)
 Set the global position of the ellipsoid.
DtVector position () const
virtual void setOrientation (const DtTaitBryan &orientation)
 Set the global orientation of the ellipsoid.
virtual void setScale (float scale)
 Set the ellipse's scale.
virtual void setInsideColor (float r, float g, float b, float a)
 Set the color at the center of the ellipse.
virtual void setOutsideColor (float r, float g, float b, float a)
 Set the color on the outside of the ellipse.
virtual void setLockUpdates (bool lock)
 Signals whether dirty flags should be used so updates are only applied on unlock.
virtual void setVisible (bool isVisible)
 Set whether the model is visible.
virtual void setSolidFillCenter (bool)
 Sets to fill the center solid (if filled) not gradiant. Default is false.
virtual void setFill (bool)
 Sets whether or not to fill the ellipse.
virtual void setOutlineWidth (float)
 If not filled, sets the width of the outer circle.
virtual void setEventsEnabled (bool, unsigned long long userData)
 Sets to handle or not handle mouse events.
virtual void setFillPattern (const std::vector< unsigned int > pattern)
 Sets fill pattern (32x32)
virtual void setOutline (bool)
 Sets the fact that, if the object is filled, also provide an outline scribe. Basically create a filled and outline polygon.
virtual void setColor (float r, float g, float b, float a)
 Sets inside and outside color.
virtual void setTexturePath (const std::string &texturePath)
 Set the texture file path for the polygon.
virtual void setOutlineTexture (const std::string &texturePath)
 Sets the texture to use for the outline of the polygon.
virtual void setOutlineTexture (osg::Texture *texture)
 Sets the texture to use for the outline of the polygon.
virtual void setStipplePattern (unsigned int stipplePattern)
 Sets stipple pattern for the polygon.
virtual bool realize (DtModelDefinition &definition)
 Attempt to realize a definition.
- Public Member Functions inherited from makVrv::DtOsgModelInstance
virtual ~DtOsgModelInstance ()
 DTOR.
virtual void addToConnector (DtOsgSceneConnector *connector)
 Brief Tell the model instance to add itself to the provided node.
virtual bool removeFromConnector (DtOsgSceneConnector *connector)
 Brief Tell the model instance to remove itself from the provided node.
virtual bool saveModelToFile (const std::string &filename) const
 Attempt to save the model to a file.
virtual void enableColorBlending (bool b)
 Enable / disable coloring on all models in the scene object.
virtual void setBlendColor (float r, float g, float b, float a)
 set the model's color
virtual void enableTexture (bool onOff)
virtual osg::Node * rootNode ()
 Get the model instance's root node.
virtual const osg::Node * rootNode () const
 Get the model instance's root node.
- Public Member Functions inherited from makVrv::DtModelInstance
 DtModelInstance (DtDe &de)
 CTOR.
virtual ~DtModelInstance ()
 DTOR.
const std::string & realizedDefinitionName () const
 Get the name of the definition that this model instance was realized with.
const DtVectorboundingBoxExtents () const
 Get the bounding box extents of the model instance.
void getBoundingBoxExtents (double &x, double &y, double &z) const
 Get the bounding box extents of the model instance.
const DtVectorboundingBoxCenter () const
 Get the bounding box center of the model instance.
void getBoundingBoxCenter (double &x, double &y, double &z) const
 Get the bounding box center of the model instance.
void getBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
virtual void setContributesToBound (bool trueOrFalse)
 Set whether this model instance contributes to an object's overall bounding volume.
bool contributesToBound () const
 Get whether this model instance contributes to an object's overall bounding volume.

Protected Member Functions

virtual void createPolygonIfNecessary ()
 Create myPolygon according to current state.
virtual void updateVertices ()
 Update the polygon vertex locations.
virtual void channelUpdated (DtTacticalGraphicModelUpdaterManager::ChannelUpdateData)
 Update data with change to zoom or orientation.
virtual void updateColors ()
 Update the vertex colors.
virtual void set3DVertexPosition (unsigned int index, double x, double y, double z)
 Sets a polygon vertex's position.
virtual void set3DCentroidPosition (double x, double y, double z)
 Sets the polygon centroid's position.
virtual void set3DPositionAux (double x, double y, double z, float tempPackedCoords[4])
 Utility function for transforming a vertex and setting it on the polygon.
- Protected Member Functions inherited from makVrv::DtOsgModelInstance
virtual void updateColorBlending ()
 calls update color blending with the model root.
virtual void updateColorBlending (osg::Node *node)
virtual void enableTexture (osg::Node *root, bool onOff)
virtual void updateBoundingBoxViaContents ()
 DtOsgModelInstance (DtDe &de)
 CTOR.
virtual void setRootNode (osg::Node *node)
 Set the model instance's root node.

Protected Attributes

unsigned int myModelSet
DtDcm myOrientationDcm
double myMaxAngleSegment
osg::Vec4 myInnerColor
osg::Vec4 myOuterColor
osg::Vec2 myDimensions
osg::Vec3d myRelativePosition
osg::Vec3d myPosition
float myScale
double myAngle
double mySweep
bool myLockUpdates
bool myDirtyColors
bool myDirtyVertices
bool myPositionSetFlag
bool myFillPolygon
float myWidth
bool myEventsEnabled
unsigned long long myUserData
bool myVisible
bool myOutline
DtPolygonmyPolygon
DtPolygonmyOutlinePolygon
unsigned int myStipplePattern
bool mySolidFillCenter
osg::ref_ptr< osg::Texture > myOutlineTexture
- Protected Attributes inherited from makVrv::DtOsgModelInstance
osg::ref_ptr< osg::Node > myModelRoot
osg::ref_ptr< osg::StateSet > myCachedState
- Protected Attributes inherited from makVrv::DtModelInstance
DtDemyDe
std::string myRealizedModelDefinitionName
DtVector myBoundingBoxCenter
DtVector myBoundingBoxExtents
DtVector myBoundingBoxMinimum
DtVector myBoundingBoxMaximum
bool myContributesToBound
bool myColorBlendingEnabled
float myBlendRed
float myBlendBlue
float myBlendGreen
float myBlendAlpha

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtOsgModelInstance
static osg::Vec4 readVec4 (const std::string &paramName, const DtModelDefinition &definition)
static osg::Vec3 readVec3 (const std::string &paramName, const DtModelDefinition &definition)
- Public Attributes inherited from makVrv::DtModelInstance
boost::signal< void(DtModelInstance *)> signal_modelInstanceChanged

Detailed Description

vrvGraphics implementation of a 2D ellipsoid arc

Constructor & Destructor Documentation

makVrv::DtOsgOverlayEllipseArcModelInstance::DtOsgOverlayEllipseArcModelInstance ( DtDe de)

CTOR.

virtual makVrv::DtOsgOverlayEllipseArcModelInstance::~DtOsgOverlayEllipseArcModelInstance ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setModelSet ( int  modelSet)
virtual

Sets the model set for the overlay.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setMaxAngleSegment ( double  angleSegmentMax)
virtual

Set the max angle segment used when building the geometry.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setGeometry ( double  angle,
double  sweep 
)
virtual

Sets the direction and sweep angles on the geometry.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setDimensions ( float  x,
float  y 
)
virtual

Set the axis lengths of the ellipsoid.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::dimensions ( float &  x,
float &  y 
)
virtual
virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setRelativePosition ( double  x,
double  y,
double  z 
)
virtual

Set the local translation of the ellipsoid.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setPosition ( const DtVector position)
virtual

Set the global position of the ellipsoid.

DtVector makVrv::DtOsgOverlayEllipseArcModelInstance::position ( ) const
virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOrientation ( const DtTaitBryan &  orientation)
virtual

Set the global orientation of the ellipsoid.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setScale ( float  scale)
virtual

Set the ellipse's scale.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setInsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color at the center of the ellipse.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color on the outside of the ellipse.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setLockUpdates ( bool  lock)
virtual

Signals whether dirty flags should be used so updates are only applied on unlock.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setVisible ( bool  isVisible)
virtual

Set whether the model is visible.

Implements makVrv::DtModelInstance.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setSolidFillCenter ( bool  )
virtual

Sets to fill the center solid (if filled) not gradiant. Default is false.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setFill ( bool  )
virtual

Sets whether or not to fill the ellipse.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOutlineWidth ( float  )
virtual

If not filled, sets the width of the outer circle.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setEventsEnabled ( bool  ,
unsigned long long  userData 
)
virtual

Sets to handle or not handle mouse events.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setFillPattern ( const std::vector< unsigned int >  pattern)
virtual

Sets fill pattern (32x32)

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOutline ( bool  )
virtual

Sets the fact that, if the object is filled, also provide an outline scribe. Basically create a filled and outline polygon.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets inside and outside color.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setTexturePath ( const std::string &  texturePath)
virtual

Set the texture file path for the polygon.

The texture will be projected using the x-y coordinates of a topographic frame with the origin at some arbitrary point of the polygon.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOutlineTexture ( const std::string &  texturePath)
virtual

Sets the texture to use for the outline of the polygon.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setOutlineTexture ( osg::Texture *  texture)
virtual

Sets the texture to use for the outline of the polygon.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::setStipplePattern ( unsigned int  stipplePattern)
virtual

Sets stipple pattern for the polygon.

virtual bool makVrv::DtOsgOverlayEllipseArcModelInstance::realize ( DtModelDefinition definition)
virtual

Attempt to realize a definition.

If the model instance can't realize the definition it should return false.

Reimplemented from makVrv::DtModelInstance.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::createPolygonIfNecessary ( )
protectedvirtual

Create myPolygon according to current state.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::updateVertices ( )
protectedvirtual

Update the polygon vertex locations.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::channelUpdated ( DtTacticalGraphicModelUpdaterManager::ChannelUpdateData  )
protectedvirtual

Update data with change to zoom or orientation.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::updateColors ( )
protectedvirtual

Update the vertex colors.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::set3DVertexPosition ( unsigned int  index,
double  x,
double  y,
double  z 
)
protectedvirtual

Sets a polygon vertex's position.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::set3DCentroidPosition ( double  x,
double  y,
double  z 
)
protectedvirtual

Sets the polygon centroid's position.

virtual void makVrv::DtOsgOverlayEllipseArcModelInstance::set3DPositionAux ( double  x,
double  y,
double  z,
float  tempPackedCoords[4] 
)
protectedvirtual

Utility function for transforming a vertex and setting it on the polygon.

Member Data Documentation

unsigned int makVrv::DtOsgOverlayEllipseArcModelInstance::myModelSet
protected
DtDcm makVrv::DtOsgOverlayEllipseArcModelInstance::myOrientationDcm
protected
double makVrv::DtOsgOverlayEllipseArcModelInstance::myMaxAngleSegment
protected
osg::Vec4 makVrv::DtOsgOverlayEllipseArcModelInstance::myInnerColor
protected
osg::Vec4 makVrv::DtOsgOverlayEllipseArcModelInstance::myOuterColor
protected
osg::Vec2 makVrv::DtOsgOverlayEllipseArcModelInstance::myDimensions
protected
osg::Vec3d makVrv::DtOsgOverlayEllipseArcModelInstance::myRelativePosition
protected
osg::Vec3d makVrv::DtOsgOverlayEllipseArcModelInstance::myPosition
protected
float makVrv::DtOsgOverlayEllipseArcModelInstance::myScale
protected
double makVrv::DtOsgOverlayEllipseArcModelInstance::myAngle
protected
double makVrv::DtOsgOverlayEllipseArcModelInstance::mySweep
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myLockUpdates
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myDirtyColors
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myDirtyVertices
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myPositionSetFlag
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myFillPolygon
protected
float makVrv::DtOsgOverlayEllipseArcModelInstance::myWidth
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myEventsEnabled
protected
unsigned long long makVrv::DtOsgOverlayEllipseArcModelInstance::myUserData
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myVisible
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::myOutline
protected
DtPolygon* makVrv::DtOsgOverlayEllipseArcModelInstance::myPolygon
protected
DtPolygon* makVrv::DtOsgOverlayEllipseArcModelInstance::myOutlinePolygon
protected
unsigned int makVrv::DtOsgOverlayEllipseArcModelInstance::myStipplePattern
protected
bool makVrv::DtOsgOverlayEllipseArcModelInstance::mySolidFillCenter
protected
osg::ref_ptr<osg::Texture> makVrv::DtOsgOverlayEllipseArcModelInstance::myOutlineTexture
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)