casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::viewer::ImageProperties Class Reference

This class provides a priori image information derived from the image itself. More...

#include <ImageProperties.h>

List of all members.

Public Member Functions

 ImageProperties ()
 ImageProperties (const std::string &)
 ImageProperties (ImageInterface< Float > *)
 ImageProperties (ImageInterface< std::complex< float > > *)
const ImagePropertiesoperator= (const std::string &)
bool hasDirectionAxis () const
const std::string & directionType () const
bool hasSpectralAxis () const
const Vector< Int > & shape () const
Vector< double > raRange () const
std::vector< std::string > raRangeAsStr () const
Vector< double > decRange () const
std::vector< std::string > decRangeAsStr () const
size_t nBeams () const
std::vector< std::vector
< double > > 
restoringBeams () const
std::vector< double > restoringBeam (size_t channel) const
std::vector< std::string > restoringBeamAsStr (size_t channel) const
std::vector< double > medianRestoringBeam () const
std::vector< std::string > medianRestoringBeamAsStr () const
Vector< double > freqRange (const std::string &units="") const
const std::string & freqUnits () const
Vector< double > veloRange (const std::string &units="") const
const std::string & veloUnits () const
const std::string & path () const
bool ok () const
int spectralAxisNumber () const
 export required CoordinateSystem functions instead of returning a CoordinateSystem reference...

Private Member Functions

std::vector< double > beam_as_vector (const GaussianBeam &beam) const
std::vector< std::string > beam_as_string_vector (const GaussianBeam &beam) const
void clear_state ()
void initialize_state (ImageInterface< Float > *image)
void reset (ImageInterface< Float > *image)
void reset (const std::string &path="")

Private Attributes

bool status_ok
std::string path_
Vector< Intshape_
bool has_direction_axis
std::string direction_type
bool has_spectral_axis
Vector< double > freq_range
std::string freq_units
Vector< double > velo_range
std::string velo_units
Vector< double > ra_range
std::vector< std::string > ra_range_str
Vector< double > dec_range
std::vector< std::string > dec_range_str
std::vector< GaussianBeamrestoring_beams
CoordinateSystem cs_

Detailed Description

This class provides a priori image information derived from the image itself.

It was created to standardize the access to image properties, since this information is needed in a variety of places and is currently found in a variety of manners. The idea was that it would provide easy, standardized (e.g. velocity provided in km/s) access. There are still likely issues to iron out with expericence from new images.

It may be desirable to have 2nd order image information, e.g. which axes map to the x, y and z viewer display axes (or perhaps not), but if so, this information should be provided by a derived class.

Definition at line 49 of file ImageProperties.h.


Constructor & Destructor Documentation


Member Function Documentation

std::vector<std::string> casa::viewer::ImageProperties::beam_as_string_vector ( const GaussianBeam beam) const [private]

Referenced by restoringBeamAsStr().

std::vector<double> casa::viewer::ImageProperties::beam_as_vector ( const GaussianBeam beam) const [private]

Referenced by restoringBeam().

Vector<double> casa::viewer::ImageProperties::decRange ( ) const [inline]

Definition at line 64 of file ImageProperties.h.

References dec_range.

std::vector<std::string> casa::viewer::ImageProperties::decRangeAsStr ( ) const [inline]

Definition at line 65 of file ImageProperties.h.

References dec_range_str.

const std::string& casa::viewer::ImageProperties::directionType ( ) const [inline]

Definition at line 59 of file ImageProperties.h.

References direction_type.

Vector<double> casa::viewer::ImageProperties::freqRange ( const std::string &  units = "") const
const std::string& casa::viewer::ImageProperties::freqUnits ( ) const [inline]

Definition at line 75 of file ImageProperties.h.

References freq_units.

Definition at line 58 of file ImageProperties.h.

References has_direction_axis.

Definition at line 60 of file ImageProperties.h.

References has_spectral_axis.

std::vector<std::string> casa::viewer::ImageProperties::medianRestoringBeamAsStr ( ) const
size_t casa::viewer::ImageProperties::nBeams ( ) const [inline]

Definition at line 66 of file ImageProperties.h.

References restoring_beams.

bool casa::viewer::ImageProperties::ok ( ) const [inline]

Definition at line 79 of file ImageProperties.h.

References status_ok.

const ImageProperties& casa::viewer::ImageProperties::operator= ( const std::string &  )
const std::string& casa::viewer::ImageProperties::path ( ) const [inline]

Definition at line 78 of file ImageProperties.h.

References path_.

Vector<double> casa::viewer::ImageProperties::raRange ( ) const [inline]

Definition at line 62 of file ImageProperties.h.

References ra_range.

std::vector<std::string> casa::viewer::ImageProperties::raRangeAsStr ( ) const [inline]

Definition at line 63 of file ImageProperties.h.

References ra_range_str.

void casa::viewer::ImageProperties::reset ( const std::string &  path = "") [private]
std::vector<double> casa::viewer::ImageProperties::restoringBeam ( size_t  channel) const [inline]

Definition at line 68 of file ImageProperties.h.

References beam_as_vector(), and restoring_beams.

std::vector<std::string> casa::viewer::ImageProperties::restoringBeamAsStr ( size_t  channel) const [inline]

Definition at line 70 of file ImageProperties.h.

References beam_as_string_vector(), and restoring_beams.

std::vector<std::vector<double> > casa::viewer::ImageProperties::restoringBeams ( ) const
const Vector<Int>& casa::viewer::ImageProperties::shape ( ) const [inline]

Definition at line 61 of file ImageProperties.h.

References shape_.

export required CoordinateSystem functions instead of returning a CoordinateSystem reference...

Definition at line 82 of file ImageProperties.h.

References cs_, and casa::CoordinateSystem::spectralAxisNumber().

Vector<double> casa::viewer::ImageProperties::veloRange ( const std::string &  units = "") const
const std::string& casa::viewer::ImageProperties::veloUnits ( ) const [inline]

Definition at line 77 of file ImageProperties.h.

References velo_units.


Member Data Documentation

Definition at line 106 of file ImageProperties.h.

Referenced by spectralAxisNumber().

Definition at line 103 of file ImageProperties.h.

Referenced by decRange().

std::vector<std::string> casa::viewer::ImageProperties::dec_range_str [private]

Definition at line 104 of file ImageProperties.h.

Referenced by decRangeAsStr().

Definition at line 95 of file ImageProperties.h.

Referenced by directionType().

Definition at line 97 of file ImageProperties.h.

Definition at line 98 of file ImageProperties.h.

Referenced by freqUnits().

Definition at line 94 of file ImageProperties.h.

Referenced by hasDirectionAxis().

Definition at line 96 of file ImageProperties.h.

Referenced by hasSpectralAxis().

std::string casa::viewer::ImageProperties::path_ [private]

Definition at line 92 of file ImageProperties.h.

Referenced by path().

Definition at line 101 of file ImageProperties.h.

Referenced by raRange().

std::vector<std::string> casa::viewer::ImageProperties::ra_range_str [private]

Definition at line 102 of file ImageProperties.h.

Referenced by raRangeAsStr().

Definition at line 105 of file ImageProperties.h.

Referenced by nBeams(), restoringBeam(), and restoringBeamAsStr().

Definition at line 93 of file ImageProperties.h.

Referenced by shape().

Definition at line 91 of file ImageProperties.h.

Referenced by ok().

Definition at line 99 of file ImageProperties.h.

Definition at line 100 of file ImageProperties.h.

Referenced by veloUnits().


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