29 #ifndef COMPONENTS_SKYCOMPONENT_H
30 #define COMPONENTS_SKYCOMPONENT_H
46 class RecordInterface;
50 template<
class Ms>
class MeasRef;
51 template<
class T>
class Cube;
52 template<
class T>
class Vector;
53 template<
class T>
class Quantum;
61 template<
class T>
class Flux;
306 static std::pair<casacore::String, casacore::String>
_axisLabels(
virtual casacore::String & label()
See the corresponding functions in the SkyCompBase class for a description of these functions...
A Measure: astronomical direction.
casacore::CountedPtr< SkyCompRep > itsCompPtr
casacore::Bool ok() const
See the corresponding functions in the SkyCompBase class for a description of this function...
std::vector< double > Vector
virtual ~SkyComponent()
the destructor does nothing obvious (its all done by the casacore::CountedPtr)
virtual casacore::Vector< casacore::Double > & optionalParameters()
See the corresponding functions in the SkyCompBase class for a description of these functions...
Shape
The shapes of all the components.
SkyComponent copy() const
Return a distinct copy of this component.
Base class for model components of the sky brightness.
casacore::String positionToString(std::shared_ptr< casacore::Vector< casacore::Double >> &pixelCoords, const casacore::DirectionCoordinate *const &dc=nullptr, casacore::Bool longErrOnGreatCircle=false) const
If the dc parameter is specified, also return the corresponding world coordinates, and the pixel coordinates will be returned in the pixelCoords parameter (otherwise it is set to nullptr).
virtual casacore::Bool fromRecord(casacore::String &errorMessage, const casacore::RecordInterface &record)
See the corresponding functions in the SkyCompBase class for a description of these functions...
static std::pair< casacore::String, casacore::String > _axisLabels(const casacore::DirectionCoordinate *const &dc)
Represents a Gaussian restoring beam associated with an image.
StokesTypes
The Stokes types are defined by this enum.
A Measure: wave characteristics.
virtual const SpectralModel & spectrum() const
See the corresponding functions in the SkyCompBase class for a description of these functions...
virtual Flux< casacore::Double > sample(const casacore::MDirection &direction, const casacore::MVAngle &pixelLatSize, const casacore::MVAngle &pixelLongSize, const casacore::MFrequency ¢erFrequency) const
See the corresponding functions in the SkyCompBase class for a description of this function...
Referenced counted pointer for constant data.
Base class for component shapes.
Interconvert pixel positions and directions (e.g. RA/DEC).
virtual void setSpectrum(const SpectralModel &newSpectrum)
SkyComponent & operator=(const SkyComponent &other)
The assignment operator uses reference semantics.
bool Bool
Define the standard types used by Casacore.
Base class for spectral models.
virtual Flux< casacore::Double > & flux()
See the corresponding functions in the SkyCompBase class for a description of these functions...
void fromPixel(casacore::Double &fluxRatio, const casacore::Vector< casacore::Double > ¶meters, const casacore::Unit &brightnessUnitIn, const casacore::GaussianBeam &restoringBeam, const casacore::CoordinateSystem &cSys, ComponentType::Shape componentShape, casacore::Stokes::StokesTypes stokes)
SpectralShape
The different functional forms for the spectral variation.
SkyComponent()
The default SkyComponent is a point source with a constant spectrum.
virtual casacore::String summarize(const casacore::DirectionCoordinate *const &dc=0, casacore::Bool longErrOnGreatCircle=false) const
Get a nicely formatted string summarizing the component.
A component of a model of the sky.
String: the storage and methods of handling collections of characters.
virtual void setShape(const ComponentShape &newShape)
Abstract base class for Record classes.
virtual const ComponentShape & shape() const
See the corresponding functions in the SkyCompBase class for a description of these functions...
virtual casacore::Bool isPhysical() const
See the corresponding function in the SkyCompBase class for a description of this function...
virtual Flux< casacore::Double > visibility(const casacore::Vector< casacore::Double > &uvw, const casacore::Double &frequency) const
See the corresponding function in the SkyCompBase class for a description of this function...
Class to handle angle type conversions and I/O.
virtual casacore::Bool toRecord(casacore::String &errorMessage, casacore::RecordInterface &record) const
Convert the class to an Record representation.
Interconvert pixel and world coordinates.
casacore::Vector< casacore::Double > toPixel(const casacore::Unit &brightnessUnitIn, const casacore::GaussianBeam &restoringBeam, const casacore::CoordinateSystem &cSys, casacore::Stokes::StokesTypes stokes) const
Convert from and to pixel vectors.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.