casacore
|
#include <RegionManager.h>
Public Member Functions | |
RegionManager () | |
blank constructor More... | |
RegionManager (const CoordinateSystem &csys) | |
virtual | ~RegionManager () |
String | absreltype (const Int absrelval=0) |
void | setcoordsys (const CoordinateSystem &csys) |
const CoordinateSystem & | getcoordsys () const |
Record * | box (const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc, const String &absrel, const Bool frac, const String &comment="") |
LCSlicer box. More... | |
Record * | wbox (const Vector< Quantity > &blc, const Vector< Quantity > &trc, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel, const String &comment) |
Record * | wbox (const Vector< String > &blc, const Vector< String > &trc, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel, const String &comment) |
Record * | wbox (const Vector< Quantity > &blc, const Vector< Quantity > &trc, const Vector< Int > &pixelaxes, const String &absrel, const String &comment) |
Record * | wbox (const Vector< String > &blc, const Vector< String > &trc, const Vector< Int > &pixelaxes, const String &absrel, const String &comment) |
ImageRegion * | wbox (const Vector< Quantity > &blc, const Vector< Quantity > &trc, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel="abs") |
ImageRegion * | wpolygon (const Vector< Quantity > &x, const Vector< Quantity > &y, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel) |
Wpolygon with coordsys and if pixelaxes[0] is -1 then its assumed to be 0,1,... More... | |
ImageRegion * | wpolygon (const Vector< Quantity > &x, const Vector< Quantity > &y, const Vector< Int > &pixelaxes, const String &absrel) |
wpolygon version without csys...throws an exception if setcoordsys is not run More... | |
ImageRegion * | wellipse (const Quantity &xc, const Quantity &yc, const Quantity &a, const Quantity &b, const Quantity &pa, const uInt pixelAxis0, const uInt pixelAxis1, const String &absrel) const |
wellipse version without csys...throws an exception if setcoordsys is not run More... | |
ImageRegion * | wsphere (const Vector< Quantity > ¢er, const Quantity &radius, const Vector< Int > &pixelaxes, const String &absrel) const |
wsphere version without csys...throws an exception if setcoordsys is not run More... | |
ImageRegion * | wellipsoid (const Vector< Quantity > ¢er, const Vector< Quantity > &radii, const Vector< Int > &pixelaxes, const String &absrel) const |
ImageRegion * | wshell (const Vector< Quantity > ¢er, const Vector< Quantity > &innerRadii, const Vector< Quantity > &outerRadii, const Vector< Int > &pixelaxes, const String &absrel) const |
ImageRegion * | doComplement (const WCRegion ®1) |
Various versions of creating a complement region. More... | |
ImageRegion * | doComplement (const PtrBlock< const WCRegion * > ®1) |
ImageRegion * | doComplement (const ImageRegion ®1) |
ImageRegion * | doConcatenation (const WCRegion ®ion, const WCBox &box) |
Various versions of concatenating a region onto another. More... | |
ImageRegion * | doconcatenation (const PtrBlock< const WCRegion * > ®ions, const WCBox &box) |
ImageRegion * | doConcatenation (const PtrBlock< const ImageRegion * > ®ions, const TableRecord &box) |
ImageRegion * | doConcatenation (const Record ®ions, const TableRecord &box) |
ImageRegion * | doDifference (const WCRegion ®1, const WCRegion ®2) |
Various versions of handling the difference of regions. More... | |
ImageRegion * | doDifference (const PtrBlock< const WCRegion * > ®1) |
ImageRegion * | doDifference (const ImageRegion ®1, const ImageRegion ®2) |
ImageRegion * | doIntersection (const WCRegion ®1, const WCRegion ®2) |
Different versions of intersecting regions. More... | |
ImageRegion * | doIntersection (const PtrBlock< const WCRegion * > ®1) |
ImageRegion * | doIntersection (const ImageRegion ®1, const ImageRegion ®2) |
ImageRegion * | doUnion (const WCRegion ®1, const WCRegion ®2) |
Different versions of unioning regions. More... | |
ImageRegion * | doUnion (const PtrBlock< const WCRegion * > ®1) |
ImageRegion * | doUnion (const ImageRegion ®1, const ImageRegion ®2) const |
String | imageRegionToTable (const String &tabName, const ImageRegion &imreg, const String ®Name, Bool asmask=False) |
save region into a table (image, blank table or any other such) More... | |
String | recordToTable (const String &tabName, const RecordInterface &rec, const String ®Name="", Bool asmask=False) |
Record * | tableToRecord (const String &tabName, const String ®name) |
recover region from table More... | |
Vector< String > | namesInTable (const String &tabName) |
names of regions in table More... | |
Bool | removeRegionInTable (const String &tabName, const String ®Name) |
Remove a region from table...refuse is regionname is "". More... | |
Static Public Member Functions | |
static Bool | isPixelRegion (const ImageRegion ®) |
Some little but useful tidbits. More... | |
static Bool | isWorldRegion (const ImageRegion ®) |
static Record * | box (const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Int > &shape, const String &comment="") |
LCBox box. More... | |
static ImageRegion * | wellipse (const Quantity &xc, const Quantity &yc, const Quantity &a, const Quantity &b, const Quantity &pa, const uInt pixelAxis0, const uInt pixelAxis1, const CoordinateSystem &csys, const String &absrel) |
static ImageRegion * | wsphere (const Vector< Quantity > ¢er, const Quantity &radius, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel) |
static ImageRegion * | wellipsoid (const Vector< Quantity > ¢er, const Vector< Quantity > &radii, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel) |
static ImageRegion * | wshell (const Vector< Quantity > ¢er, const Vector< Quantity > &innerRadii, const Vector< Quantity > &outerRadii, const Vector< Int > &pixelaxes, const CoordinateSystem &csys, const String &absrel) |
static ImageRegion * | wmask (const String &command) |
static Record * | readImageFile (String filename, String regionname) |
Reading of a file containing an ImageRegion in the AipsIO format dump. More... | |
static Bool | writeImageFile (const String &file, const String ®ionname, const Record ®ionRecord) |
Writing a file of the AipsIO dump of the record representation of the region. More... | |
Protected Member Functions | |
LogIO * | _getLog () const |
Private Member Functions | |
void | toQuantity (Quantity &out, const String &in) |
Convert a string to Quantity. More... | |
Static Private Member Functions | |
static Table & | getTable (void *ptr, Bool writable) |
Function to return the internal Table object to the RegionHandler. More... | |
Private Attributes | |
LogIO * | itsLog |
std::unique_ptr< CoordinateSystem > | itsCSys |
Table | tab_p |
Definition at line 58 of file RegionManager.h.
casacore::RegionManager::RegionManager | ( | ) |
blank constructor
casacore::RegionManager::RegionManager | ( | const CoordinateSystem & | csys | ) |
|
virtual |
|
inlineprotected |
Definition at line 260 of file RegionManager.h.
References itsLog.
Record* casacore::RegionManager::box | ( | const Vector< Double > & | blc, |
const Vector< Double > & | trc, | ||
const Vector< Double > & | inc, | ||
const String & | absrel, | ||
const Bool | frac, | ||
const String & | comment = "" |
||
) |
LCSlicer box.
|
static |
LCBox box.
ImageRegion* casacore::RegionManager::doComplement | ( | const WCRegion & | reg1 | ) |
Various versions of creating a complement region.
ImageRegion* casacore::RegionManager::doComplement | ( | const PtrBlock< const WCRegion * > & | reg1 | ) |
ImageRegion* casacore::RegionManager::doComplement | ( | const ImageRegion & | reg1 | ) |
ImageRegion* casacore::RegionManager::doConcatenation | ( | const WCRegion & | region, |
const WCBox & | box | ||
) |
Various versions of concatenating a region onto another.
ImageRegion* casacore::RegionManager::doconcatenation | ( | const PtrBlock< const WCRegion * > & | regions, |
const WCBox & | box | ||
) |
ImageRegion* casacore::RegionManager::doConcatenation | ( | const PtrBlock< const ImageRegion * > & | regions, |
const TableRecord & | box | ||
) |
ImageRegion* casacore::RegionManager::doConcatenation | ( | const Record & | regions, |
const TableRecord & | box | ||
) |
ImageRegion* casacore::RegionManager::doDifference | ( | const WCRegion & | reg1, |
const WCRegion & | reg2 | ||
) |
Various versions of handling the difference of regions.
ImageRegion* casacore::RegionManager::doDifference | ( | const PtrBlock< const WCRegion * > & | reg1 | ) |
ImageRegion* casacore::RegionManager::doDifference | ( | const ImageRegion & | reg1, |
const ImageRegion & | reg2 | ||
) |
ImageRegion* casacore::RegionManager::doIntersection | ( | const WCRegion & | reg1, |
const WCRegion & | reg2 | ||
) |
Different versions of intersecting regions.
ImageRegion* casacore::RegionManager::doIntersection | ( | const PtrBlock< const WCRegion * > & | reg1 | ) |
ImageRegion* casacore::RegionManager::doIntersection | ( | const ImageRegion & | reg1, |
const ImageRegion & | reg2 | ||
) |
ImageRegion* casacore::RegionManager::doUnion | ( | const WCRegion & | reg1, |
const WCRegion & | reg2 | ||
) |
Different versions of unioning regions.
ImageRegion* casacore::RegionManager::doUnion | ( | const PtrBlock< const WCRegion * > & | reg1 | ) |
ImageRegion* casacore::RegionManager::doUnion | ( | const ImageRegion & | reg1, |
const ImageRegion & | reg2 | ||
) | const |
const CoordinateSystem& casacore::RegionManager::getcoordsys | ( | ) | const |
Function to return the internal Table object to the RegionHandler.
String casacore::RegionManager::imageRegionToTable | ( | const String & | tabName, |
const ImageRegion & | imreg, | ||
const String & | regName, | ||
Bool | asmask = False |
||
) |
save region into a table (image, blank table or any other such)
|
static |
Some little but useful tidbits.
|
static |
names of regions in table
Reading of a file containing an ImageRegion in the AipsIO format dump.
String casacore::RegionManager::recordToTable | ( | const String & | tabName, |
const RecordInterface & | rec, | ||
const String & | regName = "" , |
||
Bool | asmask = False |
||
) |
Bool casacore::RegionManager::removeRegionInTable | ( | const String & | tabName, |
const String & | regName | ||
) |
Remove a region from table...refuse is regionname is "".
void casacore::RegionManager::setcoordsys | ( | const CoordinateSystem & | csys | ) |
recover region from table
Convert a string to Quantity.
Record* casacore::RegionManager::wbox | ( | const Vector< Quantity > & | blc, |
const Vector< Quantity > & | trc, | ||
const Vector< Int > & | pixelaxes, | ||
const CoordinateSystem & | csys, | ||
const String & | absrel, | ||
const String & | comment | ||
) |
Record* casacore::RegionManager::wbox | ( | const Vector< String > & | blc, |
const Vector< String > & | trc, | ||
const Vector< Int > & | pixelaxes, | ||
const CoordinateSystem & | csys, | ||
const String & | absrel, | ||
const String & | comment | ||
) |
Record* casacore::RegionManager::wbox | ( | const Vector< Quantity > & | blc, |
const Vector< Quantity > & | trc, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel, | ||
const String & | comment | ||
) |
Record* casacore::RegionManager::wbox | ( | const Vector< String > & | blc, |
const Vector< String > & | trc, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel, | ||
const String & | comment | ||
) |
ImageRegion* casacore::RegionManager::wbox | ( | const Vector< Quantity > & | blc, |
const Vector< Quantity > & | trc, | ||
const Vector< Int > & | pixelaxes, | ||
const CoordinateSystem & | csys, | ||
const String & | absrel = "abs" |
||
) |
|
static |
ImageRegion* casacore::RegionManager::wellipse | ( | const Quantity & | xc, |
const Quantity & | yc, | ||
const Quantity & | a, | ||
const Quantity & | b, | ||
const Quantity & | pa, | ||
const uInt | pixelAxis0, | ||
const uInt | pixelAxis1, | ||
const String & | absrel | ||
) | const |
wellipse version without csys...throws an exception if setcoordsys is not run
|
static |
ImageRegion* casacore::RegionManager::wellipsoid | ( | const Vector< Quantity > & | center, |
const Vector< Quantity > & | radii, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel | ||
) | const |
|
static |
ImageRegion* casacore::RegionManager::wpolygon | ( | const Vector< Quantity > & | x, |
const Vector< Quantity > & | y, | ||
const Vector< Int > & | pixelaxes, | ||
const CoordinateSystem & | csys, | ||
const String & | absrel | ||
) |
Wpolygon with coordsys and if pixelaxes[0] is -1 then its assumed to be 0,1,...
ImageRegion* casacore::RegionManager::wpolygon | ( | const Vector< Quantity > & | x, |
const Vector< Quantity > & | y, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel | ||
) |
wpolygon version without csys...throws an exception if setcoordsys is not run
|
static |
Writing a file of the AipsIO dump of the record representation of the region.
|
static |
ImageRegion* casacore::RegionManager::wshell | ( | const Vector< Quantity > & | center, |
const Vector< Quantity > & | innerRadii, | ||
const Vector< Quantity > & | outerRadii, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel | ||
) | const |
|
static |
ImageRegion* casacore::RegionManager::wsphere | ( | const Vector< Quantity > & | center, |
const Quantity & | radius, | ||
const Vector< Int > & | pixelaxes, | ||
const String & | absrel | ||
) | const |
wsphere version without csys...throws an exception if setcoordsys is not run
|
private |
Definition at line 264 of file RegionManager.h.
|
private |
Definition at line 263 of file RegionManager.h.
Referenced by _getLog().
|
private |
Definition at line 269 of file RegionManager.h.