SourceXtractorPlusPlus  0.10
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::TemporaryFitsImageSource< T > Class Template Reference

FitsTemporaryImageSource wraps FitsImageSource, generating the filename and acquiring its ownership. More...

#include <TemporaryFitsImageSource.h>

Inheritance diagram for SourceXtractor::TemporaryFitsImageSource< T >:
[legend]
Collaboration diagram for SourceXtractor::TemporaryFitsImageSource< T >:
[legend]

Public Member Functions

 TemporaryFitsImageSource (const std::string &pattern, int width, int height)
 
 TemporaryFitsImageSource (int width, int height)
 
virtual ~TemporaryFitsImageSource ()=default
 
std::string getFullPath () const
 
virtual std::string getRepr () const override
 Human readable representation of this source. More...
 
virtual std::shared_ptr< ImageTile< T > > getImageTile (int x, int y, int width, int height) const override
 
virtual void saveTile (ImageTile< T > &tile) override
 
virtual int getWidth () const override
 Returns the width of the image in pixels. More...
 
virtual int getHeight () const override
 Returns the height of the image in pixels. More...
 
- Public Member Functions inherited from SourceXtractor::ImageSource< T >
 ImageSource ()
 
virtual ~ImageSource ()=default
 
- Public Member Functions inherited from SourceXtractor::ImageSourceBase
virtual ~ImageSourceBase ()=default
 
- Public Member Functions inherited from std::enable_shared_from_this< ImageSource< T > >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Private Attributes

Elements::TempFile m_temp_file
 
std::shared_ptr< FitsImageSource< T > > m_image_source
 

Detailed Description

template<typename T>
class SourceXtractor::TemporaryFitsImageSource< T >

FitsTemporaryImageSource wraps FitsImageSource, generating the filename and acquiring its ownership.

Definition at line 36 of file TemporaryFitsImageSource.h.

Constructor & Destructor Documentation

◆ TemporaryFitsImageSource() [1/2]

template<typename T >
SourceXtractor::TemporaryFitsImageSource< T >::TemporaryFitsImageSource ( const std::string pattern,
int  width,
int  height 
)
inline

Definition at line 38 of file TemporaryFitsImageSource.h.

◆ TemporaryFitsImageSource() [2/2]

template<typename T >
SourceXtractor::TemporaryFitsImageSource< T >::TemporaryFitsImageSource ( int  width,
int  height 
)
inline

Definition at line 43 of file TemporaryFitsImageSource.h.

◆ ~TemporaryFitsImageSource()

template<typename T >
virtual SourceXtractor::TemporaryFitsImageSource< T >::~TemporaryFitsImageSource ( )
virtualdefault

Member Function Documentation

◆ getFullPath()

template<typename T >
std::string SourceXtractor::TemporaryFitsImageSource< T >::getFullPath ( ) const
inline

Definition at line 50 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::m_temp_file, and Elements::TempPath::path().

Referenced by SourceXtractor::TemporaryFitsImageSource< T >::getRepr().

Here is the call graph for this function:

◆ getHeight()

template<typename T >
virtual int SourceXtractor::TemporaryFitsImageSource< T >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 70 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::m_image_source.

◆ getImageTile()

template<typename T >
virtual std::shared_ptr<ImageTile<T> > SourceXtractor::TemporaryFitsImageSource< T >::getImageTile ( int  x,
int  y,
int  width,
int  height 
) const
inlineoverridevirtual

◆ getRepr()

template<typename T >
virtual std::string SourceXtractor::TemporaryFitsImageSource< T >::getRepr ( ) const
inlineoverridevirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSourceBase.

Definition at line 54 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::getFullPath().

Here is the call graph for this function:

◆ getWidth()

template<typename T >
virtual int SourceXtractor::TemporaryFitsImageSource< T >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 66 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::m_image_source.

◆ saveTile()

template<typename T >
virtual void SourceXtractor::TemporaryFitsImageSource< T >::saveTile ( ImageTile< T > &  tile)
inlineoverridevirtual

Member Data Documentation

◆ m_image_source

template<typename T >
std::shared_ptr<FitsImageSource<T> > SourceXtractor::TemporaryFitsImageSource< T >::m_image_source
private

◆ m_temp_file

template<typename T >
Elements::TempFile SourceXtractor::TemporaryFitsImageSource< T >::m_temp_file
private

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