#include <VolumeSensor.h>
Inheritance diagram for opal::VolumeSensor:
Public Member Functions | |
VolumeSensor (Simulator *s) | |
virtual | ~VolumeSensor () |
virtual void OPAL_CALL | init (const VolumeSensorData &data) |
virtual const VolumeSensorData &OPAL_CALL | getData () const |
virtual const VolumeQueryResult &OPAL_CALL | queryVolume (Solid *volume) |
virtual void OPAL_CALL | setEnabled (bool e) |
virtual bool OPAL_CALL | isEnabled () const |
virtual void OPAL_CALL | setTransform (const Matrix44r &t) |
virtual const Matrix44r &OPAL_CALL | getTransform () const |
virtual SensorType OPAL_CALL | getType () const |
virtual void OPAL_CALL | setName (const std::string &name) |
virtual const std::string &OPAL_CALL | getName () const |
virtual void OPAL_CALL | internal_update () |
virtual bool OPAL_CALL | internal_dependsOnSolid (Solid *s) |
Protected Attributes | |
VolumeSensorData | mData |
Simulator * | mSim |
Definition at line 117 of file VolumeSensor.h.
|
Definition at line 33 of file VolumeSensor.cpp. References mSim. |
|
Definition at line 39 of file VolumeSensor.cpp. |
|
Returns all data describing the Sensor.
Definition at line 49 of file VolumeSensor.cpp. References mData. |
|
Returns the Sensor's name.
Implements opal::Sensor. Definition at line 133 of file VolumeSensor.cpp. References mData, and opal::SensorData::name. |
|
Returns the Sensor's transform.
Implements opal::Sensor. Definition at line 123 of file VolumeSensor.cpp. References mData, and opal::SensorData::transform. |
|
Returns the Sensor type.
Implements opal::Sensor. Definition at line 113 of file VolumeSensor.cpp. References opal::SensorData::getType(), and mData. |
|
Initializes the Sensor with the given data structure.
Definition at line 43 of file VolumeSensor.cpp. References opal::Sensor::init(), and mData. |
|
Returns true if this Sensor depends on the given Solid.
Reimplemented from opal::Sensor. Definition at line 146 of file VolumeSensor.cpp. References mData, and opal::SensorData::solid. |
|
Called regularly to update the Sensor. This does nothing if the Sensor is disabled. Implements opal::Sensor. Definition at line 138 of file VolumeSensor.cpp. References opal::SensorData::enabled, mData, and opal::SensorData::solid. |
|
Returns true if the Sensor is enabled.
Implements opal::Sensor. Definition at line 108 of file VolumeSensor.cpp. References opal::SensorData::enabled, and mData. |
|
Queries the Sensor's environment with the given Solid's volume, returning a list of the Solids that collide with that Solid. The given Solid's transform will be totally ignored; use the Sensor's transform instead. If this Sensor is attached to a Solid, that Solid will not be added to the results. Definition at line 54 of file VolumeSensor.cpp. References opal::SensorData::enabled, opal::Solid::getTransform(), opal::Simulator::internal_queryVolume(), mData, mSim, opal::Solid::setTransform(), opal::SensorData::solid, and opal::SensorData::transform. |
|
Sets whether the Sensor can update its measurements.
Implements opal::Sensor. Definition at line 98 of file VolumeSensor.cpp. References opal::SensorData::enabled, and mData. |
|
Sets the Sensor's name.
Implements opal::Sensor. Definition at line 128 of file VolumeSensor.cpp. References mData, and opal::SensorData::name. |
|
Sets the Sensor's transform.
Implements opal::Sensor. Definition at line 118 of file VolumeSensor.cpp. References mData, and opal::SensorData::transform. |
|
Stores data describing the Sensor.
Definition at line 158 of file VolumeSensor.h. Referenced by getData(), getName(), getTransform(), getType(), init(), internal_dependsOnSolid(), internal_update(), isEnabled(), queryVolume(), setEnabled(), setName(), and setTransform(). |
|
Pointer to the Simulator containing this Sensor; used to fire rays into the Simulator. Definition at line 162 of file VolumeSensor.h. Referenced by queryVolume(), and VolumeSensor(). |