SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::TemporaryFitsImageSource Class Reference

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

#include <TemporaryFitsImageSource.h>

Inheritance diagram for SourceXtractor::TemporaryFitsImageSource:
Collaboration diagram for SourceXtractor::TemporaryFitsImageSource:

Public Member Functions

 TemporaryFitsImageSource (const std::string &pattern, int width, int height, ImageTile::ImageType image_type)
 TemporaryFitsImageSource (int width, int height, ImageTile::ImageType image_type)
virtual ~TemporaryFitsImageSource ()=default
std::string getFullPath () const
std::string getRepr () const override
 Human readable representation of this source.
std::shared_ptr< ImageTilegetImageTile (int x, int y, int width, int height) const override
void saveTile (ImageTile &tile) override
int getWidth () const override
 Returns the width of the image in pixels.
int getHeight () const override
 Returns the height of the image in pixels.
ImageTile::ImageType getType () const override
Public Member Functions inherited from SourceXtractor::ImageSource
 ImageSource ()
virtual ~ImageSource ()=default
virtual const std::map< std::string, MetadataEntry > & getMetadata () const
virtual void setMetadata (const std::string &key, const MetadataEntry &value)
Public Member Functions inherited from std::enable_shared_from_this< ImageSource >
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< FitsImageSourcem_image_source

Detailed Description

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

Definition at line 35 of file TemporaryFitsImageSource.h.

Constructor & Destructor Documentation

◆ TemporaryFitsImageSource() [1/2]

SourceXtractor::TemporaryFitsImageSource::TemporaryFitsImageSource ( const std::string & pattern,
int width,
int height,
ImageTile::ImageType image_type )
inline

Definition at line 37 of file TemporaryFitsImageSource.h.

References m_image_source, and m_temp_file.

◆ TemporaryFitsImageSource() [2/2]

SourceXtractor::TemporaryFitsImageSource::TemporaryFitsImageSource ( int width,
int height,
ImageTile::ImageType image_type )
inline

Definition at line 42 of file TemporaryFitsImageSource.h.

References m_image_source, and m_temp_file.

◆ ~TemporaryFitsImageSource()

virtual SourceXtractor::TemporaryFitsImageSource::~TemporaryFitsImageSource ( )
virtualdefault

Member Function Documentation

◆ getFullPath()

std::string SourceXtractor::TemporaryFitsImageSource::getFullPath ( ) const
inline

Definition at line 49 of file TemporaryFitsImageSource.h.

References m_temp_file.

Referenced by getRepr().

◆ getHeight()

int SourceXtractor::TemporaryFitsImageSource::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 69 of file TemporaryFitsImageSource.h.

References m_image_source.

◆ getImageTile()

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

Implements SourceXtractor::ImageSource.

Definition at line 57 of file TemporaryFitsImageSource.h.

References m_image_source.

◆ getRepr()

std::string SourceXtractor::TemporaryFitsImageSource::getRepr ( ) const
inlineoverridevirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 53 of file TemporaryFitsImageSource.h.

References getFullPath().

Here is the call graph for this function:

◆ getType()

ImageTile::ImageType SourceXtractor::TemporaryFitsImageSource::getType ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 73 of file TemporaryFitsImageSource.h.

References m_image_source.

◆ getWidth()

int SourceXtractor::TemporaryFitsImageSource::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 65 of file TemporaryFitsImageSource.h.

References m_image_source.

◆ saveTile()

void SourceXtractor::TemporaryFitsImageSource::saveTile ( ImageTile & tile)
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 61 of file TemporaryFitsImageSource.h.

References m_image_source.

Member Data Documentation

◆ m_image_source

std::shared_ptr<FitsImageSource> SourceXtractor::TemporaryFitsImageSource::m_image_source
private

◆ m_temp_file

Elements::TempFile SourceXtractor::TemporaryFitsImageSource::m_temp_file
private

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