casa
5.7.0-16
|
Base class for component shapes. More...
#include <ComponentShape.h>
Public Member Functions | |
virtual | ~ComponentShape () |
virtual ComponentType::Shape | type () const =0 |
virtual const casacore::String & | ident () const |
Specify the identification of the record (e.g. More... | |
void | setRefDirection (const casacore::MDirection &newRefDir) |
const casacore::MDirection & | refDirection () const |
void | setRefDirectionError (const casacore::Quantum< casacore::Double > &newRefDirErrLat, const casacore::Quantum< casacore::Double > &newRefDirErrLong) |
const casacore::Quantum < casacore::Double > & | refDirectionErrorLat () const |
const casacore::Quantum < casacore::Double > & | refDirectionErrorLong () const |
void | copyDirectionInfo (const ComponentShape &that) |
virtual casacore::Double | sample (const casacore::MDirection &direction, const casacore::MVAngle &pixelLatSize, const casacore::MVAngle &pixelLongSize) const =0 |
virtual void | sample (casacore::Vector< casacore::Double > &scale, const casacore::Vector< casacore::MDirection::MVType > &directions, const casacore::MDirection::Ref &refFrame, const casacore::MVAngle &pixelLatSize, const casacore::MVAngle &pixelLongSize) const =0 |
virtual casacore::DComplex | visibility (const casacore::Vector< casacore::Double > &uvw, const casacore::Double &frequency) const =0 |
virtual void | visibility (casacore::Vector< casacore::DComplex > &scale, const casacore::Matrix< casacore::Double > &uvw, const casacore::Double &frequency) const =0 |
virtual void | visibility (casacore::Matrix< casacore::DComplex > &scale, const casacore::Matrix< casacore::Double > &uvw, const casacore::Vector< casacore::Double > &frequency) const =0 |
virtual casacore::Bool | isSymmetric () const =0 |
virtual ComponentShape * | clone () const =0 |
virtual casacore::uInt | nParameters () const =0 |
virtual void | setParameters (const casacore::Vector< casacore::Double > &newParms)=0 |
virtual casacore::Vector < casacore::Double > | parameters () const =0 |
virtual void | setErrors (const casacore::Vector< casacore::Double > &newErrs)=0 |
virtual casacore::Vector < casacore::Double > | errors () const =0 |
virtual casacore::Vector < casacore::Double > | optParameters () const =0 |
virtual void | setOptParameters (const casacore::Vector< casacore::Double > &newOptParms)=0 |
virtual casacore::Bool | fromRecord (casacore::String &errorMessage, const casacore::RecordInterface &record)=0 |
Initialise the class from a Record representation. More... | |
virtual casacore::Bool | toRecord (casacore::String &errorMessage, casacore::RecordInterface &record) const =0 |
Convert the class to an Record representation. More... | |
virtual casacore::Bool | convertUnit (casacore::String &errorMessage, const casacore::RecordInterface &record)=0 |
virtual casacore::Vector < casacore::Double > | toPixel (const casacore::DirectionCoordinate &dirCoord) const |
virtual casacore::Bool | fromPixel (const casacore::Vector< casacore::Double > ¶meters, const casacore::DirectionCoordinate &dirCoord) |
virtual casacore::Bool | ok () const |
virtual const ComponentShape * | getPtr () const =0 |
virtual casacore::String | sizeToString () const =0 |
Public Member Functions inherited from casacore::RecordTransformable | |
virtual | ~RecordTransformable () |
The destructor must be virtual so that the destructor of derived classes is actually used. More... | |
virtual Bool | fromString (String &error, const String &inString) |
Initialise the class from a String representation. More... | |
Static Public Member Functions | |
static ComponentType::Shape | getType (casacore::String &errorMessage, const casacore::RecordInterface &record) |
Protected Member Functions | |
ComponentShape () | |
ComponentShape (const casacore::MDirection &direction) | |
ComponentShape (const ComponentShape &other) | |
ComponentShape & | operator= (const ComponentShape &other) |
Static Protected Member Functions | |
static casacore::Bool | differentRefs (const casacore::MeasRef< casacore::MDirection > &ref1, const casacore::MeasRef< casacore::MDirection > &ref2) |
static casacore::Bool | badError (const casacore::Quantum< casacore::Double > &quantum) |
static casacore::Bool | fromAngQRecord (casacore::Quantum< casacore::Double > &returnValue, casacore::String &errorMessage, const casacore::String &fieldString, const casacore::RecordInterface &record) |
Private Attributes | |
casacore::MDirection | itsDir |
casacore::Quantum < casacore::Double > | itsDirErrLat |
casacore::Quantum < casacore::Double > | itsDirErrLong |
Base class for component shapes.
Public interface
This abstract base class defines the interface for classes which define the shape of a component. The most fundamental derived class is the point shape class but the Gaussian shape, disk shape and
limbdarkeneddisk classes are also available. These classes model the spatial distribution of emission from the sky. Classes derived from the casacore::SpectralModel SpectralModel class are used to model the spectral characteristics and the Flux class is used to model the flux. The
SkyComponent class incorporates these three characteristics (flux, shape & spectrum) and the
ComponentList class handles groups of SkyComponent objects. This base class parameterises shapes with two quantities.
Definition at line 143 of file ComponentShape.h.
|
virtual |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
void casa::ComponentShape::copyDirectionInfo | ( | const ComponentShape & | that | ) |
|
staticprotected |
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
staticprotected |
|
virtual |
Reimplemented in casa::TwoSidedShape.
|
pure virtual |
Initialise the class from a Record representation.
The input record should contain the fields that are required by the class. Other fields will be ignored. If the transformation succeeds then the error String is unchanged and the function returns True. Otherwise the function returns False and appends an error message to the supplied String giving the reason why the conversion failed.
Implements casacore::RecordTransformable.
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
pure virtual |
Implemented in casa::PointShape, casa::DiskShape, casa::GaussianShape, and casa::LimbDarkenedDiskShape.
|
static |
|
virtual |
Specify the identification of the record (e.g.
'meas', 'quant'). The default implementation returns a empty string.
Reimplemented from casacore::RecordTransformable.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
virtual |
Reimplemented in casa::TwoSidedShape, casa::PointShape, casa::DiskShape, casa::GaussianShape, and casa::LimbDarkenedDiskShape.
|
protected |
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
const casacore::MDirection& casa::ComponentShape::refDirection | ( | ) | const |
const casacore::Quantum<casacore::Double>& casa::ComponentShape::refDirectionErrorLat | ( | ) | const |
const casacore::Quantum<casacore::Double>& casa::ComponentShape::refDirectionErrorLong | ( | ) | const |
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, and casa::PointShape.
void casa::ComponentShape::setRefDirection | ( | const casacore::MDirection & | newRefDir | ) |
void casa::ComponentShape::setRefDirectionError | ( | const casacore::Quantum< casacore::Double > & | newRefDirErrLat, |
const casacore::Quantum< casacore::Double > & | newRefDirErrLong | ||
) |
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::PointShape, casa::DiskShape, casa::GaussianShape, and casa::LimbDarkenedDiskShape.
|
virtual |
Reimplemented in casa::TwoSidedShape.
|
pure virtual |
Convert the class to an Record representation.
The input record may already contain fields and these fields may be silently overridden. New fields may be added to the input Record. If the transformation succeeds then the error String is unchanged and the function returns True. Otherwise the function returns False and appends an error message to the supplied String giving the reason why the conversion failed.
Implements casacore::RecordTransformable.
Implemented in casa::TwoSidedShape, and casa::PointShape.
|
pure virtual |
Implemented in casa::GaussianShape, casa::DiskShape, casa::PointShape, casa::TwoSidedShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
pure virtual |
Implemented in casa::TwoSidedShape, casa::DiskShape, casa::GaussianShape, casa::PointShape, and casa::LimbDarkenedDiskShape.
|
private |
Definition at line 341 of file ComponentShape.h.
|
private |
Definition at line 343 of file ComponentShape.h.
|
private |
Definition at line 344 of file ComponentShape.h.