#include <VisualSensor.h>
Inheritance diagram for VisualSensor:
Definition at line 12 of file VisualSensor.h.
|
Constructor.
Definition at line 7 of file VisualSensor.cpp. References delta, epsilon, M_PI, and Vector2::setXY(). |
|
Definition at line 24 of file VisualSensor.cpp. |
|
Activates all sensors between gammaM and gammaP. The interval [gammaM, gammaP] is considered to be fully ocluded by an object. Definition at line 107 of file VisualSensor.cpp. Referenced by detectContacts(). |
|
Computes the angle gamma corresponding to a point at dx, dy relative to the sensor center. The value is normalized between (-Pi,Pi]. Definition at line 62 of file VisualSensor.h. References PhysicalObject::alpha, and real. Referenced by detectContacts(). |
|
Tests for contacts between this object and a capsule. Reimplemented from PhysicalObject. Definition at line 48 of file VisualSensor.cpp. References activate(), computeGamma(), CappedRectangle::cosAlpha, CappedRectangle::l, MathTools::modulus(), CappedRectangle::R, PhysicalObject::r, real, CappedRectangle::sinAlpha, Vector2::x, and Vector2::y. |
|
Tests for contacts between this object and a circle. Reimplemented from PhysicalObject. Definition at line 27 of file VisualSensor.cpp. References activate(), computeGamma(), MathTools::modulus(), Circle::R, PhysicalObject::r, real, Vector2::x, and Vector2::y. |
|
Tests for contacts between this object and a border. Reimplemented from PhysicalObject. Definition at line 29 of file VisualSensor.h. |
|
Redirects contact detection. Implements PhysicalObject. Definition at line 24 of file VisualSensor.h. References PhysicalObject::detectContacts(). Referenced by Spherus::detectContacts(), and IunctusSimulator::detectContacts(). |
|
Draw the object to the graphical user interface. Implements GraphicalObject. Definition at line 178 of file VisualSensor.cpp. References PhysicalObject::alpha, delta, GUI::drawLine(), PhysicalObject::r, real, GUI::setPenColor(), Vector2::x, and Vector2::y. Referenced by Spherus::draw(). |
|
Half the view angle. Definition at line 51 of file VisualSensor.h. Referenced by draw(), and VisualSensor(). |
|
The view angle of an unit sensor (pixel). Definition at line 54 of file VisualSensor.h. Referenced by activate(), and VisualSensor(). |
|
The radius of the sensor. Definition at line 45 of file VisualSensor.h. |
|
The view angle of the sensor. Definition at line 48 of file VisualSensor.h. |
Thyrix homepage Users' guide
(C) Arxia 2004-2005