SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SourceXtractor::TemporaryFitsImageSource Class Reference

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

#include <TemporaryFitsImageSource.h>

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

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.

◆ TemporaryFitsImageSource() [2/2]

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

Definition at line 42 of file TemporaryFitsImageSource.h.

◆ ~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, and Elements::TempPath::path().

Referenced by getRepr().

Here is the call graph for this function:

◆ 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, x, and y.

◆ 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

Definition at line 79 of file TemporaryFitsImageSource.h.

Referenced by getHeight(), getImageTile(), getType(), getWidth(), and saveTile().

◆ m_temp_file

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

Definition at line 78 of file TemporaryFitsImageSource.h.

Referenced by getFullPath().


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