casa
5.7.0-16
|
Enumerators common to the ComponentsModels module. More...
#include <ComponentType.h>
Public Types | |
enum | Shape { POINT, GAUSSIAN, DISK, LDISK, UNKNOWN_SHAPE, NUMBER_SHAPES } |
The shapes of all the components. More... | |
enum | Polarisation { STOKES, LINEAR, CIRCULAR, UNKNOWN_POLARISATION, NUMBER_POLARISATIONS } |
The ways the Flux polarisation can be represented. More... | |
enum | SpectralShape { CONSTANT_SPECTRUM, SPECTRAL_INDEX, TABULAR_SPECTRUM, UNKNOWN_SPECTRAL_SHAPE, NUMBER_SPECTRAL_SHAPES } |
The different functional forms for the spectral variation. More... | |
Static Public Member Functions | |
static casacore::String | name (ComponentType::Shape shapeEnum) |
Convert the Shape enumerator to a string. More... | |
static ComponentType::Shape | shape (const casacore::String &shapeName) |
Convert a given casacore::String to a Shape enumerator (min match active) More... | |
static casacore::String | name (ComponentType::Polarisation fluxEnum) |
Convert the Polarisation enumerator to a string. More... | |
static ComponentType::Polarisation | polarisation (const casacore::String &polarisationName) |
Convert a given casacore::String to a Polarisation enumerator. More... | |
static casacore::String | name (ComponentType::SpectralShape spectralEnum) |
Convert the SpectralShape enumerator to a string. More... | |
static ComponentType::SpectralShape | spectralShape (const casacore::String &spectralName) |
Convert a given casacore::String to a SpectralShape enumerator. More... | |
Static Private Member Functions | |
static ComponentShape * | construct (ComponentType::Shape shapeEnum) |
Convert the Shape enumerator to a shape object (upcast to the base object). More... | |
static SpectralModel * | construct (ComponentType::SpectralShape spectralEnum) |
Convert the SpectralShape enumerator to a spectral model object (upcast to the base object). More... | |
Friends | |
class | SkyCompRep |
Declare which classes access the private functions which convert enumerators to objects. More... | |
class | ::casac::componentlist |
Enumerators common to the ComponentsModels module.
Public interface
This class contains the type definitions in the ComponentModels module
This class does nothing. It is merely a container for the enumerations used by the ComponentModels module. These enumerations define the standard component types. It also contains:
The first element in the enumerator must be represented by zero and every enumerator must contain as the second last and last elements an UNKNOWN_* and NUMBER_* element.
See the documentation for the ComponentModels classes for examples on the use of these enumerator and functions. For example the ComponentShape class.
Definition at line 92 of file ComponentType.h.
The ways the Flux polarisation can be represented.
Enumerator | |
---|---|
STOKES |
The four casacore::Stokes parameters, ie I,Q,U,V. |
LINEAR |
Linear polarisation feeds ie., XX,XY,YX,YY with zero parrallactic angle. |
CIRCULAR |
Circular polarisation feeds ie., RR, RL, LR, LL. |
UNKNOWN_POLARISATION |
An unknown Component. |
NUMBER_POLARISATIONS |
The number of types in this enumerator. |
Definition at line 116 of file ComponentType.h.
The shapes of all the components.
Definition at line 101 of file ComponentType.h.
The different functional forms for the spectral variation.
Definition at line 129 of file ComponentType.h.
|
staticprivate |
Convert the Shape enumerator to a shape object (upcast to the base object).
Returns a null pointer if the object could not be constructed. This will occur is the enumerator is UNKNOWN_SHAPE or NUMBER_SHAPES or there is insufficient memory. The caller of this function is responsible for deleting the pointer.
|
staticprivate |
Convert the SpectralShape enumerator to a spectral model object (upcast to the base object).
Returns a null pointer if the object could not be constructed. This will occur is the enumerator is UNKNOWN_SPECTRAL_SHAPE or NUMBER_SPECTRAL_SHAPES or there is insufficient memory. The caller of this function is responsible for deleting the pointer.
|
static |
Convert the Shape enumerator to a string.
|
static |
Convert the Polarisation enumerator to a string.
|
static |
Convert the SpectralShape enumerator to a string.
|
static |
Convert a given casacore::String to a Polarisation enumerator.
|
static |
Convert a given casacore::String to a Shape enumerator (min match active)
Referenced by casa::PeakIntensityFluxDensityConverter< T >::setShape().
|
static |
Convert a given casacore::String to a SpectralShape enumerator.
|
friend |
Definition at line 98 of file ComponentType.h.
|
friend |
Declare which classes access the private functions which convert enumerators to objects.
The private construct functions can only be accessed by functions in the friend classes specified below.
Definition at line 97 of file ComponentType.h.