vhdOpenSGGeometryProperty Class Reference

#include <vhdOpenSGGeometryProperty.h>

Inheritance diagram for vhdOpenSGGeometryProperty:

vhdProperty vhdIOpenSGDrawableProperty List of all members.

Public Member Functions

 vhdOpenSGGeometryProperty (NodePtr 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 ~vhdOpenSGGeometryProperty ()
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 NodePtr 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

vhdOpenSGGeometryProperty::vhdOpenSGGeometryProperty ( NodePtr  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.

vhdOpenSGGeometryProperty::~vhdOpenSGGeometryProperty (  )  [virtual]

Destructor.


Member Function Documentation

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

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

Returns:
fileName.

vhtBool vhdOpenSGGeometryProperty::isVisible (  ) 

Returns true if object is enabled.

Returns:

void vhdOpenSGGeometryProperty::setVisibleFlag ( vhtBool  flagValue  ) 

Sets whether object is enabled.

Parameters:
flagValue 

vhtBool vhdOpenSGGeometryProperty::isStatic ( void   )  [inline]

Tell if the object is static rather than movable.

Returns:
: true if static false if movable.

vhtBool vhdOpenSGGeometryProperty::isMovable ( void   ) 

Tell if the object is movable or rather static.

Returns:
: true if movable false if static.

void vhdOpenSGGeometryProperty::setMovableFlag ( const vhtBool  movable  ) 

void vhdOpenSGGeometryProperty::setScalingFactor ( float  scale  ) 

Sets the scaling factor

float vhdOpenSGGeometryProperty::getScalingFactor ( void   ) 

Gets the scaling factor

vhtBool vhdOpenSGGeometryProperty::isOccluder ( void   ) 

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

Returns:
: true if occluder false if static.

void vhdOpenSGGeometryProperty::setOccluderFlag ( const vhtBool  occluder  ) 

NodePtr vhdOpenSGGeometryProperty::getGeometry (  )  [virtual]

Gets direct access to Geometry encapsulated by this property.

Returns:
pointer to Geometry hierarchy.

Implements vhdIOpenSGDrawableProperty.

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

Sets the position value of the Geometry.

vhdVector3 vhdOpenSGGeometryProperty::getPosition (  )  [virtual]

Gets the position of the Geometry.

Returns:
reference to the position vector.

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

Sets the rotation value of the Geometry.

vhdQuaternion vhdOpenSGGeometryProperty::getOrientation (  )  [virtual]

Gets the rotation of the Geometry.

Returns:
reference to the rotation.

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

Sets the rotation using axis and angle.

Parameters:
rfAngle 
rkAxis 


Member Data Documentation

_Implem* vhdOpenSGGeometryProperty::_implem [private]


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