Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1ComponentType.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 22:12:32 2011
Кодировка:

Поисковые слова: m 13
casacore: casa::ComponentType Class Reference
Public Types | Static Public Member Functions | Static Private Member Functions | Friends

casa::ComponentType Class Reference
[ComponentModels_module]

Enumerators common to the ComponentsModels module. More...

#include <ComponentType.h>

List of all members.

Public Types

enum  Shape {
  POINT,
  GAUSSIAN,
  DISK,
  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,
  UNKNOWN_SPECTRAL_SHAPE,
  NUMBER_SPECTRAL_SHAPES
}
 

The different functional forms for the spectral variation.

More...

Static Public Member Functions

static String name (ComponentType::Shape shapeEnum)
 Convert the Shape enumerator to a string.
static ComponentType::Shape shape (const String &shapeName)
 Convert a given String to a Shape enumerator (min match active).
static String name (ComponentType::Polarisation fluxEnum)
 Convert the Polarisation enumerator to a string.
static ComponentType::Polarisation polarisation (const String &polarisationName)
 Convert a given String to a Polarisation enumerator.
static String name (ComponentType::SpectralShape spectralEnum)
 Convert the SpectralShape enumerator to a string.
static ComponentType::SpectralShape spectralShape (const String &spectralName)
 Convert a given String to a SpectralShape enumerator.

Static Private Member Functions

static ComponentShapeconstruct (ComponentType::Shape shapeEnum)
 Convert the Shape enumerator to a shape object (upcast to the base object).
static SpectralModelconstruct (ComponentType::SpectralShape spectralEnum)
 Convert the SpectralShape enumerator to a spectral model object (upcast to the base object).

Friends

class SkyCompRep
 Declare which classes access the private functions which convert enumerators to objects.
class ::casac::componentlist

Detailed Description

Enumerators common to the ComponentsModels module.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd
Test programs:
tComponentType

Etymology

This class contains the type definitions in the ComponentModels module

Synopsis

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.

Example

See the documentation for the ComponentModels classes for examples on the use of these enumerator and functions. For example the ComponentShape class.

To Do

Definition at line 83 of file ComponentType.h.


Member Enumeration Documentation

The ways the Flux polarisation can be represented.

Enumerator:
STOKES 

The four 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 105 of file ComponentType.h.

The shapes of all the components.

Enumerator:
POINT 

A simple point component.

GAUSSIAN 

A elliptical Gaussian component.

DISK 

A elliptical disk component.

UNKNOWN_SHAPE 

An unknown Component.

NUMBER_SHAPES 

The number of types in this enumerator.

Definition at line 92 of file ComponentType.h.

The different functional forms for the spectral variation.

Enumerator:
CONSTANT_SPECTRUM 

The flux is constant at different frequencies.

SPECTRAL_INDEX 

The flux varies as I = I_0 * (nu / nu_0)^alpha

UNKNOWN_SPECTRAL_SHAPE 

an unknown spectral type

NUMBER_SPECTRAL_SHAPES 

The number of spectral types in this enumerator.

Definition at line 118 of file ComponentType.h.


Member Function Documentation

static ComponentShape* casa::ComponentType::construct ( ComponentType::Shape  shapeEnum  )  [static, private]

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.

static SpectralModel* casa::ComponentType::construct ( ComponentType::SpectralShape  spectralEnum  )  [static, private]

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 String casa::ComponentType::name ( ComponentType::Polarisation  fluxEnum  )  [static]

Convert the Polarisation enumerator to a string.

static String casa::ComponentType::name ( ComponentType::SpectralShape  spectralEnum  )  [static]

Convert the SpectralShape enumerator to a string.

static String casa::ComponentType::name ( ComponentType::Shape  shapeEnum  )  [static]

Convert the Shape enumerator to a string.

static ComponentType::Polarisation casa::ComponentType::polarisation ( const String polarisationName  )  [static]

Convert a given String to a Polarisation enumerator.

static ComponentType::Shape casa::ComponentType::shape ( const String shapeName  )  [static]

Convert a given String to a Shape enumerator (min match active).

static ComponentType::SpectralShape casa::ComponentType::spectralShape ( const String spectralName  )  [static]

Convert a given String to a SpectralShape enumerator.


Friends And Related Function Documentation

friend class ::casac::componentlist [friend]

Definition at line 89 of file ComponentType.h.

friend class SkyCompRep [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 88 of file ComponentType.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines