26#ifndef IMAGES_REGIONHANDLERHDF5_H
27#define IMAGES_REGIONHANDLERHDF5_H
30#include <casacore/casa/aips.h>
31#include <casacore/images/Regions/RegionHandler.h>
32#include <casacore/casa/HDF5/HDF5File.h>
33#include <casacore/tables/Tables/TableRecord.h>
88 typedef const std::shared_ptr<HDF5File>&
GetCallback (
void* objectPtr);
177 const std::shared_ptr<HDF5File>&
file()
const
RegionHandlerHDF5(GetCallback *callback, void *objectPtr)
virtual Bool removeRegion(const String &name, RegionHandler::GroupType=Any, Bool throwIfUnknown=True)
Remove a region belonging to the table.
virtual Bool defineRegion(const String &name, const ImageRegion ®ion, RegionHandler::GroupType, Bool overwrite=False)
Define a region belonging to the table.
virtual ImageRegion makeMask(const LatticeBase &lattice, const String &name)
Make a mask for a lattice (e.g.
void save(Bool always=False)
virtual Bool canDefineRegion() const
Can the class indeed define and handle regions? The default implementation returns False.
virtual RegionHandlerHDF5 * clone() const
Make a copy of the object.
virtual Int findRegionGroup(const String ®ionName, RegionHandler::GroupType=Any, Bool throwIfUnknown=True) const
RegionHandlerHDF5 & operator=(const RegionHandlerHDF5 &)
GetCallback * itsCallback
const std::shared_ptr< HDF5File > & file() const
virtual Bool hasRegion(const String &name, RegionHandler::GroupType=RegionHandler::Any) const
Does the table have a region with the given name?
const std::shared_ptr< HDF5File > & GetCallback(void *objectPtr)
virtual String getDefaultMask() const
Get the name of the default mask.
virtual ~RegionHandlerHDF5()
virtual ImageRegion * getRegion(const String &name, RegionHandler::GroupType=Any, Bool throwIfUnknown=True) const
Get a region belonging to the table.
virtual Bool renameRegion(const String &newName, const String &oldName, RegionHandler::GroupType=Any, Bool overwrite=False)
Rename a region.
virtual Vector< String > regionNames(RegionHandler::GroupType=Any) const
Get the names of all regions/masks.
virtual void setDefaultMask(const String &maskName)
Set the default mask to the mask with the given name.
RegionHandlerHDF5(const RegionHandlerHDF5 &)
virtual void setObjectPtr(void *objectPtr)
Set the object pointer (for RegionHandlerTable's callback).
GroupType
Define the possible group types (regions or masks).
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.