#include <EdgesPercept.h>
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 |
Definition at line 18 of file EdgesPercept.h.
anonymous enum |
EdgesPercept::EdgesPercept | ( | ) | [inline] |
The function adds a new edge to the edge percept.
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().
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>>().
The number of edges.
Definition at line 30 of file EdgesPercept.h.
Referenced by add(), operator<<(), operator>>(), DrawingMethods::paintEdgesPerceptForFieldView(), DrawingMethods::paintEdgesPerceptForImageView(), and reset().