#include <Sensor.h>
Inheritance diagram for opal::Sensor:
Public Member Functions | |
Sensor () | |
virtual void OPAL_CALL | setEnabled (bool e)=0 |
virtual bool OPAL_CALL | isEnabled () const =0 |
virtual void OPAL_CALL | setUserData (void *data) |
virtual void *OPAL_CALL | getUserData () |
virtual SensorType OPAL_CALL | getType () const =0 |
virtual void OPAL_CALL | setTransform (const Matrix44r &t)=0 |
virtual const Matrix44r &OPAL_CALL | getTransform () const =0 |
virtual void OPAL_CALL | setName (const std::string &name)=0 |
virtual const std::string &OPAL_CALL | getName () const =0 |
virtual void OPAL_CALL | internal_update ()=0 |
virtual bool OPAL_CALL | internal_dependsOnSolid (Solid *s) |
virtual void OPAL_CALL | internal_destroy () |
Protected Member Functions | |
virtual | ~Sensor () |
void | init () |
Protected Attributes | |
void * | mUserData |
bool | mInitCalled |
Definition at line 42 of file Sensor.h.
|
Definition at line 32 of file Sensor.cpp. References mInitCalled, and setUserData(). |
|
Definition at line 38 of file Sensor.cpp. |
|
Returns the Sensor's name.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. Referenced by opal::BlueprintInstance::internal_addSensor(). |
|
Returns the Sensor's transform.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Returns the Sensor type.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Returns the user data pointer (NULL if it has not been set).
Definition at line 57 of file Sensor.cpp. References mUserData. |
|
Called by subclasses when they are initialized.
Definition at line 47 of file Sensor.cpp. References mInitCalled. Referenced by opal::VolumeSensor::init(), opal::RaycastSensor::init(), opal::InclineSensor::init(), and opal::AccelerationSensor::init(). |
|
Returns true if this Sensor depends on the given Solid.
Reimplemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. Definition at line 62 of file Sensor.cpp. |
|
Internal function used to destroy this object.
Definition at line 42 of file Sensor.cpp. Referenced by opal::Simulator::removeSensor(). |
|
Called regularly to update the Sensor. This does nothing if the Sensor is disabled. Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Returns true if the Sensor is enabled.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Sets whether the Sensor can update its measurements.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Sets the Sensor's name.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Sets the Sensor's transform.
Implemented in opal::AccelerationSensor, opal::InclineSensor, opal::RaycastSensor, and opal::VolumeSensor. |
|
Set the user data pointer to some external data. The user data is totally user-managed (i.e. it is not destroyed when the Sensor is destroyed). Definition at line 52 of file Sensor.cpp. References mUserData. Referenced by Sensor(). |
|
True if the Sensor has been initialized.
|
|
Pointer to user data. This is totally user-managed (i.e. OPAL will never delete it). Definition at line 94 of file Sensor.h. Referenced by getUserData(), and setUserData(). |