vhdOSGGeometryProperty Class Reference

#include <vhdOSGGeometryProperty.h>

Inheritance diagram for vhdOSGGeometryProperty:

vhdProperty vhdIOSGDrawableProperty List of all members.

Public Member Functions

 vhdOSGGeometryProperty (osgGroupRef geometry, const std::string &fileName, const vhdVector3 &initialPosition, const vhdQuaternion &initialOrientation, vhtBool visibleFlag=true, vhtBool movableFlag=false, float scalingFactor=1.0, vhtBool occluderFlag=false)
virtual ~vhdOSGGeometryProperty ()
const std::string & getFileName ()
vhtBool isVisible ()
void setVisibleFlag (vhtBool flagValue)
vhtBool isStatic (void)
vhtBool isMovable (void)
void setMovableFlag (const vhtBool movable)
void setScalingFactor (float scale)
float getScalingFactor (void)
vhtBool isOccluder (void)
void setOccluderFlag (const vhtBool occluder)
virtual osgGroupRef getGeometry ()
virtual void setPosition (const vhdVector3 &position)
virtual vhdVector3 getPosition ()
virtual void setOrientation (const vhdQuaternion &orientation)
virtual vhdQuaternion getOrientation ()
void setRotationByAxisAngle (const float &pAngle, const vhdVector3 &pAxis)

Private Attributes

_Implem_implem

Classes

class  _Implem

Detailed Description

Examples:

vhdOSGGeometryProperty.


Constructor & Destructor Documentation

vhdOSGGeometryProperty::vhdOSGGeometryProperty ( osgGroupRef  geometry,
const std::string &  fileName,
const vhdVector3 initialPosition,
const vhdQuaternion initialOrientation,
vhtBool  visibleFlag = true,
vhtBool  movableFlag = false,
float  scalingFactor = 1.0,
vhtBool  occluderFlag = false 
)

Constructor. Takes geometry and decorates it with osg::Switch and osg::PositionAttitude nodes.

Parameters:
geometry pointer to OSG hierarchy that will be stored in this property.
fileName that was used to loade and create the geometry (stored for inspection purposes).
movable/static flag. [Default = static object].
Exceptions:
vhdIllegalArgumentException if geometry is NULL.

vhdOSGGeometryProperty::~vhdOSGGeometryProperty (  )  [virtual]

Destructor.


Member Function Documentation

const std::string & vhdOSGGeometryProperty::getFileName (  ) 

Gets the filename that was used to create the geometry sotred in this property.

Returns:
fileName.

vhtBool vhdOSGGeometryProperty::isVisible (  ) 

Returns true if object is enabled.

Returns:

void vhdOSGGeometryProperty::setVisibleFlag ( vhtBool  flagValue  ) 

Sets whether object is enabled.

Parameters:
flagValue 

vhtBool vhdOSGGeometryProperty::isStatic ( void   )  [inline]

Tell if the object is static rather than movable.

Returns:
: true if static false if movable.

vhtBool vhdOSGGeometryProperty::isMovable ( void   ) 

Tell if the object is movable or rather static.

Returns:
: true if movable false if static.

void vhdOSGGeometryProperty::setMovableFlag ( const vhtBool  movable  ) 

void vhdOSGGeometryProperty::setScalingFactor ( float  scale  ) 

Sets the scaling factor

float vhdOSGGeometryProperty::getScalingFactor ( void   ) 

Gets the scaling factor

vhtBool vhdOSGGeometryProperty::isOccluder ( void   ) 

Tell if the object is occluder(blue box phantom geometry) or normal.

Returns:
: true if occluder false if static.

void vhdOSGGeometryProperty::setOccluderFlag ( const vhtBool  occluder  ) 

osgGroupRef vhdOSGGeometryProperty::getGeometry (  )  [virtual]

Gets direct access to Geometry encapsulated by this property.

Returns:
pointer to Geometry hierarchy.

Implements vhdIOSGDrawableProperty.

void vhdOSGGeometryProperty::setPosition ( const vhdVector3 position  )  [virtual]

Sets the position value of the Geometry.

vhdVector3 vhdOSGGeometryProperty::getPosition (  )  [virtual]

Gets the position of the Geometry.

Returns:
reference to the position vector.

void vhdOSGGeometryProperty::setOrientation ( const vhdQuaternion orientation  )  [virtual]

Sets the rotation value of the Geometry.

vhdQuaternion vhdOSGGeometryProperty::getOrientation (  )  [virtual]

Gets the rotation of the Geometry.

Returns:
reference to the rotation.

void vhdOSGGeometryProperty::setRotationByAxisAngle ( const float &  pAngle,
const vhdVector3 pAxis 
)

Sets the rotation using axis and angle.

Parameters:
rfAngle 
rkAxis 


Member Data Documentation

_Implem* vhdOSGGeometryProperty::_implem [private]


Generated on Thu Jan 18 10:06:25 2007 for vhdPLUS by  doxygen 1.5.1-p1