Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

NoGeometry Class Reference

A class representing an empty geometric object. More...

#include <PfieldGeometry.h>

Inheritance diagram for NoGeometry:

Inheritance graph
[legend]
Collaboration diagram for NoGeometry:

Collaboration graph
[legend]
List of all members.

Public Member Functions

GeometryType getType () const
 Returns the type of a geometric object.

PfieldGeometricObjectclone () const
 Clones an empty geometric object.

double distanceTo (const PfPose &base, const PfVec &pos, PfVec &contact) const
 Computes the distance from the border of the object to a given point.

virtual void initRadiusOfCollisionCircle ()
 Computes value of the radiusOfCollisionCircle variable.

PfieldGeometricObjectgetAbs (const PfPose &base) const
 Returns a geometric object with absolute coordinates.

void setAbsoluteFromOther (const PfPose &base, PfieldGeometricObject *other)
 Computes absolute coordinates from a base pose and another, relative polygon.


Detailed Description

A class representing an empty geometric object.

Definition at line 344 of file PfieldGeometry.h.


Member Function Documentation

GeometryType NoGeometry::getType  )  const [inline, virtual]
 

Returns the type of a geometric object.

Returns:
The type

Implements PfieldGeometricObject.

Definition at line 350 of file PfieldGeometry.h.

References GeometryType.

PfieldGeometricObject * NoGeometry::clone  )  const [virtual]
 

Clones an empty geometric object.

Returns:
A pointer to a copy of the object

Implements PfieldGeometricObject.

Definition at line 626 of file PfieldGeometry.cpp.

References PfieldGeometricObject::intersectable, PfieldGeometricObject::position, and PfieldGeometricObject::radiusOfCollisionCircle.

Referenced by getAbs().

double NoGeometry::distanceTo const PfPose base,
const PfVec pos,
PfVec contact
const [virtual]
 

Computes the distance from the border of the object to a given point.

Parameters:
base The pose of the object to which the geometric object is assigned
pos The tested point
contact Returns the next position of the geometric object to the point
Returns:
The distance

Implements PfieldGeometricObject.

Definition at line 605 of file PfieldGeometry.cpp.

References PfVec::distanceTo(), and PfPose::pos.

Here is the call graph for this function:

virtual void NoGeometry::initRadiusOfCollisionCircle  )  [inline, virtual]
 

Computes value of the radiusOfCollisionCircle variable.

Implements PfieldGeometricObject.

Definition at line 367 of file PfieldGeometry.h.

Referenced by Parser::parseGeometricObject().

PfieldGeometricObject * NoGeometry::getAbs const PfPose base  )  const [virtual]
 

Returns a geometric object with absolute coordinates.

Parameters:
base The pose of the object
Returns:
A pointer to a new geometric object

Implements PfieldGeometricObject.

Definition at line 612 of file PfieldGeometry.cpp.

References clone(), PfPose::pos, and PfieldGeometricObject::position.

Here is the call graph for this function:

void NoGeometry::setAbsoluteFromOther const PfPose base,
PfieldGeometricObject other
[virtual]
 

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!

Parameters:
base The new absolute position
other A relative geometric object

Implements PfieldGeometricObject.

Definition at line 620 of file PfieldGeometry.cpp.

References PfPose::pos.


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:09:53 2004 for GT2004 by doxygen 1.3.6