SourceXtractorPlusPlus  0.11
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SourceXtractor::WCS Class Reference

#include <WCS.h>

Inheritance diagram for SourceXtractor::WCS:
[legend]
Collaboration diagram for SourceXtractor::WCS:
[legend]

Public Member Functions

 WCS (const FitsImageSource< SeFloat > &fits_image_source)
 
virtual ~WCS ()
 
WorldCoordinate imageToWorld (ImageCoordinate image_coordinate) const override
 
ImageCoordinate worldToImage (WorldCoordinate world_coordinate) const override
 
std::map< std::string,
std::string
getFitsHeaders () const override
 
- Public Member Functions inherited from SourceXtractor::CoordinateSystem
virtual ~CoordinateSystem ()=default
 

Private Attributes

std::unique_ptr< wcsprm,
std::function< void(wcsprm *)> > 
m_wcs
 

Detailed Description

Definition at line 37 of file WCS.h.

Constructor & Destructor Documentation

SourceXtractor::WCS::WCS ( const FitsImageSource< SeFloat > &  fits_image_source)
explicit

Definition at line 60 of file WCS.cpp.

References SourceXtractor::FitsImageSource< T >::getFitsHeaders(), m_wcs, SourceXtractor::safe_lincpy, and SourceXtractor::wrapped_lincpy().

Here is the call graph for this function:

SourceXtractor::WCS::~WCS ( )
virtual

Definition at line 79 of file WCS.cpp.

Member Function Documentation

std::map< std::string, std::string > SourceXtractor::WCS::getFitsHeaders ( ) const
overridevirtual

Reimplemented from SourceXtractor::CoordinateSystem.

Definition at line 131 of file WCS.cpp.

References std::map< K, T >::emplace(), std::string::empty(), std::free(), m_wcs, and std::make_pair().

Here is the call graph for this function:

WorldCoordinate SourceXtractor::WCS::imageToWorld ( ImageCoordinate  image_coordinate) const
overridevirtual

Implements SourceXtractor::CoordinateSystem.

Definition at line 82 of file WCS.cpp.

References Elements::Logging::error(), SourceXtractor::logger, m_wcs, SourceXtractor::ImageCoordinate::m_x, SourceXtractor::ImageCoordinate::m_y, and SourceXtractor::safe_lincpy.

Here is the call graph for this function:

ImageCoordinate SourceXtractor::WCS::worldToImage ( WorldCoordinate  world_coordinate) const
overridevirtual

Implements SourceXtractor::CoordinateSystem.

Definition at line 108 of file WCS.cpp.

References Elements::Logging::error(), SourceXtractor::logger, SourceXtractor::WorldCoordinate::m_alpha, SourceXtractor::WorldCoordinate::m_delta, m_wcs, and SourceXtractor::safe_lincpy.

Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<wcsprm, std::function<void(wcsprm*)> > SourceXtractor::WCS::m_wcs
private

Definition at line 48 of file WCS.h.

Referenced by getFitsHeaders(), imageToWorld(), WCS(), and worldToImage().


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