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

RasterSpecialist::Box Class Reference

This class represents a BoundingBox in the image. More...

#include <RasterSpecialist.h>

List of all members.

Public Member Functions

 Box (int minX, int minY, int maxX, int maxY)
 Constructor.

void merge (Box &box)
 After calling this method, this is the union of box and this.

void add (int x, int y)
 Adds a point to the bounding-box.

void reset (int x, int y)
 Resets the bounding box.

bool inside (int x, int y)
 Tests if the bounding box contains the point at position (x,y).


Public Attributes

int minX
 Minimal x-coordinate of the box.

int minY
 Minimal y-coordinate of the box.

int maxX
 Maximal x-coordinate of the box.

int maxY
 Maximal y-coordinate of the box.


Detailed Description

This class represents a BoundingBox in the image.

The box is parallel to the axes of the coordinate-system.

Definition at line 134 of file RasterSpecialist.h.


Constructor & Destructor Documentation

RasterSpecialist::Box::Box int  minX,
int  minY,
int  maxX,
int  maxY
 

Constructor.

Parameters:
minX 
minY 
maxX 
maxY 

Definition at line 49 of file RasterSpecialist.cpp.


Member Function Documentation

void RasterSpecialist::Box::merge Box box  )  [inline]
 

After calling this method, this is the union of box and this.

Parameters:
box input

Definition at line 157 of file RasterSpecialist.h.

References maxX, maxY, minX, and minY.

void RasterSpecialist::Box::add int  x,
int  y
[inline]
 

Adds a point to the bounding-box.

The resulting bounding box is the smallest box that contains (x,y) and this(before adding the point).

Parameters:
x The x coordinate to add.
y The y coordinate to add.

Definition at line 169 of file RasterSpecialist.h.

void RasterSpecialist::Box::reset int  x,
int  y
[inline]
 

Resets the bounding box.

After resetting the bounding box lies at position (x,y) and the width and height of it are 0.

Parameters:
x The x coordinate.
y The y coordinate.

Definition at line 181 of file RasterSpecialist.h.

bool RasterSpecialist::Box::inside int  x,
int  y
[inline]
 

Tests if the bounding box contains the point at position (x,y).

Parameters:
x The x coordinate.
y The y coordinate.
Returns:

Definition at line 193 of file RasterSpecialist.h.

Referenced by RBridgeSpecialist::findBridgeMark(), BoxSpecialist::fusionGoal(), and BoxSpecialist::searchGoal().


Member Data Documentation

int RasterSpecialist::Box::minX
 

Minimal x-coordinate of the box.

Definition at line 146 of file RasterSpecialist.h.

Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge().

int RasterSpecialist::Box::minY
 

Minimal y-coordinate of the box.

Definition at line 148 of file RasterSpecialist.h.

Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge().

int RasterSpecialist::Box::maxX
 

Maximal x-coordinate of the box.

Definition at line 150 of file RasterSpecialist.h.

Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge().

int RasterSpecialist::Box::maxY
 

Maximal y-coordinate of the box.

Definition at line 152 of file RasterSpecialist.h.

Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge().


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