28 #ifndef IMAGES_REGIONHANDLER_H 29 #define IMAGES_REGIONHANDLER_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/BasicSL/String.h> 44 template<
class T>
class Vector;
177 uInt startNumber=1)
const;
A 1-D Specialization of the Array class.
virtual void setObjectPtr(void *objectPtr)
Set the object pointer (for RegionHandlerTable's callback).
virtual Bool canDefineRegion() const
Can the class indeed define and handle regions? The default implementation returns False...
A non-templated, abstract base class for array-like objects.
virtual Vector< String > regionNames(RegionHandler::GroupType=Any) const
Get the names of all regions/masks.
String makeUniqueRegionName(const String &rootName, uInt startNumber=1) const
Make a unique region name from the given root name, thus make it such that the name is not already in...
Base class for handling regions in images.
virtual Bool removeRegion(const String &name, RegionHandler::GroupType=Any, Bool throwIfUnknown=True)
Remove a region belonging to the table.
virtual void setDefaultMask(const String &maskName)
Set the default mask to the mask with the given name.
virtual RegionHandler * clone() const
Make a copy of the object.
virtual ImageRegion makeMask(const LatticeBase &lattice, const String &name)
Make a mask for a lattice (e.g.
bool Bool
Define the standard types used by Casacore.
virtual Bool renameRegion(const String &newName, const String &oldName, RegionHandler::GroupType=Any, Bool overwrite=False)
Rename a region.
Class to hold a region of interest in an image.
virtual String getDefaultMask() const
Get the name of the default mask.
virtual Bool defineRegion(const String &name, const ImageRegion ®ion, RegionHandler::GroupType, Bool overwrite=False)
Define a region belonging to the table.
String: the storage and methods of handling collections of characters.
virtual ImageRegion * getRegion(const String &name, RegionHandler::GroupType=Any, Bool throwIfUnknown=True) const
Get a region belonging to the table.
virtual Bool hasRegion(const String &name, RegionHandler::GroupType=RegionHandler::Any) const
Does the table have a region with the given name?
this file contains all the compiler specific defines
GroupType
Define the possible group types (regions or masks).