#include <qgarlib/GenImage_BoundCheck.H>
Definition at line 135 of file GenImage.H.
Public Member Functions | |
Constructors | |
| GenImage_BoundCheck () | |
| Default constructor. | |
| GenImage_BoundCheck (T aLowerBnd, T anUpperBnd) | |
| Construct from bounds. | |
Checking | |
| void | checkPixel (const T &aPixel) const throw (QgarErrorDomain) |
| Check that a pixel value is between the bounds. | |
| void | checkRange (const T *const aPPixmap, int aWidth, const BoundingBox &aRange) const throw (QgarErrorDomain) |
| Check that all the pixel values is between the bounds. | |
Accessor | |
| T | lowerBound () const |
| Get lower bound. | |
| T | upperBound () const |
| Get upper bound. | |
Mutator | |
| void | setLowerBound (const T &aBound) |
| Set lower bound. | |
| void | setUpperBound (const T &aBound) |
| Set upper bound. | |
Private Attributes | |
Bounds | |
| T | _lowerBound |
| Lower bound of pixel value. | |
| T | _upperBound |
| Upper bound of pixel value. | |
|
|||||||||
|
Default constructor. Lower and upper bounds are intialized to zero. Definition at line 151 of file GenImage.H. |
|
||||||||||||||||
|
Construct from bounds.
Definition at line 166 of file GenImage.H. |
|
||||||||||
|
Check that a pixel value is between the bounds.
Definition at line 190 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::_upperBound. Referenced by qgar::GenImage_BoundCheck< T >::checkRange(). |
|
||||||||||||||||||||
|
Check that all the pixel values is between the bounds.
Definition at line 216 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::checkPixel(). |
|
|||||||||
|
Get lower bound.
Definition at line 239 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::_lowerBound. |
|
||||||||||
|
Set lower bound.
Definition at line 264 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::_lowerBound. |
|
||||||||||
|
Set upper bound.
Definition at line 274 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::_upperBound. |
|
|||||||||
|
Get upper bound.
Definition at line 247 of file GenImage.H. References qgar::GenImage_BoundCheck< T >::_upperBound. |
|
|||||
|
Lower bound of pixel value.
Definition at line 295 of file GenImage.H. Referenced by qgar::GenImage_BoundCheck< T >::lowerBound(), and qgar::GenImage_BoundCheck< T >::setLowerBound(). |
|
|||||
|
Upper bound of pixel value.
Definition at line 300 of file GenImage.H. Referenced by qgar::GenImage_BoundCheck< T >::checkPixel(), qgar::GenImage_BoundCheck< T >::setUpperBound(), and qgar::GenImage_BoundCheck< T >::upperBound(). |