casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::RegionBox Class Reference

#include <RegionBox.h>

Public Member Functions

 RegionBox (const QList< int > &pixel_x, const QList< int > &pixel_y)
 
QString toString (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const
 
QString toStringLabelled (const casacore::Vector< int > &imageBLC, const casacore::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 casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC, bool *valid) const
 Code was crashing when the region box bounds were bigger than the image bounds. More...
 
QVector< int > getActualTRC (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC, bool *valid) const
 
bool isInImage (const QVector< int > &coords, const casacore::Vector< int > &imageBLC, const casacore::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 casacore::Vector< int > &  imageBLC,
const casacore::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 casacore::Vector< int > &  imageBLC,
const casacore::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 casacore::Vector< int > &  imageBLC,
const casacore::Vector< int > &  imageTRC 
) const
private
QString casa::RegionBox::toString ( const casacore::Vector< int > &  imageBLC,
const casacore::Vector< int > &  imageTRC 
) const
QString casa::RegionBox::toStringLabelled ( const casacore::Vector< int > &  imageBLC,
const casacore::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: