SourceXtractorPlusPlus  0.13
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::TemporaryFitsImageSource Class Reference

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

#include <TemporaryFitsImageSource.h>

Inheritance diagram for SourceXtractor::TemporaryFitsImageSource:
[legend]
Collaboration diagram for SourceXtractor::TemporaryFitsImageSource:
[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
 
virtual std::string getRepr () const override
 Human readable representation of this source. More...
 
virtual std::shared_ptr
< ImageTile
getImageTile (int x, int y, int width, int height) const override
 
virtual void saveTile (ImageTile &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...
 
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 (std::string key, 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

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

Definition at line 37 of file TemporaryFitsImageSource.h.

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

Definition at line 42 of file TemporaryFitsImageSource.h.

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

Member Function Documentation

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:

virtual 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.

virtual 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.

virtual 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:

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

Implements SourceXtractor::ImageSource.

Definition at line 73 of file TemporaryFitsImageSource.h.

References m_image_source.

virtual 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.

virtual 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

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().

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: