#include <VirtualRangeSensor.h>
Public Member Functions | |
virtual void | init (std::string name, osg::Node *root, osg::Node *trackNode, double range, bool visible) |
VirtualRangeSensor (std::string name, osg::Node *root, osg::Node *trackNode, double range, bool visible) | |
VirtualRangeSensor () | |
Public Attributes | |
std::string | name |
osg::ref_ptr < IntersectorUpdateCallback > | node_tracker |
double | range |
Max distance of the beam. | |
osg::ref_ptr< osg::Node > | root |
osg::ref_ptr< osg::Node > | trackNode |
bool | visible |
Whether to make the beam visible or not. |
Virtual range sensor that computes the distance to an obstacle along a given direction
Definition at line 108 of file VirtualRangeSensor.h.
VirtualRangeSensor::VirtualRangeSensor | ( | std::string | name, |
osg::Node * | root, | ||
osg::Node * | trackNode, | ||
double | range, | ||
bool | visible | ||
) |
Definition at line 21 of file VirtualRangeSensor.cpp.
Definition at line 17 of file VirtualRangeSensor.cpp.
void VirtualRangeSensor::init | ( | std::string | name, |
osg::Node * | root, | ||
osg::Node * | trackNode, | ||
double | range, | ||
bool | visible | ||
) | [virtual] |
Definition at line 27 of file VirtualRangeSensor.cpp.
std::string VirtualRangeSensor::name |
Definition at line 111 of file VirtualRangeSensor.h.
osg::ref_ptr<IntersectorUpdateCallback> VirtualRangeSensor::node_tracker |
Definition at line 116 of file VirtualRangeSensor.h.
double VirtualRangeSensor::range |
Max distance of the beam.
Definition at line 114 of file VirtualRangeSensor.h.
osg::ref_ptr<osg::Node> VirtualRangeSensor::root |
Definition at line 113 of file VirtualRangeSensor.h.
osg::ref_ptr<osg::Node> VirtualRangeSensor::trackNode |
Definition at line 112 of file VirtualRangeSensor.h.
Whether to make the beam visible or not.
Definition at line 115 of file VirtualRangeSensor.h.