GoalLinesPercept Class Reference

#include <GoalLinesPercept.h>

List of all members.

Public Types

 maxNumberOfPoints = 1000
enum  { maxNumberOfPoints = 1000 }

Public Member Functions

 GoalLinesPercept ()
void reset ()
void shakeOut (int numberFrames)
void upCount ()
void filterPoints (int diff)
void add (const Vector2< int > &point)

Public Attributes

Vector2< int > points [maxNumberOfPoints]
int count [maxNumberOfPoints]
int numberOfPoints


Detailed Description

The class represents a percepted line on the field with its type and a Vector of points belonging to it.

Definition at line 25 of file GoalLinesPercept.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
maxNumberOfPoints 

Definition at line 29 of file GoalLinesPercept.h.


Constructor & Destructor Documentation

GoalLinesPercept::GoalLinesPercept (  )  [inline]

Constructor.

Definition at line 38 of file GoalLinesPercept.h.

References reset().


Member Function Documentation

void GoalLinesPercept::add ( const Vector2< int > &  point  ) 

The function adds a new point to the lines percept.

Parameters:
type The line type of the point.
point The point.

Definition at line 23 of file GoalLinesPercept.cpp.

References count, maxNumberOfPoints, numberOfPoints, and points.

void GoalLinesPercept::filterPoints ( int  diff  ) 

Definition at line 33 of file GoalLinesPercept.cpp.

References count, numberOfPoints, points, and Vector2< V >::y.

void GoalLinesPercept::reset (  ) 

The function empties the line percept.

Definition at line 18 of file GoalLinesPercept.cpp.

References numberOfPoints.

Referenced by GoalLinesPercept().

void GoalLinesPercept::shakeOut ( int  numberFrames  ) 

Definition at line 47 of file GoalLinesPercept.cpp.

References count, maxNumberOfPoints, numberOfPoints, and points.

void GoalLinesPercept::upCount (  ) 

Definition at line 70 of file GoalLinesPercept.cpp.

References count, and numberOfPoints.


Member Data Documentation

int GoalLinesPercept::count[maxNumberOfPoints]

Definition at line 32 of file GoalLinesPercept.h.

Referenced by add(), filterPoints(), shakeOut(), and upCount().

int GoalLinesPercept::numberOfPoints

The number of points per line type.

Definition at line 33 of file GoalLinesPercept.h.

Referenced by add(), filterPoints(), operator<<(), operator>>(), reset(), shakeOut(), and upCount().

Vector2<int> GoalLinesPercept::points[maxNumberOfPoints]

The points on lines.

Definition at line 31 of file GoalLinesPercept.h.

Referenced by add(), filterPoints(), operator<<(), operator>>(), and shakeOut().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:32:37 2006 for DT2005.panorama by  doxygen 1.4.7