casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
casa::DisplayCoordinateSystem Class Reference

#include <DisplayCoordinateSystem.h>

Public Member Functions

 DisplayCoordinateSystem ()
 
 DisplayCoordinateSystem (const DisplayCoordinateSystem &o)
 
 DisplayCoordinateSystem (const casacore::CoordinateSystem &c)
 
virtual ~DisplayCoordinateSystem ()
 
 operator const casacore::CoordinateSystem & () const
 
const DisplayCoordinateSystemoperator= (const DisplayCoordinateSystem &o)
 
const DisplayCoordinateSystemoperator= (const casacore::CoordinateSystem &o)
 
casacore::String showType (casacore::uInt whichCoordinate) const
 
casacore::uInt nCoordinates () const
 
unsigned int nPixelAxes () const
 
unsigned int nWorldAxes () const
 
bool isDirectionAbscissaLongitude () const
 is the first direction axis RA or Dec... More...
 
casacore::ObsInfo obsInfo () const
 
void setObsInfo (const casacore::ObsInfo &obsinfo)
 
casacore::Vector
< casacore::String
worldAxisUnits () const
 
casacore::Vector
< casacore::String
worldAxisNames () const
 
bool setWorldAxisUnits (const casacore::Vector< casacore::String > &units)
 
bool setWorldAxisNames (const casacore::Vector< casacore::String > &names)
 
casacore::Vector< int > worldAxes (casacore::uInt whichCoord) const
 
casacore::Vector< int > pixelAxes (casacore::uInt whichCoord) const
 
casacore::Vector< double > worldMixMin () const
 
casacore::Vector< double > worldMixMax () const
 
bool setWorldMixRanges (const casacore::IPosition &shape)
 
bool near (const casacore::Coordinate &other, casacore::Double tol=1e-6) const
 
bool near (const casacore::Coordinate &other, const casacore::Vector< casacore::Int > &excludePixelAxes, casacore::Double tol=1e-6) const
 
void makePixelRelative (casacore::Vector< double > &pixel) const
 
void makePixelAbsolute (casacore::Vector< double > &pixel) const
 
void makeWorldAbsolute (casacore::Vector< double > &world) const
 
void makeWorldRelative (casacore::Vector< double > &world) const
 
casacore::Vector< double > referencePixel () const
 
bool setReferencePixel (const casacore::Vector< double > &refPix)
 
casacore::Vector< double > referenceValue () const
 
bool setReferenceValue (const casacore::Vector< double > &refval)
 
bool setIncrement (const casacore::Vector< double > &inc)
 
casacore::Coordinate::Type type (unsigned int whichCoordinate) const
 
bool hasDirectionCoordinate () const
 
const
casacore::DirectionCoordinate
directionCoordinate (int which=-1) const
 
casacore::Vector< int > directionAxesNumbers () const
 
bool hasSpectralAxis () const
 
const
casacore::SpectralCoordinate
spectralCoordinate (int which=-1) const
 
int spectralAxisNumber (bool doWorld=false) const
 
const casacore::LinearCoordinatelinearCoordinate (unsigned int which) const
 
bool hasPolarizationCoordinate () const
 
casacore::Int polarizationAxisNumber (casacore::Bool doWorld=false) const
 
const casacore::StokesCoordinatestokesCoordinate (int which=-1) const
 
const casacore::TabularCoordinatetabularCoordinate (unsigned int which) const
 
const casacore::QualityCoordinatequalityCoordinate (unsigned int which) const
 
int qualityAxisNumber () const
 
int worldAxisToPixelAxis (unsigned int worldAxis) const
 
int pixelAxisToWorldAxis (unsigned int pixelAxis) const
 
void findWorldAxis (int &coordinate, int &axisInCoordinate, unsigned int axisInCoordinateSystem) const
 
void findPixelAxis (int &coordinate, int &axisInCoordinate, unsigned int axisInCoordinateSystem) const
 
const casacore::Coordinatecoordinate (unsigned int which) const
 
int findCoordinate (casacore::Coordinate::Type type, int afterCoord=-1) const
 
bool replaceCoordinate (const casacore::Coordinate &newCoordinate, unsigned int whichCoordinate)
 
void addCoordinate (const casacore::Coordinate &coord)
 
bool removeWorldAxis (unsigned int axis, double replacement)
 
bool removePixelAxis (unsigned int axis, double replacement)
 
void transpose (const casacore::Vector< int > &newWorldOrder, const casacore::Vector< int > &newPixelOrder)
 
casacore::String format (casacore::String &units, casacore::Coordinate::formatType format, double worldValue, unsigned int worldAxis, bool isAbsolute=true, bool showAsAbsolute=true, int precision=-1, bool usePrecForMixed=false) const
 
const casacore::StringerrorMessage () const
 coordinate mapping... More...
 
bool toWorld (casacore::Vector< double > &world, const casacore::Vector< double > &pixel) const
 
bool toPixel (casacore::Vector< double > &pixel, const casacore::Vector< double > &world) const
 
bool toMix (casacore::Vector< double > &worldOut, casacore::Vector< double > &pixelOut, const casacore::Vector< double > &worldIn, const casacore::Vector< double > &pixelIn, const casacore::Vector< bool > &worldAxes, const casacore::Vector< bool > &pixelAxes, const casacore::Vector< double > &worldMin, const casacore::Vector< double > &worldMax) const
 
void subImageInSitu (const casacore::Vector< float > &originShift, const casacore::Vector< float > &incrFac, const casacore::Vector< int > &newShape)
 
casacore::Vector< double > increment () const
 
bool save (casacore::RecordInterface &container, const casacore::String &fieldName) const
 
bool setRestFrequency (casacore::String &errorMsg, const casacore::String &unit, const casacore::Double &value)
 casacore::CoordinateUtil wrappers... More...
 
bool setSpectralState (casacore::String &errorMsg, const casacore::String &unit, const casacore::String &spcquant)
 
bool setSpectralConversion (casacore::String &errorMsg, const casacore::String frequencySystem)
 
bool setSpectralFormatting (casacore::String &errorMsg, const casacore::String &unit, const casacore::String &spcquant)
 
bool setDirectionUnit (const string &unit, casacore::Int which=-1)
 
void setNiceAxisLabelUnits ()
 
bool setVelocityState (casacore::String &errorMsg, const casacore::String &unit, const casacore::String &spcquant)
 
bool removePixelAxes (casacore::Vector< casacore::Double > &pixelReplacement, const casacore::Vector< casacore::Int > &pixelAxes, const casacore::Bool remove)
 
bool removeAxes (casacore::Vector< double > &worldReplacement, const casacore::Vector< int > &worldAxes, bool remove)
 
void worldWidthsToPixel (casacore::LogIO &, casacore::Vector< double > &dParameters, const casacore::Vector< casacore::Quantum< casacore::Double > > &parameters, const casacore::IPosition &pixelAxes, bool doRef=false) const
 from ImageUtilities... More...
 
void match (const DisplayCoordinateSystem &other)
 adjust this coordinate system to match the 'other' coordinate system More...
 
casacore::Vector< int > transposeShape (const casacore::Vector< int > &original_shape, bool world=true)
 

Static Public Member Functions

static DisplayCoordinateSystem restore (const casacore::RecordInterface &container, const casacore::String &fieldName)
 

Private Types

typedef std::vector< std::pair
< casacore::Vector< int >
, casacore::Vector< int > > > 
transposition_log_t
 

Private Attributes

casacore::CoordinateSystem cs_
 
transposition_log_t transposition_log
 

Detailed Description

Definition at line 38 of file DisplayCoordinateSystem.h.

Member Typedef Documentation

typedef std::vector<std::pair<casacore::Vector<int>,casacore::Vector<int> > > casa::DisplayCoordinateSystem::transposition_log_t
private

Definition at line 230 of file DisplayCoordinateSystem.h.

Constructor & Destructor Documentation

casa::DisplayCoordinateSystem::DisplayCoordinateSystem ( )
inline

Definition at line 41 of file DisplayCoordinateSystem.h.

casa::DisplayCoordinateSystem::DisplayCoordinateSystem ( const DisplayCoordinateSystem o)
inline

Definition at line 42 of file DisplayCoordinateSystem.h.

casa::DisplayCoordinateSystem::DisplayCoordinateSystem ( const casacore::CoordinateSystem c)
inline

Definition at line 44 of file DisplayCoordinateSystem.h.

virtual casa::DisplayCoordinateSystem::~DisplayCoordinateSystem ( )
virtual

Member Function Documentation

void casa::DisplayCoordinateSystem::addCoordinate ( const casacore::Coordinate coord)
inline

Definition at line 159 of file DisplayCoordinateSystem.h.

References casacore::CoordinateSystem::addCoordinate(), and cs_.

const casacore::Coordinate& casa::DisplayCoordinateSystem::coordinate ( unsigned int  which) const
inline

Definition at line 152 of file DisplayCoordinateSystem.h.

References casacore::CoordinateSystem::coordinate(), and cs_.

casacore::Vector<int> casa::DisplayCoordinateSystem::directionAxesNumbers ( ) const
const casacore::DirectionCoordinate& casa::DisplayCoordinateSystem::directionCoordinate ( int  which = -1) const
inline
const casacore::String& casa::DisplayCoordinateSystem::errorMessage ( ) const
inline

coordinate mapping...

Definition at line 171 of file DisplayCoordinateSystem.h.

References cs_, and casacore::Coordinate::errorMessage().

int casa::DisplayCoordinateSystem::findCoordinate ( casacore::Coordinate::Type  type,
int  afterCoord = -1 
) const
inline

Definition at line 154 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::findCoordinate().

void casa::DisplayCoordinateSystem::findPixelAxis ( int &  coordinate,
int &  axisInCoordinate,
unsigned int  axisInCoordinateSystem 
) const
inline

Definition at line 149 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::findPixelAxis().

void casa::DisplayCoordinateSystem::findWorldAxis ( int &  coordinate,
int &  axisInCoordinate,
unsigned int  axisInCoordinateSystem 
) const
inline

Definition at line 147 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::findWorldAxis().

casacore::String casa::DisplayCoordinateSystem::format ( casacore::String units,
casacore::Coordinate::formatType  format,
double  worldValue,
unsigned int  worldAxis,
bool  isAbsolute = true,
bool  showAsAbsolute = true,
int  precision = -1,
bool  usePrecForMixed = false 
) const
bool casa::DisplayCoordinateSystem::hasDirectionCoordinate ( ) const
inline
bool casa::DisplayCoordinateSystem::hasPolarizationCoordinate ( ) const
inline
bool casa::DisplayCoordinateSystem::hasSpectralAxis ( ) const
inline
casacore::Vector<double> casa::DisplayCoordinateSystem::increment ( ) const
inline

Definition at line 189 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::increment().

bool casa::DisplayCoordinateSystem::isDirectionAbscissaLongitude ( ) const
inline

is the first direction axis RA or Dec...

Definition at line 68 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::isDirectionAbscissaLongitude().

const casacore::LinearCoordinate& casa::DisplayCoordinateSystem::linearCoordinate ( unsigned int  which) const
inline
void casa::DisplayCoordinateSystem::makePixelAbsolute ( casacore::Vector< double > &  pixel) const
void casa::DisplayCoordinateSystem::makePixelRelative ( casacore::Vector< double > &  pixel) const
void casa::DisplayCoordinateSystem::makeWorldAbsolute ( casacore::Vector< double > &  world) const
void casa::DisplayCoordinateSystem::makeWorldRelative ( casacore::Vector< double > &  world) const
void casa::DisplayCoordinateSystem::match ( const DisplayCoordinateSystem other)

adjust this coordinate system to match the 'other' coordinate system

casacore::uInt casa::DisplayCoordinateSystem::nCoordinates ( ) const
inline

Definition at line 63 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::nCoordinates().

bool casa::DisplayCoordinateSystem::near ( const casacore::Coordinate other,
casacore::Double  tol = 1e-6 
) const
inline

Definition at line 90 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::near().

bool casa::DisplayCoordinateSystem::near ( const casacore::Coordinate other,
const casacore::Vector< casacore::Int > &  excludePixelAxes,
casacore::Double  tol = 1e-6 
) const
inline

Definition at line 92 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::near().

unsigned int casa::DisplayCoordinateSystem::nPixelAxes ( ) const
inline

Definition at line 64 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::nPixelAxes().

unsigned int casa::DisplayCoordinateSystem::nWorldAxes ( ) const
inline

Definition at line 65 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::nWorldAxes().

casacore::ObsInfo casa::DisplayCoordinateSystem::obsInfo ( ) const
inline

Definition at line 71 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::obsInfo().

casa::DisplayCoordinateSystem::operator const casacore::CoordinateSystem & ( ) const
inline

Definition at line 47 of file DisplayCoordinateSystem.h.

References cs_.

const DisplayCoordinateSystem& casa::DisplayCoordinateSystem::operator= ( const DisplayCoordinateSystem o)
inline

Definition at line 49 of file DisplayCoordinateSystem.h.

References cs_, and transposition_log.

const DisplayCoordinateSystem& casa::DisplayCoordinateSystem::operator= ( const casacore::CoordinateSystem o)
inline

Definition at line 54 of file DisplayCoordinateSystem.h.

References cs_, and transposition_log.

casacore::Vector<int> casa::DisplayCoordinateSystem::pixelAxes ( casacore::uInt  whichCoord) const
int casa::DisplayCoordinateSystem::pixelAxisToWorldAxis ( unsigned int  pixelAxis) const
inline
casacore::Int casa::DisplayCoordinateSystem::polarizationAxisNumber ( casacore::Bool  doWorld = false) const
inline
int casa::DisplayCoordinateSystem::qualityAxisNumber ( ) const
inline
const casacore::QualityCoordinate& casa::DisplayCoordinateSystem::qualityCoordinate ( unsigned int  which) const
inline
casacore::Vector<double> casa::DisplayCoordinateSystem::referencePixel ( ) const
inline

Definition at line 100 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::referencePixel().

casacore::Vector<double> casa::DisplayCoordinateSystem::referenceValue ( ) const
inline

Definition at line 104 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::referenceValue().

bool casa::DisplayCoordinateSystem::removeAxes ( casacore::Vector< double > &  worldReplacement,
const casacore::Vector< int > &  worldAxes,
bool  remove 
)
inline

Definition at line 213 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateUtil::removeAxes().

bool casa::DisplayCoordinateSystem::removePixelAxes ( casacore::Vector< casacore::Double > &  pixelReplacement,
const casacore::Vector< casacore::Int > &  pixelAxes,
const casacore::Bool  remove 
)
inline

Definition at line 211 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateUtil::removePixelAxes().

bool casa::DisplayCoordinateSystem::removePixelAxis ( unsigned int  axis,
double  replacement 
)
inline
bool casa::DisplayCoordinateSystem::removeWorldAxis ( unsigned int  axis,
double  replacement 
)
inline
bool casa::DisplayCoordinateSystem::replaceCoordinate ( const casacore::Coordinate newCoordinate,
unsigned int  whichCoordinate 
)
inline
static DisplayCoordinateSystem casa::DisplayCoordinateSystem::restore ( const casacore::RecordInterface container,
const casacore::String fieldName 
)
static
bool casa::DisplayCoordinateSystem::save ( casacore::RecordInterface container,
const casacore::String fieldName 
) const
inline

Definition at line 192 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::save().

bool casa::DisplayCoordinateSystem::setDirectionUnit ( const string &  unit,
casacore::Int  which = -1 
)
inline

Definition at line 205 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateUtil::setDirectionUnit().

bool casa::DisplayCoordinateSystem::setIncrement ( const casacore::Vector< double > &  inc)
inline

Definition at line 108 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::setIncrement().

void casa::DisplayCoordinateSystem::setNiceAxisLabelUnits ( )
inline
void casa::DisplayCoordinateSystem::setObsInfo ( const casacore::ObsInfo obsinfo)
inline

Definition at line 73 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::setObsInfo().

bool casa::DisplayCoordinateSystem::setReferencePixel ( const casacore::Vector< double > &  refPix)
inline
bool casa::DisplayCoordinateSystem::setReferenceValue ( const casacore::Vector< double > &  refval)
inline
bool casa::DisplayCoordinateSystem::setRestFrequency ( casacore::String errorMsg,
const casacore::String unit,
const casacore::Double value 
)
inline
bool casa::DisplayCoordinateSystem::setSpectralConversion ( casacore::String errorMsg,
const casacore::String  frequencySystem 
)
inline
bool casa::DisplayCoordinateSystem::setSpectralFormatting ( casacore::String errorMsg,
const casacore::String unit,
const casacore::String spcquant 
)
inline
bool casa::DisplayCoordinateSystem::setSpectralState ( casacore::String errorMsg,
const casacore::String unit,
const casacore::String spcquant 
)
inline

Definition at line 199 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateUtil::setSpectralState().

bool casa::DisplayCoordinateSystem::setVelocityState ( casacore::String errorMsg,
const casacore::String unit,
const casacore::String spcquant 
)
inline

Definition at line 209 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateUtil::setVelocityState().

bool casa::DisplayCoordinateSystem::setWorldAxisNames ( const casacore::Vector< casacore::String > &  names)
bool casa::DisplayCoordinateSystem::setWorldAxisUnits ( const casacore::Vector< casacore::String > &  units)
bool casa::DisplayCoordinateSystem::setWorldMixRanges ( const casacore::IPosition shape)
inline
casacore::String casa::DisplayCoordinateSystem::showType ( casacore::uInt  whichCoordinate) const
inline

Definition at line 60 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::showType().

int casa::DisplayCoordinateSystem::spectralAxisNumber ( bool  doWorld = false) const
inline
const casacore::SpectralCoordinate& casa::DisplayCoordinateSystem::spectralCoordinate ( int  which = -1) const
inline
const casacore::StokesCoordinate& casa::DisplayCoordinateSystem::stokesCoordinate ( int  which = -1) const
inline
void casa::DisplayCoordinateSystem::subImageInSitu ( const casacore::Vector< float > &  originShift,
const casacore::Vector< float > &  incrFac,
const casacore::Vector< int > &  newShape 
)
inline

Definition at line 185 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::subImageInSitu().

const casacore::TabularCoordinate& casa::DisplayCoordinateSystem::tabularCoordinate ( unsigned int  which) const
inline
bool casa::DisplayCoordinateSystem::toMix ( casacore::Vector< double > &  worldOut,
casacore::Vector< double > &  pixelOut,
const casacore::Vector< double > &  worldIn,
const casacore::Vector< double > &  pixelIn,
const casacore::Vector< bool > &  worldAxes,
const casacore::Vector< bool > &  pixelAxes,
const casacore::Vector< double > &  worldMin,
const casacore::Vector< double > &  worldMax 
) const
bool casa::DisplayCoordinateSystem::toPixel ( casacore::Vector< double > &  pixel,
const casacore::Vector< double > &  world 
) const
bool casa::DisplayCoordinateSystem::toWorld ( casacore::Vector< double > &  world,
const casacore::Vector< double > &  pixel 
) const
void casa::DisplayCoordinateSystem::transpose ( const casacore::Vector< int > &  newWorldOrder,
const casacore::Vector< int > &  newPixelOrder 
)
casacore::Vector<int> casa::DisplayCoordinateSystem::transposeShape ( const casacore::Vector< int > &  original_shape,
bool  world = true 
)
casacore::Coordinate::Type casa::DisplayCoordinateSystem::type ( unsigned int  whichCoordinate) const
inline

Definition at line 112 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::type().

casacore::Vector<int> casa::DisplayCoordinateSystem::worldAxes ( casacore::uInt  whichCoord) const
casacore::Vector<casacore::String> casa::DisplayCoordinateSystem::worldAxisNames ( ) const
int casa::DisplayCoordinateSystem::worldAxisToPixelAxis ( unsigned int  worldAxis) const
inline
casacore::Vector<casacore::String> casa::DisplayCoordinateSystem::worldAxisUnits ( ) const
casacore::Vector<double> casa::DisplayCoordinateSystem::worldMixMax ( ) const
inline

Definition at line 85 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::worldMixMax().

casacore::Vector<double> casa::DisplayCoordinateSystem::worldMixMin ( ) const
inline

Definition at line 83 of file DisplayCoordinateSystem.h.

References cs_, and casacore::CoordinateSystem::worldMixMin().

void casa::DisplayCoordinateSystem::worldWidthsToPixel ( casacore::LogIO ,
casacore::Vector< double > &  dParameters,
const casacore::Vector< casacore::Quantum< casacore::Double > > &  parameters,
const casacore::IPosition pixelAxes,
bool  doRef = false 
) const
inline

from ImageUtilities...

Definition at line 219 of file DisplayCoordinateSystem.h.

References cs_, and casa::SkyComponentFactory::worldWidthsToPixel().

Member Data Documentation

casacore::CoordinateSystem casa::DisplayCoordinateSystem::cs_
private
transposition_log_t casa::DisplayCoordinateSystem::transposition_log
private

Definition at line 231 of file DisplayCoordinateSystem.h.

Referenced by operator=().


The documentation for this class was generated from the following file: