#include <PfieldGeometry.h>
Inheritance diagram for PfieldGeometricObject:
Public Member Functions | |
virtual | ~PfieldGeometricObject () |
Virtual destructor. | |
virtual GeometryType | getType () const=0 |
Returns the type of a geometric object. | |
virtual PfieldGeometricObject * | clone () const=0 |
Clones a geometric object. | |
virtual double | distanceTo (const PfPose &base, const PfVec &pos, PfVec &contact) const=0 |
Computes the distance from the border of the object to a given point. | |
virtual void | initRadiusOfCollisionCircle ()=0 |
Computes value of the radiusOfCollisionCircle variable. | |
double | getRadiusOfCollisionCircle () const |
Returns the value of radiusOfCollisionCircle. | |
PfVec | getPosition () const |
Returns the position. | |
virtual PfieldGeometricObject * | getAbs (const PfPose &base) const=0 |
Returns a geometric object with absolute coordinates. | |
virtual void | getPoints (std::vector< PfVec > &points) |
Returns all points of the object. | |
virtual void | setAbsoluteFromOther (const PfPose &base, PfieldGeometricObject *other)=0 |
Computes absolute coordinates from a base pose and another, relative polygon. | |
Public Attributes | |
double | radiusOfCollisionCircle |
The radius of a circle around the whole object. | |
bool | intersectable |
Flag, true if object is intersectable by other objects. | |
PfVec | position |
The position of the object, only used with absolute positions. |
Definition at line 96 of file PfieldGeometry.h.
|
Virtual destructor.
Definition at line 107 of file PfieldGeometry.h. |
|
Returns the type of a geometric object.
Implemented in Polygon, Line, Circle, and NoGeometry. Referenced by intersectGeometricObjects(). |
|
Clones a geometric object.
Implemented in Polygon, Line, Circle, and NoGeometry. Referenced by Object::setGeometry(). |
|
Computes the distance from the border of the object to a given point.
Implemented in Polygon, Line, Circle, and NoGeometry. Referenced by computeChargeForShapefield(), computeGradientForShapefield(), and SingleFormation::getDistanceToFormation(). |
|
Computes value of the radiusOfCollisionCircle variable.
Implemented in Polygon, Line, Circle, and NoGeometry. |
|
Returns the value of radiusOfCollisionCircle.
Definition at line 133 of file PfieldGeometry.h. References radiusOfCollisionCircle. |
|
Returns the position.
Definition at line 139 of file PfieldGeometry.h. |
|
Returns a geometric object with absolute coordinates.
Implemented in Polygon, Line, Circle, and NoGeometry. Referenced by Object::setGeometry(). |
|
Returns all points of the object.
Reimplemented in Polygon, Line, and Circle. Definition at line 151 of file PfieldGeometry.h. |
|
Computes absolute coordinates from a base pose and another, relative polygon. Use careful! The other object has to be the same type and the size! Only positions are changed, other members will be ignored!
Implemented in Polygon, Line, Circle, and NoGeometry. Referenced by Object::computeAbsGeometry(), and Object::setPose(). |
|
The radius of a circle around the whole object.
Definition at line 100 of file PfieldGeometry.h. Referenced by NoGeometry::clone(), Polygon::clone(), Line::clone(), Circle::clone(), FutureWorldModelGenerator::getMaxTranslationForObject(), getRadiusOfCollisionCircle(), intersectGeometricObjects(), and intersectLineAndCircle(). |
|
Flag, true if object is intersectable by other objects.
Definition at line 102 of file PfieldGeometry.h. Referenced by NoGeometry::clone(), Polygon::clone(), Line::clone(), Circle::clone(), intersectGeometricObjects(), and Parser::parseGeometricObject(). |
|
The position of the object, only used with absolute positions.
Definition at line 104 of file PfieldGeometry.h. Referenced by NoGeometry::clone(), Polygon::clone(), Line::clone(), Circle::clone(), NoGeometry::getAbs(), Circle::getAbs(), FutureWorldModelGenerator::getMaxRotationForObject(), FutureWorldModelGenerator::getMaxTranslationForObject(), intersectCircleAndCircle(), intersectGeometricObjects(), and intersectLineAndCircle(). |