Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

osgSensor::SensorLink Class Reference

Class to build up a hierarchy of transformations for movement of objects/camera. More...

#include <SensorLink.h>

List of all members.

Public Member Functions

 SensorLink (OsgSensor *sensor)
 SensorLink ()
void sensor (OsgSensor *sensor)
OsgSensorsensor ()
void setPropagate (OsgSensor::EnableFlag flag)
osg::Matrix getMatrix ()
void addDependent (SensorLink *)
 Add a dependent sensorlink.
bool removeDependent (SensorLink *)
 Remove a given SensorLink.
void update ()
virtual bool handle (int key)
void setEnable (bool flag)
bool getEnable () const


Detailed Description

Class to build up a hierarchy of transformations for movement of objects/camera.


Constructor & Destructor Documentation

osgSensor::SensorLink::SensorLink OsgSensor sensor  ) 
 

Constructor

Parameters:
OsgSensor *sensor - pointer to a sensor that contains the active matrix

osgSensor::SensorLink::SensorLink  ) 
 

Constructor

Parameters:
OsgSensor *sensor - pointer to a sensor that contains the active matrix


Member Function Documentation

bool osgSensor::SensorLink::getEnable  )  const [inline]
 

Return true the SensorLink is enabled

osg::Matrix osgSensor::SensorLink::getMatrix  ) 
 

Calculates the active matrix: the matrix from the sensor concatenated with dependents matrices if any.

Returns:
the active matrix

virtual bool osgSensor::SensorLink::handle int  key  )  [virtual]
 

Take care of a keyboard event

Parameters:
key - Pressed key
Returns:
true if key is handled otherwise false

OsgSensor* osgSensor::SensorLink::sensor  )  [inline]
 

Get the sensor of this link

Returns:
OsgSensor *sensor - pointer to the sensor of this link

void osgSensor::SensorLink::sensor OsgSensor sensor  )  [inline]
 

Set the sensor of this link

Parameters:
OsgSensor *sensor - pointer to a sensor that contains the active matrix

void osgSensor::SensorLink::setEnable bool  flag  )  [inline]
 

Enable/disables the sensor link If disabled, this SensorLink will not be updated with the current value of the sensor

void osgSensor::SensorLink::setPropagate OsgSensor::EnableFlag  flag  ) 
 

Parameters:
EnableFlag flag - Specifies what this manipulator will propagate to its dependencies Ex: if flag == EnablePosition then only position will be propagated from this manipulator

void osgSensor::SensorLink::update  )  [inline]
 

Update the internal state of the SensorLink, i.e. it really just calls the getMatrix method


The documentation for this class was generated from the following file:
Generated on Wed May 10 16:29:46 2006 for osgHaptics by  doxygen 1.4.4