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

EdgesPercept Class Reference

The class represents a percepted edge on the field. More...

#include <EdgesPercept.h>

Collaboration diagram for EdgesPercept:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { maxNumberOfEdges = 50 }

Public Member Functions

 EdgesPercept ()
 Constructor.

void reset (unsigned long frameNumber)
 The function empties the edge percept.

void add (const Vector2< int > &point1, const Vector2< int > &point2)
 The function adds a new edge to the edge percept.


Public Attributes

Edge edges [maxNumberOfEdges]
 The edges.

int numberOfEdges
 The number of edges.

unsigned long frameNumber
 The frame number when perceived.


Detailed Description

The class represents a percepted edge on the field.

Definition at line 18 of file EdgesPercept.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
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().

Here is the call graph for this function:


Member Function Documentation

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().

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.

Referenced by GT2004EdgeSpecialist::getEdgesPercept().


Member Data Documentation

Edge EdgesPercept::edges[maxNumberOfEdges]
 

The edges.

Definition at line 29 of file EdgesPercept.h.

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

int EdgesPercept::numberOfEdges
 

The number of edges.

Definition at line 30 of file EdgesPercept.h.

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

unsigned long EdgesPercept::frameNumber
 

The frame number when perceived.

Definition at line 31 of file EdgesPercept.h.

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


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