#include <FormationObject.h>
Inheritance diagram for RelativeFormation:


Public Member Functions | |
| RelativeFormation () | |
| Constructor. | |
| bool | isActive () const |
| Checks if the formation is active. | |
| void | setParameters (double angle, FormationCoordinates coordinates) |
| Sets the two specific parameters of a RelativeFormation. | |
| SingleFormation * | copy () const |
| Creates a copy of the formation object. | |
Protected Member Functions | |
| virtual void | updateGeometry () |
| Updates the positions of the formation. | |
Protected Attributes | |
| double | angle |
| The angle to the other object. | |
| FormationCoordinates | coordinates |
| The coordinate system used. | |
Definition at line 195 of file FormationObject.h.
|
|
Constructor.
Definition at line 192 of file FormationObject.cpp. References Line, and Object::setGeometry(). Referenced by copy(). |
Here is the call graph for this function:

|
|
Checks if the formation is active.
Reimplemented from SingleFormation. Definition at line 200 of file FormationObject.cpp. |
|
||||||||||||
|
Sets the two specific parameters of a RelativeFormation.
Definition at line 210 of file FormationObject.h. Referenced by Parser::parseSingleFormation(). |
|
|
Creates a copy of the formation object.
Reimplemented from SingleFormation. Definition at line 222 of file FormationObject.cpp. References angle, coordinates, SingleFormation::geometricFormationObject, SingleFormation::objects, RelativeFormation(), and SingleFormation::robotPosition. |
Here is the call graph for this function:

|
|
Updates the positions of the formation.
Reimplemented from SingleFormation. Definition at line 206 of file FormationObject.cpp. References coordinates, PfVec::distanceTo(), Object::getGeometry(), Line::p1, Line::p2, PfPose::pos, RELATIVE_FORMATION, PfVec::rotate(), and PfPose::rotation. |
Here is the call graph for this function:

|
|
The angle to the other object.
Definition at line 220 of file FormationObject.h. Referenced by copy(). |
|
|
The coordinate system used.
Definition at line 222 of file FormationObject.h. Referenced by copy(), and updateGeometry(). |
1.3.6