17 #ifndef REGIONS_ANNREGION_H
18 #define REGIONS_ANNREGION_H
72 virtual std::shared_ptr<const casacore::WCRegion>
getRegion2()
const;
A Vector of integers, for indexing into Array<T> objects.
std::vector< casacore::Double > _spectralPixelRange
A 1-D Specialization of the Array class.
Base class for annotations.
void setDifference(const casacore::Bool difference)
casacore::Bool _constructing
AnnRegion(const Type shape, const casacore::String &dirRefFrameString, const casacore::CoordinateSystem &csys, const casacore::IPosition &imShape, const casacore::Quantity &beginFreq, const casacore::Quantity &endFreq, const casacore::String &freqRefFrame, const casacore::String &dopplerString, const casacore::Quantity &restfreq, const casacore::Vector< casacore::Stokes::StokesTypes > stokes, const casacore::Bool annotationOnly, casacore::Bool requireImageRegion=true)
only to be called by subclasses
This class represents a annotation referring to a region specified in an ascii region file as propose...
void setAnnotationOnly(const casacore::Bool isAnnotationOnly)
casacore::WCBox _makeExtensionBox(const casacore::Vector< casacore::Quantity > &freqRange, const casacore::Vector< casacore::Stokes::StokesTypes > &stokesRange, const casacore::IPosition &pixelAxes) const
casacore::IPosition _imShape
virtual void _printPrefix(std::ostream &os) const
casacore::Quantity _lengthToAngle(const casacore::Quantity &quantity, const casacore::uInt pixelAxis) const
convert a length in pixels to an angle.
virtual casacore::Bool isRegion() const
returns true unless overridden.
casacore::ImageRegion _imageRegion
casacore::Bool _requireImageRegion
std::vector< casacore::Double > getSpectralPixelRange() const
get the pixel range included in the spectral selection.
casacore::Bool _isDifference
casacore::Bool setFrequencyLimits(const casacore::Quantity &beginFreq, const casacore::Quantity &endFreq, const casacore::String &freqRefFrame, const casacore::String &dopplerString, const casacore::Quantity &restfreq)
if freqRefFrame=="" -> use the reference frame of the coordinate system if dopplerString=="" -> use t...
virtual casacore::CountedPtr< const casacore::WCRegion > getRegion() const
this version is deprecated, use the version that returns std::shared_ptr instead
virtual std::shared_ptr< const casacore::WCRegion > getRegion2() const
Referenced counted pointer for constant data.
casacore::Bool _isAnnotationOnly
casacore::Bool isAnnotationOnly() const
is this region an annotation only? ie just for graphical rendering?
virtual casacore::TableRecord asRecord() const
Just need a identifable expection class, compiler can generate implementation implicitly.
virtual casacore::ImageRegion asImageRegion() const
AnnRegion & operator=(const AnnRegion &rhs)
assignment operator
casacore::Bool hasImageRegion() const
check if image region has a region
bool Bool
Define the standard types used by Casacore.
ToLCRegionConversionError(casacore::String msg)
casacore::Bool _hasDirectionRegion()
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
A hierarchical collection of named fields of various types.
Class to hold a region of interest in an image.
Base class for all Casacore library errors.
casacore::Bool operator==(const AnnRegion &other) const
String: the storage and methods of handling collections of characters.
casacore::Bool isDifference() const
Class to define a world coordinate box region of interest in an image.
void _setDirectionRegion(const casacore::ImageRegion ®ion)
subclasses must call this at construction to set their base region defined in the direction plane ...
Interconvert pixel and world coordinates.
casacore::ImageRegion _directionRegion
static const casacore::String _class
void _toRecord(const casacore::ImageRegion ®ion)
void _extend()
extend the direction plane region over spectral and/or polarization coordinates
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.