EdgesPercept Class Reference

#include <EdgesPercept.h>

List of all members.

Public Types

 maxNumberOfEdges = 50
enum  { maxNumberOfEdges = 50 }

Public Member Functions

 EdgesPercept ()
void reset (unsigned long frameNumber)
void add (const Vector2< int > &point1, const Vector2< int > &point2)

Public Attributes

Edge edges [maxNumberOfEdges]
int numberOfEdges
unsigned long frameNumber

Classes

struct  Edge


Detailed Description

The class represents a percepted edge on the field.

Definition at line 18 of file EdgesPercept.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
maxNumberOfEdges 

Definition at line 21 of file EdgesPercept.h.


Constructor & Destructor Documentation

EdgesPercept::EdgesPercept (  )  [inline]

Constructor.

Definition at line 36 of file EdgesPercept.h.

References reset().


Member Function Documentation

void EdgesPercept::add ( const Vector2< int > &  point1,
const Vector2< int > &  point2 
)

The function adds a new edge to the edge percept.

Parameters:
point1 The point on one end of the edge.
point2 The point on the other end of the edge.

Definition at line 16 of file EdgesPercept.cpp.

References edges, maxNumberOfEdges, numberOfEdges, EdgesPercept::Edge::point1, and EdgesPercept::Edge::point2.

void EdgesPercept::reset ( unsigned long  frameNumber  ) 

The function empties the edge percept.

Definition at line 10 of file EdgesPercept.cpp.

References numberOfEdges.

Referenced by EdgesPercept(), and GT2004ImageProcessor::execute().


Member Data Documentation

Edge EdgesPercept::edges[maxNumberOfEdges]

The edges.

Definition at line 29 of file EdgesPercept.h.

Referenced by add(), operator<<(), operator>>(), DrawingMethods::paintEdgesPerceptForFieldView(), and DrawingMethods::paintEdgesPerceptForImageView().

unsigned long EdgesPercept::frameNumber

The frame number when perceived.

Definition at line 31 of file EdgesPercept.h.

Referenced by operator<<(), and operator>>().

int EdgesPercept::numberOfEdges

The number of edges.

Definition at line 30 of file EdgesPercept.h.

Referenced by add(), operator<<(), operator>>(), DrawingMethods::paintEdgesPerceptForFieldView(), DrawingMethods::paintEdgesPerceptForImageView(), and reset().


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