SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::WCS Class Reference

#include <WCS.h>

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

Public Member Functions

 WCS (const FitsImageSource &fits_image_source)
 
 WCS (const WCS &original)
 
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
 
void addOffset (PixelCoordinate pc)
 
- Public Member Functions inherited from SourceXtractor::CoordinateSystem
virtual ~CoordinateSystem ()=default
 

Private Member Functions

void init (char *headers, int number_of_records)
 

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 fits_image_source)
explicit

Definition at line 159 of file WCS.cpp.

References SourceXtractor::FitsImageSource::getFitsHeaders(), and init().

Here is the call graph for this function:

SourceXtractor::WCS::WCS ( const WCS original)
explicit

Definition at line 166 of file WCS.cpp.

References std::free(), std::unique_ptr< T >::get(), init(), and m_wcs.

Here is the call graph for this function:

SourceXtractor::WCS::~WCS ( )
virtual

Definition at line 227 of file WCS.cpp.

Member Function Documentation

void SourceXtractor::WCS::addOffset ( PixelCoordinate  pc)
std::map< std::string, std::string > SourceXtractor::WCS::getFitsHeaders ( ) const
overridevirtual

Reimplemented from SourceXtractor::CoordinateSystem.

Definition at line 270 of file WCS.cpp.

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

Here is the call graph for this function:

WorldCoordinate SourceXtractor::WCS::imageToWorld ( ImageCoordinate  image_coordinate) const
overridevirtual
void SourceXtractor::WCS::init ( char *  headers,
int  number_of_records 
)
private

Definition at line 184 of file WCS.cpp.

References m_wcs, SourceXtractor::safe_wcssub, SourceXtractor::wcsCheckHeaders(), SourceXtractor::wcsRaiseOnParseError(), and SourceXtractor::wrapped_wcssub().

Referenced by WCS().

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 54 of file WCS.h.

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


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