casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::RegionBox Class Reference

#include <RegionBox.h>

List of all members.

Public Member Functions

 RegionBox (const QList< int > &pixel_x, const QList< int > &pixel_y)
QString toString (const Vector< int > &imageBLC, const Vector< int > &imageTRC) const
QString toStringLabelled (const Vector< int > &imageBLC, const Vector< int > &imageTRC) const
void update (const QList< int > &pixelX, const QList< int > &pixelY)
bool isInBox (double valueX, double valueY) const
virtual ~RegionBox ()

Private Member Functions

void clear ()
QVector< int > getActualBLC (const Vector< int > &imageBLC, const Vector< int > &imageTRC, bool *valid) const
 Code was crashing when the region box bounds were bigger than the image bounds.
QVector< int > getActualTRC (const Vector< int > &imageBLC, const Vector< int > &imageTRC, bool *valid) const
bool isInImage (const QVector< int > &coords, const Vector< int > &imageBLC, const Vector< int > &imageTRC) const
void initBox (const QList< int > &pixelX, const QList< int > &pixelY)

Private Attributes

QList< int > regionBoxBLC
QList< int > regionBoxTRC

Detailed Description

Definition at line 35 of file RegionBox.h.


Constructor & Destructor Documentation

casa::RegionBox::RegionBox ( const QList< int > &  pixel_x,
const QList< int > &  pixel_y 
)
virtual casa::RegionBox::~RegionBox ( ) [virtual]

Member Function Documentation

void casa::RegionBox::clear ( ) [private]
QVector<int> casa::RegionBox::getActualBLC ( const Vector< int > &  imageBLC,
const Vector< int > &  imageTRC,
bool *  valid 
) const [private]

Code was crashing when the region box bounds were bigger than the image bounds.

The actualBLC/TRC methods choose smaller region boxes in such cases.

QVector<int> casa::RegionBox::getActualTRC ( const Vector< int > &  imageBLC,
const Vector< int > &  imageTRC,
bool *  valid 
) const [private]
void casa::RegionBox::initBox ( const QList< int > &  pixelX,
const QList< int > &  pixelY 
) [private]
bool casa::RegionBox::isInBox ( double  valueX,
double  valueY 
) const
bool casa::RegionBox::isInImage ( const QVector< int > &  coords,
const Vector< int > &  imageBLC,
const Vector< int > &  imageTRC 
) const [private]
QString casa::RegionBox::toString ( const Vector< int > &  imageBLC,
const Vector< int > &  imageTRC 
) const
QString casa::RegionBox::toStringLabelled ( const Vector< int > &  imageBLC,
const Vector< int > &  imageTRC 
) const
void casa::RegionBox::update ( const QList< int > &  pixelX,
const QList< int > &  pixelY 
)

Member Data Documentation

QList<int> casa::RegionBox::regionBoxBLC [private]

Definition at line 54 of file RegionBox.h.

QList<int> casa::RegionBox::regionBoxTRC [private]

Definition at line 55 of file RegionBox.h.


The documentation for this class was generated from the following file: