#include <RasterSpecialist.h>
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. |
The box is parallel to the axes of the coordinate-system.
Definition at line 134 of file RasterSpecialist.h.
|
Constructor.
Definition at line 49 of file RasterSpecialist.cpp. |
|
After calling this method, this is the union of box and this.
Definition at line 157 of file RasterSpecialist.h. |
|
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).
Definition at line 169 of file RasterSpecialist.h. |
|
Resets the bounding box. After resetting the bounding box lies at position (x,y) and the width and height of it are 0.
Definition at line 181 of file RasterSpecialist.h. |
|
Tests if the bounding box contains the point at position (x,y).
Definition at line 193 of file RasterSpecialist.h. Referenced by RBridgeSpecialist::findBridgeMark(), BoxSpecialist::fusionGoal(), and BoxSpecialist::searchGoal(). |
|
Minimal x-coordinate of the box.
Definition at line 146 of file RasterSpecialist.h. Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge(). |
|
Minimal y-coordinate of the box.
Definition at line 148 of file RasterSpecialist.h. Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge(). |
|
Maximal x-coordinate of the box.
Definition at line 150 of file RasterSpecialist.h. Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge(). |
|
Maximal y-coordinate of the box.
Definition at line 152 of file RasterSpecialist.h. Referenced by RBallSpecialist2::createBox(), RBallSpecialist2::executePostProcessing(), and merge(). |