SourceXtractorPlusPlus  0.16
Please provide a description of the project.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::ProcessingImageSource< T > Class Template Referenceabstract

#include <ProcessingImageSource.h>

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

Public Member Functions

 ProcessingImageSource (std::shared_ptr< Image< T >> image)
 
virtual ~ProcessingImageSource ()=default
 
std::shared_ptr< ImageTilegetImageTile (int x, int y, int width, int height) const override
 
void saveTile (ImageTile &) override
 
int getWidth () const override
 Returns the width of the image in pixels. More...
 
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 std::string getRepr () const =0
 Human readable representation of this source. More...
 
virtual const std::map< std::string, MetadataEntrygetMetadata () const
 
virtual void setMetadata (std::string, MetadataEntry)
 
- 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)
 

Protected Member Functions

virtual void generateTile (const std::shared_ptr< Image< T >> &image, ImageTileWithType< T > &tile, int x, int y, int width, int height) const =0
 
std::string getImageRepr () const
 

Private Attributes

std::shared_ptr< Image< T > > m_image
 

Detailed Description

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

Definition at line 33 of file ProcessingImageSource.h.

Constructor & Destructor Documentation

◆ ProcessingImageSource()

template<typename T >
SourceXtractor::ProcessingImageSource< T >::ProcessingImageSource ( std::shared_ptr< Image< T >>  image)
inline

Definition at line 36 of file ProcessingImageSource.h.

◆ ~ProcessingImageSource()

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

Member Function Documentation

◆ generateTile()

template<typename T >
virtual void SourceXtractor::ProcessingImageSource< T >::generateTile ( const std::shared_ptr< Image< T >> &  image,
ImageTileWithType< T > &  tile,
int  x,
int  y,
int  width,
int  height 
) const
protectedpure virtual

◆ getHeight()

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

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 59 of file ProcessingImageSource.h.

References SourceXtractor::ProcessingImageSource< T >::m_image.

◆ getImageRepr()

template<typename T >
std::string SourceXtractor::ProcessingImageSource< T >::getImageRepr ( ) const
inlineprotected

◆ getImageTile()

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

Implements SourceXtractor::ImageSource.

Definition at line 40 of file ProcessingImageSource.h.

References SourceXtractor::ProcessingImageSource< T >::generateTile(), SourceXtractor::ProcessingImageSource< T >::m_image, x, and y.

Here is the call graph for this function:

◆ getType()

template<typename T >
ImageTile::ImageType SourceXtractor::ProcessingImageSource< T >::getType ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 63 of file ProcessingImageSource.h.

References SourceXtractor::ImageTile::getTypeValue().

Here is the call graph for this function:

◆ getWidth()

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

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 54 of file ProcessingImageSource.h.

References SourceXtractor::ProcessingImageSource< T >::m_image.

◆ saveTile()

template<typename T >
void SourceXtractor::ProcessingImageSource< T >::saveTile ( ImageTile )
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 49 of file ProcessingImageSource.h.

Member Data Documentation

◆ m_image

template<typename T >
std::shared_ptr<Image<T> > SourceXtractor::ProcessingImageSource< T >::m_image
private

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