|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
#include <ImageTile.h>


Public Types | |
| enum | ImageType { AutoType =-1 , FloatImage =0 , DoubleImage , IntImage , UIntImage , LongLongImage } |
Public Member Functions | |
| virtual | ~ImageTile ()=default |
| bool | isPixelInTile (int x, int y) const |
| int | getPosX () const |
| int | getPosY () const |
| virtual int | getTileMemorySize () const =0 |
| int | getWidth () const |
| int | getHeight () const |
| template<typename T > | |
| T | getValue (int x, int y) const |
| virtual void | setValue (int x, int y, float value)=0 |
| virtual void | setValue (int x, int y, double value)=0 |
| virtual void | setValue (int x, int y, int value)=0 |
| virtual void | setValue (int x, int y, unsigned int value)=0 |
| virtual void | setValue (int x, int y, std::int64_t value)=0 |
| virtual void * | getDataPtr ()=0 |
| void | setModified (bool modified) |
| bool | isModified () const |
| void | saveIfModified () |
| ImageType | getType () const |
Static Public Member Functions | |
| static std::shared_ptr< ImageTile > | create (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr) |
| static ImageType | getTypeValue (float) |
| static ImageType | getTypeValue (double) |
| static ImageType | getTypeValue (int) |
| static ImageType | getTypeValue (unsigned int) |
| static ImageType | getTypeValue (std::int64_t) |
| static size_t | getTypeSize (ImageType image_type) |
Protected Member Functions | |
| virtual void | getValue (int x, int y, float &value) const =0 |
| virtual void | getValue (int x, int y, double &value) const =0 |
| virtual void | getValue (int x, int y, int &value) const =0 |
| virtual void | getValue (int x, int y, unsigned int &value) const =0 |
| virtual void | getValue (int x, int y, std::int64_t &value) const =0 |
| ImageTile (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr) | |
| ImageTile (const ImageTile &)=delete | |
| ImageTile (ImageTile &&)=delete | |
| ImageTile & | operator= (const ImageTile &)=delete |
| ImageTile & | operator= (ImageTile &&)=delete |
Protected Attributes | |
| bool | m_modified |
| ImageType | m_image_type |
| std::shared_ptr< ImageSource > | m_source |
| int | m_x |
| int | m_y |
| int | m_max_x |
| int | m_max_y |
Definition at line 34 of file ImageTile.h.
| Enumerator | |
|---|---|
| AutoType | |
| FloatImage | |
| DoubleImage | |
| IntImage | |
| UIntImage | |
| LongLongImage | |
Definition at line 37 of file ImageTile.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 141 of file ImageTile.h.
|
protecteddelete |
|
static |
Definition at line 24 of file ImageTile.cpp.
References DoubleImage, FloatImage, IntImage, LongLongImage, UIntImage, x, and y.
Referenced by SourceXtractor::ScaledImageSource< T >::getImageTile(), and SourceXtractor::FitsImageSource::getImageTile().
Implemented in SourceXtractor::ImageTileWithType< T >.
|
inline |
Definition at line 68 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileWithType< T >::getTileMemorySize().
|
inline |
Definition at line 54 of file ImageTile.h.
References m_x.
|
inline |
Definition at line 58 of file ImageTile.h.
References m_y.
Implemented in SourceXtractor::ImageTileWithType< T >.
|
inline |
Definition at line 130 of file ImageTile.h.
References m_image_type.
Definition at line 117 of file ImageTile.h.
References DoubleImage, FloatImage, IntImage, LongLongImage, and UIntImage.
Referenced by SourceXtractor::FitsImageSource::FitsImageSource().
Definition at line 101 of file ImageTile.h.
References DoubleImage.
Definition at line 97 of file ImageTile.h.
References FloatImage.
Referenced by SourceXtractor::ScaledImageSource< T >::getImageTile(), SourceXtractor::InterpolatedImageSource< T >::getType(), SourceXtractor::ProcessingImageSource< T >::getType(), and SourceXtractor::ScaledImageSource< T >::getType().
Definition at line 105 of file ImageTile.h.
References IntImage.
|
inlinestatic |
Definition at line 113 of file ImageTile.h.
References LongLongImage.
Definition at line 109 of file ImageTile.h.
References UIntImage.
Definition at line 73 of file ImageTile.h.
References getValue(), x, and y.
Referenced by getValue().

|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
inline |
Definition at line 64 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileWithType< T >::getTileMemorySize().
|
inline |
Definition at line 50 of file ImageTile.h.
References m_max_x, m_max_y, m_x, m_y, x, and y.
Referenced by SourceXtractor::ImageTileWithType< T >::getValueImpl(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().
| void SourceXtractor::ImageTile::saveIfModified | ( | ) |
Definition at line 40 of file ImageTile.cpp.
References isModified(), m_source, and setModified().
Referenced by SourceXtractor::ImageTileWithType< T >::~ImageTileWithType().

Implemented in SourceXtractor::ImageTileWithType< T >.
Implemented in SourceXtractor::ImageTileWithType< T >.
Implemented in SourceXtractor::ImageTileWithType< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protected |
Definition at line 151 of file ImageTile.h.
Referenced by getType().
|
protected |
Definition at line 154 of file ImageTile.h.
Referenced by getWidth(), and isPixelInTile().
|
protected |
Definition at line 154 of file ImageTile.h.
Referenced by getHeight(), and isPixelInTile().
|
protected |
Definition at line 150 of file ImageTile.h.
Referenced by isModified(), and setModified().
|
protected |
Definition at line 152 of file ImageTile.h.
Referenced by saveIfModified().
|
protected |
Definition at line 153 of file ImageTile.h.
Referenced by getPosX(), SourceXtractor::ImageTileWithType< T >::getValueImpl(), getWidth(), isPixelInTile(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().
|
protected |
Definition at line 153 of file ImageTile.h.
Referenced by getHeight(), getPosY(), SourceXtractor::ImageTileWithType< T >::getValueImpl(), isPixelInTile(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().