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

ConditionalBoundary Class Reference

The class represents a rectangular landmark boundary. More...

#include <LandmarksPercept.h>

Inheritance diagram for ConditionalBoundary:

Inheritance graph
[legend]
Collaboration diagram for ConditionalBoundary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConditionalBoundary ()
 Constructor.

void addX (const double px, bool isOnBorder)
 The function adds a point to the boundary.

void addY (const double py, bool isOnBorder)
 The function adds a point to the boundary.

void add (const ConditionalBoundary &b)
 The function adds another boundary to this one.

bool isOnBorder (const double &border) const
 The function determines whether a certain edge lies on the image border.


Private Attributes

Boundary< double > freeBorders
 Contains the edges that do not touch the image border.


Detailed Description

The class represents a rectangular landmark boundary.

It also encodes, which edges of the boundary touch the image border.

Definition at line 23 of file LandmarksPercept.h.


Constructor & Destructor Documentation

ConditionalBoundary::ConditionalBoundary  )  [inline]
 

Constructor.

The boundary is empty.

Definition at line 33 of file LandmarksPercept.h.

References freeBorders, and pi.


Member Function Documentation

void ConditionalBoundary::addX const double  px,
bool  isOnBorder
[inline]
 

The function adds a point to the boundary.

Parameters:
px The x-coordinate of a new x-boundary-candidate.
isOnBorder Is the point on the image border?

Definition at line 42 of file LandmarksPercept.h.

References Range< double >::add(), freeBorders, and Boundary< double >::x.

Referenced by RasterImageProcessor::addFlag(), BoxSpecialist::fusionGoal(), GT2004FlagSpecialist::getFlagPercept(), GoalRecognizer::scanLinesForGoals(), GT2004GoalRecognizer::scanLinesForGoals(), and BoxSpecialist::searchGoal().

Here is the call graph for this function:

void ConditionalBoundary::addY const double  py,
bool  isOnBorder
[inline]
 

The function adds a point to the boundary.

Parameters:
py The y-coordinate of a new y-boundary-candidate.
isOnBorder Is the point on the image border?

Definition at line 55 of file LandmarksPercept.h.

References Range< double >::add(), freeBorders, and Boundary< double >::y.

Referenced by RasterImageProcessor::addFlag(), BoxSpecialist::fusionGoal(), GT2004FlagSpecialist::getFlagPercept(), GoalRecognizer::scanLinesForGoals(), GT2004GoalRecognizer::scanLinesForGoals(), and BoxSpecialist::searchGoal().

Here is the call graph for this function:

void ConditionalBoundary::add const ConditionalBoundary b  )  [inline]
 

The function adds another boundary to this one.

Parameters:
b The other boundary.

Definition at line 66 of file LandmarksPercept.h.

References Boundary< double >::add(), Boundary< T >::add(), and freeBorders.

Referenced by GoalRecognizer::scanLinesForGoals(), and GT2004GoalRecognizer::scanLinesForGoals().

Here is the call graph for this function:

bool ConditionalBoundary::isOnBorder const double &  border  )  const [inline]
 

The function determines whether a certain edge lies on the image border.

Parameters:
border This parameter specifies the edge to test. The parameter must be one of the following four members of this object: x.min, x.max, y.min, y.max. A typical call would be: b.isOnBorder(b.min.x)
Returns:
Does the specified edge touch the image border?

Definition at line 80 of file LandmarksPercept.h.

References freeBorders, Range< double >::max, Range< double >::min, Boundary< double >::x, and Boundary< double >::y.

Referenced by GT2004SelfLocator::addFlag(), LandmarksPercept::estimateOffsetForFlags(), GT2004FlagSpecialist::estimateOffsetForFlags(), LandmarksPercept::estimateOffsetForGoals(), GT2004SelfLocator::execute(), GT2004SelfLocator::getBearing(), GoalRecognizer::scanLinesForGoals(), and GT2004GoalRecognizer::scanLinesForGoals().


Member Data Documentation

Boundary<double> ConditionalBoundary::freeBorders [private]
 

Contains the edges that do not touch the image border.

Definition at line 26 of file LandmarksPercept.h.

Referenced by add(), addX(), addY(), ConditionalBoundary(), and isOnBorder().


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