SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SourceXtractor::ImageTile Class Referenceabstract

#include <ImageTile.h>

Inheritance diagram for SourceXtractor::ImageTile:
[legend]
Collaboration diagram for SourceXtractor::ImageTile:
[legend]

Public Types

enum  ImageType {
  AutoType =-1, FloatImage =0, DoubleImage, IntImage,
  UIntImage, LongLongImage
}
 

Public Member Functions

virtual ~ImageTile ()
 
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 >
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
 
template<typename T >
std::shared_ptr< VectorImage< T > > getImage () const
 
virtual void * getDataPtr ()=0
 
void setModified (bool modified)
 
bool isModified () const
 
virtual void saveIfModified ()
 
ImageType getType () const
 

Static Public Member Functions

static std::shared_ptr< ImageTilecreate (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)
 
void createImage (ImageType image_type, int width, int height)
 

Protected Attributes

bool m_modified
 
ImageType m_image_type
 
std::shared_ptr< ImageSourcem_source
 
int m_x
 
int m_y
 
int m_max_x
 
int m_max_y
 
std::shared_ptr< void > m_tile_image
 

Detailed Description

Definition at line 34 of file ImageTile.h.

Member Enumeration Documentation

Enumerator
AutoType 
FloatImage 
DoubleImage 
IntImage 
UIntImage 
LongLongImage 

Definition at line 37 of file ImageTile.h.

Constructor & Destructor Documentation

virtual SourceXtractor::ImageTile::~ImageTile ( )
inlinevirtual

Definition at line 48 of file ImageTile.h.

References saveIfModified().

Here is the call graph for this function:

SourceXtractor::ImageTile::ImageTile ( ImageType  image_type,
int  x,
int  y,
int  width,
int  height,
std::shared_ptr< ImageSource source = nullptr 
)
inlineprotected

Definition at line 154 of file ImageTile.h.

References createImage().

Here is the call graph for this function:

Member Function Documentation

std::shared_ptr< ImageTile > SourceXtractor::ImageTile::create ( ImageType  image_type,
int  x,
int  y,
int  width,
int  height,
std::shared_ptr< ImageSource source = nullptr 
)
static
void SourceXtractor::ImageTile::createImage ( ImageType  image_type,
int  width,
int  height 
)
inlineprotected

Definition at line 159 of file ImageTile.h.

References SourceXtractor::VectorImage< T >::create(), DoubleImage, FloatImage, IntImage, LongLongImage, m_tile_image, and UIntImage.

Referenced by ImageTile().

Here is the call graph for this function:

virtual void* SourceXtractor::ImageTile::getDataPtr ( )
pure virtual
int SourceXtractor::ImageTile::getHeight ( ) const
inline
template<typename T >
std::shared_ptr<VectorImage<T> > SourceXtractor::ImageTile::getImage ( ) const
inline
int SourceXtractor::ImageTile::getPosX ( ) const
inline
int SourceXtractor::ImageTile::getPosY ( ) const
inline
virtual int SourceXtractor::ImageTile::getTileMemorySize ( ) const
pure virtual
ImageType SourceXtractor::ImageTile::getType ( ) const
inline

Definition at line 142 of file ImageTile.h.

References m_image_type.

static size_t SourceXtractor::ImageTile::getTypeSize ( ImageType  image_type)
inlinestatic
static ImageType SourceXtractor::ImageTile::getTypeValue ( float  )
inlinestatic
static ImageType SourceXtractor::ImageTile::getTypeValue ( double  )
inlinestatic

Definition at line 113 of file ImageTile.h.

References DoubleImage.

static ImageType SourceXtractor::ImageTile::getTypeValue ( int  )
inlinestatic

Definition at line 117 of file ImageTile.h.

References IntImage.

static ImageType SourceXtractor::ImageTile::getTypeValue ( unsigned  int)
inlinestatic

Definition at line 121 of file ImageTile.h.

References UIntImage.

static ImageType SourceXtractor::ImageTile::getTypeValue ( std::int64_t  )
inlinestatic

Definition at line 125 of file ImageTile.h.

References LongLongImage.

template<typename T >
T SourceXtractor::ImageTile::getValue ( int  x,
int  y 
) const
inline
virtual void SourceXtractor::ImageTile::getValue ( int  x,
int  y,
float &  value 
) const
protectedpure virtual
virtual void SourceXtractor::ImageTile::getValue ( int  x,
int  y,
double &  value 
) const
protectedpure virtual
virtual void SourceXtractor::ImageTile::getValue ( int  x,
int  y,
int &  value 
) const
protectedpure virtual
virtual void SourceXtractor::ImageTile::getValue ( int  x,
int  y,
unsigned int &  value 
) const
protectedpure virtual
virtual void SourceXtractor::ImageTile::getValue ( int  x,
int  y,
std::int64_t value 
) const
protectedpure virtual
int SourceXtractor::ImageTile::getWidth ( ) const
inline
bool SourceXtractor::ImageTile::isModified ( ) const
inline

Definition at line 103 of file ImageTile.h.

References m_modified.

Referenced by saveIfModified().

bool SourceXtractor::ImageTile::isPixelInTile ( int  x,
int  y 
) const
inline
void SourceXtractor::ImageTile::saveIfModified ( )
virtual

Definition at line 112 of file ImageTile.cpp.

References isModified(), m_source, and setModified().

Referenced by ~ImageTile().

Here is the call graph for this function:

void SourceXtractor::ImageTile::setModified ( bool  modified)
inline

Definition at line 99 of file ImageTile.h.

References m_modified.

Referenced by saveIfModified().

virtual void SourceXtractor::ImageTile::setValue ( int  x,
int  y,
float  value 
)
pure virtual
virtual void SourceXtractor::ImageTile::setValue ( int  x,
int  y,
double  value 
)
pure virtual
virtual void SourceXtractor::ImageTile::setValue ( int  x,
int  y,
int  value 
)
pure virtual
virtual void SourceXtractor::ImageTile::setValue ( int  x,
int  y,
unsigned int  value 
)
pure virtual
virtual void SourceXtractor::ImageTile::setValue ( int  x,
int  y,
std::int64_t  value 
)
pure virtual

Member Data Documentation

ImageType SourceXtractor::ImageTile::m_image_type
protected

Definition at line 183 of file ImageTile.h.

Referenced by getImage(), and getType().

int SourceXtractor::ImageTile::m_max_x
protected

Definition at line 187 of file ImageTile.h.

Referenced by getWidth(), and isPixelInTile().

int SourceXtractor::ImageTile::m_max_y
protected

Definition at line 187 of file ImageTile.h.

Referenced by getHeight(), and isPixelInTile().

bool SourceXtractor::ImageTile::m_modified
protected

Definition at line 181 of file ImageTile.h.

Referenced by isModified(), and setModified().

std::shared_ptr<ImageSource> SourceXtractor::ImageTile::m_source
protected

Definition at line 185 of file ImageTile.h.

Referenced by saveIfModified().

std::shared_ptr<void> SourceXtractor::ImageTile::m_tile_image
protected
int SourceXtractor::ImageTile::m_x
protected
int SourceXtractor::ImageTile::m_y
protected

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