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

Field::Table Class Reference

This is a collection of line- or boundary segments with start-Pose2D and length. More...

Collaboration diagram for Field::Table:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Table ()
 ~Table ()
void setSize (int size)
void push (const Pose2D &p, double l)

Public Attributes

int numberOfEntries
 The number of corners in the table.

Pose2Dcorner
 The field corners.

double * length
 The lengths of the border segments starting at a corresponding corner.

int index

Private Member Functions

void free ()

Detailed Description

This is a collection of line- or boundary segments with start-Pose2D and length.

Definition at line 28 of file Field.h.


Constructor & Destructor Documentation

Field::Table::Table  )  [inline]
 

Definition at line 47 of file Field.h.

References numberOfEntries.

Field::Table::~Table  )  [inline]
 

Definition at line 49 of file Field.h.

References free().

Here is the call graph for this function:


Member Function Documentation

void Field::Table::free  )  [inline, private]
 

Definition at line 31 of file Field.h.

References corner, length, and numberOfEntries.

Referenced by setSize(), and ~Table().

void Field::Table::setSize int  size  )  [inline]
 

Definition at line 51 of file Field.h.

References corner, free(), length, and numberOfEntries.

Referenced by Field::initBorder(), Field::initBoundary(), Field::initLines(), Field::initOpponentGoal(), Field::initOwnGoal(), Field::initSimpleLines(), and Field::placePlayers().

Here is the call graph for this function:

void Field::Table::push const Pose2D p,
double  l
[inline]
 

Definition at line 66 of file Field.h.

References corner, and length.

Referenced by Field::addCoords().


Member Data Documentation

int Field::Table::numberOfEntries
 

The number of corners in the table.

Definition at line 42 of file Field.h.

Referenced by Field::clip(), Field::draw(), free(), Field::getClosestPoint(), Field::getDistance(), Field::initBoundary(), Field::initLines(), Field::initOpponentGoal(), Field::initOwnGoal(), Field::isReallyInside(), setSize(), and Table().

Pose2D* Field::Table::corner
 

The field corners.

Definition at line 43 of file Field.h.

Referenced by Field::clip(), Field::draw(), free(), Field::getClosestPoint(), Field::getDistance(), Field::getDistanceToOwnPenaltyArea(), Field::isReallyInside(), push(), and setSize().

double* Field::Table::length
 

The lengths of the border segments starting at a corresponding corner.

Definition at line 44 of file Field.h.

Referenced by Field::clip(), Field::draw(), free(), Field::getClosestPoint(), Field::getDistance(), Field::getDistanceToOwnPenaltyArea(), Field::isReallyInside(), push(), and setSize().

int Field::Table::index
 

Definition at line 45 of file Field.h.

Referenced by Field::initLines().


The documentation for this class was generated from the following file:
Generated on Thu Sep 23 20:06:08 2004 for GT2004 by doxygen 1.3.6