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

OSG implementation of 3D Extruded line. More...

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

List of all members.

Public Member Functions

 DtOsgExtrudedLineModel (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtOsgExtrudedLineModel ()
 DTOR.
virtual void removePosition (int index)
 Calls removePoint.
virtual void setPosition (int index, const DtVector &position)
 Sets the origin if index is 0, else no-op.
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 Sets the orientation of the line.
virtual void setStipplePattern (unsigned int stipple, int repeatFactor)
 Parameters for line stippling.
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the line.
virtual void setWidth (float width)
 Sets the width of the line.
virtual void setSolid (bool solid)
 Sets shape solid or outlined only.
virtual void setPickable (bool)
 Sets whether or not line is pickable.
virtual void setStopOnTerrainIntersection (bool enabled)
 Set whether or not the line stops at the first terrain intersection Not implemented.
virtual void setOcclusionEnabled (bool enabled)
 Turn on or off occlusion of the line by other objects; default is true.
virtual void setVisible (bool)
 Sets model shown/hidden.
virtual void setUpExtent (float)
 Sets the height of the line ("above" the origin point)
virtual void setDownExtent (float)
 Sets the height of the line ("below" the origin point)
virtual void setLeftExtent (float)
 Sets the width of the line ("left" the origin point). If width is set, this will be set to - half width.
virtual void setRightExtent (float)
 Sets the width of the line ("right" the origin point). If width is set, this will be set to + half width.
virtual void setHeight (float)
 Sets the height of the line (-half height to + half height around center).
virtual void setDimensions (float width, float height)
 Sets the dimensions of the line.
virtual void setLineWidth (float width)
 Sets the width of the line in pixel space, not world.
virtual void setScribed (bool b)
 Sets the line to be scribed (default true)
virtual void setScribeColor (float r, float g, float b, float a)
 Sets the color of the scribe line.
virtual void setScribeOccluded (bool b)
 Sets the scribed line to be occluded by the terrain (default true)

Protected Member Functions

virtual void update ()
 Called when its time to update the model.
virtual void needsUpdate ()
 Called by all mutators to set up a postUpdate signal if not already connected.
virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 Attaches the model to the scene.
virtual void removeFromScene ()
 Detaches the model from the scene.
virtual void setModelDefinition (const std::string &str)
 Sets the model definition on the model instance.

Protected Attributes

DtOsgSceneConnectormySceneConnector
DtUniqueID myParentId
DtVector myOrigin
bool myConnectedToPostUpdate

Detailed Description

OSG implementation of 3D Extruded line.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtOsgExtrudedLineModel::removePosition ( int  index) [virtual]

Calls removePoint.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setPosition ( int  index,
const DtVector position 
) [virtual]

Sets the origin if index is 0, else no-op.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setOrientation ( int  vtx,
const DtTaitBryan &  orientation 
) [virtual]

Sets the orientation of the line.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setStipplePattern ( unsigned int  stipple,
int  repeatFactor 
) [virtual]

Parameters for line stippling.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color of the line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setWidth ( float  width) [virtual]

Sets the width of the line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setSolid ( bool  solid) [virtual]

Sets shape solid or outlined only.

If outlined only, and not scribed, will scribe the line with color of alpha

Implements makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setPickable ( bool  ) [virtual]

Sets whether or not line is pickable.

Implements makVrv::Dt3DLineModel.

Set whether or not the line stops at the first terrain intersection Not implemented.

Implements makVrv::Dt3DLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setOcclusionEnabled ( bool  enabled) [virtual]

Turn on or off occlusion of the line by other objects; default is true.

Implements makVrv::Dt3DLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setVisible ( bool  ) [virtual]

Sets model shown/hidden.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setUpExtent ( float  ) [virtual]

Sets the height of the line ("above" the origin point)

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setDownExtent ( float  ) [virtual]

Sets the height of the line ("below" the origin point)

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setLeftExtent ( float  ) [virtual]

Sets the width of the line ("left" the origin point). If width is set, this will be set to - half width.

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setRightExtent ( float  ) [virtual]

Sets the width of the line ("right" the origin point). If width is set, this will be set to + half width.

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setHeight ( float  ) [virtual]

Sets the height of the line (-half height to + half height around center).

If width is set, will 0 out width or for the entire line

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setDimensions ( float  width,
float  height 
) [virtual]

Sets the dimensions of the line.

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setLineWidth ( float  width) [virtual]

Sets the width of the line in pixel space, not world.

Clears out any existing dimensional size

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setScribed ( bool  b) [virtual]

Sets the line to be scribed (default true)

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::setScribeColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color of the scribe line.

Once set it will always be different than the color of the main polygon

Implements makVrv::DtExtrudedLineModel.

Sets the scribed line to be occluded by the terrain (default true)

Implements makVrv::DtExtrudedLineModel.

virtual void makVrv::DtOsgExtrudedLineModel::addToScene ( const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
) [protected, virtual]

Attaches the model to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::removeFromScene ( ) [protected, virtual]

Detaches the model from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::setModelDefinition ( const std::string &  str) [protected, virtual]

Sets the model definition on the model instance.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgExtrudedLineModel::update ( ) [protected, virtual]

Called when its time to update the model.

virtual void makVrv::DtOsgExtrudedLineModel::needsUpdate ( ) [protected, virtual]

Called by all mutators to set up a postUpdate signal if not already connected.


Member Data Documentation


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)