29 #ifndef COMPONENTS_POINTSHAPE_H
30 #define COMPONENTS_POINTSHAPE_H
41 class RecordInterface;
43 template <
class T>
class Vector;
A Measure: astronomical direction.
virtual casacore::Bool toRecord(casacore::String &errorMessage, casacore::RecordInterface &record) const
Convert the class to an Record representation.
std::vector< double > Vector
casacore::Double dirIsInPixel(casacore::Double longSize, casacore::Double latSize, casacore::Double nearSize, const casacore::MDirection::MVType &dirValue, const casacore::MDirection::MVType *compDirValue) const
FInd out if a direction is located within a pixel.
virtual void setErrors(const casacore::Vector< casacore::Double > &newParms)
virtual casacore::DComplex visibility(const casacore::Vector< casacore::Double > &uvw, const casacore::Double &frequency) const
Return the Fourier transform of the component at the specified point in the spatial frequency domain...
Shape
The shapes of all the components.
virtual const ComponentShape * getPtr() const
return a pointer to this object.
virtual void setParameters(const casacore::Vector< casacore::Double > &newParms)
PointShape()
The default PointShape is at the J2000 North Pole.
virtual ~PointShape()
The destructor does nothing special.
virtual ComponentType::Shape type() const
Return the type of shape.
Base class for component shapes.
std::complex< Double > DComplex
virtual casacore::Bool fromRecord(casacore::String &errorMessage, const casacore::RecordInterface &record)
This functions convert between a casacore::Record and a PointShape.
PointShape & operator=(const PointShape &other)
The assignment operator uses copy semantics.
virtual casacore::Vector< casacore::Double > parameters() const
virtual casacore::Double sample(const casacore::MDirection &direction, const casacore::MVAngle &pixelLatSize, const casacore::MVAngle &pixelLongSize) const
Calculate the proportion of the flux that is in a pixel of the specified size centered on the specifi...
virtual casacore::Bool convertUnit(casacore::String &, const casacore::RecordInterface &)
Convert the parameters of the component to the specified units.
bool Bool
Define the standard types used by Casacore.
virtual casacore::Vector< casacore::Double > optParameters() const
virtual casacore::uInt nParameters() const
return the number of parameters in this shape and set/get them.
A shape where emission comes from only one direction.
virtual casacore::Bool isSymmetric() const
A point shape is symmetric so this function always returns true;.
virtual void setOptParameters(const casacore::Vector< casacore::Double > &newOptParms)
String: the storage and methods of handling collections of characters.
Vector of three direction cosines.
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for consistent values.
virtual casacore::String sizeToString() const
virtual ComponentShape * clone() const
Return a pointer to a copy of this object upcast to a ComponentShape object.
Abstract base class for Record classes.
virtual casacore::Vector< casacore::Double > errors() const
Class to handle angle type conversions and I/O.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.