#include <ImageBase.h>
Public Member Functions | |
virtual void | clear () |
virtual int | createCopy (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample) |
int | getFormat () const |
unsigned long | getHeight () const |
unsigned short | getNumBitsPerSample () const |
unsigned short | getNumBytesPerPixel () const |
unsigned short | getNumSamples () const |
unsigned short | getNumSigBitsPerSample () const |
void * | getPixelDataPtr () |
virtual int | getSample (int x, int y, unsigned short sampleIndex, double &value) |
unsigned long | getWidth () const |
bool | hasValidData () const |
ImageBase (const ImageBase &rhs) | |
ImageBase () | |
bool | isOwner () const |
ImageBase & | operator= (const ImageBase &rhs) |
virtual int | pointTo (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, bool takeOwnership) |
virtual | ~ImageBase () |
Protected Member Functions | |
int | _allocate () |
int | _setColorFormat (int format, unsigned short numSigBitsPerSample) |
Protected Attributes | |
int | _format |
unsigned long | _height |
unsigned short | _numBitsPerSample |
unsigned short | _numBytesPerPixel |
unsigned short | _numSamples |
unsigned short | _numSigBitsPerSample |
bool | _owner |
unsigned char * | _pPixelData |
unsigned long | _width |
Definition at line 36 of file ImageBase.h.
ImageBase::ImageBase | ( | ) |
Definition at line 30 of file ImageBase.cpp.
References _height, _owner, _pPixelData, _setColorFormat(), _width, and IB_CF_GREY8.
ImageBase::~ImageBase | ( | ) | [virtual] |
Definition at line 40 of file ImageBase.cpp.
References clear().
ImageBase::ImageBase | ( | const ImageBase & | rhs | ) |
Definition at line 50 of file ImageBase.cpp.
References _format, _height, _numSigBitsPerSample, _owner, _pPixelData, _setColorFormat(), _width, and createCopy().
int ImageBase::_allocate | ( | ) | [protected] |
Definition at line 204 of file ImageBase.cpp.
References _height, _numBytesPerPixel, _owner, _pPixelData, and _width.
Referenced by createCopy().
int ImageBase::_setColorFormat | ( | int | format, | |
unsigned short | numSigBitsPerSample | |||
) | [protected] |
Definition at line 128 of file ImageBase.cpp.
References _format, _numBitsPerSample, _numBytesPerPixel, _numSamples, _numSigBitsPerSample, IB_CF_BGR24, IB_CF_BGR48, IB_CF_BGRA32, IB_CF_BGRA64, IB_CF_GREY16, IB_CF_GREY32, IB_CF_GREY8, IB_CF_RGB24, IB_CF_RGB48, IB_CF_RGBA32, and IB_CF_RGBA64.
Referenced by clear(), createCopy(), ImageBase(), operator=(), and pointTo().
void ImageBase::clear | ( | void | ) | [virtual] |
Definition at line 105 of file ImageBase.cpp.
References _height, _owner, _pPixelData, _setColorFormat(), _width, and IB_CF_GREY8.
Referenced by ImageGui::GLImageBox::clearImage(), createCopy(), operator=(), pointTo(), and ~ImageBase().
int ImageBase::createCopy | ( | void * | pSrcPixelData, | |
unsigned long | width, | |||
unsigned long | height, | |||
int | format, | |||
unsigned short | numSigBitsPerSample | |||
) | [virtual] |
Definition at line 233 of file ImageBase.cpp.
References _allocate(), _height, _numBytesPerPixel, _pPixelData, _setColorFormat(), _width, and clear().
Referenced by ImageGui::GLImageBox::createImageCopy(), ImageBase(), and operator=().
int Image::ImageBase::getFormat | ( | ) | const [inline] |
Definition at line 50 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::getImageFormat().
unsigned long Image::ImageBase::getHeight | ( | ) | const [inline] |
Definition at line 49 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::setNormal().
unsigned short Image::ImageBase::getNumBitsPerSample | ( | ) | const [inline] |
Definition at line 53 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::pixValToMapIndex().
unsigned short Image::ImageBase::getNumBytesPerPixel | ( | ) | const [inline] |
Definition at line 54 of file ImageBase.h.
unsigned short Image::ImageBase::getNumSamples | ( | ) | const [inline] |
Definition at line 52 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::getImageNumSamplesPerPix().
unsigned short Image::ImageBase::getNumSigBitsPerSample | ( | ) | const [inline] |
Definition at line 51 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::pixValToMapIndex().
void* Image::ImageBase::getPixelDataPtr | ( | ) | [inline] |
Definition at line 46 of file ImageBase.h.
int ImageBase::getSample | ( | int | x, | |
int | y, | |||
unsigned short | sampleIndex, | |||
double & | value | |||
) | [virtual] |
Definition at line 300 of file ImageBase.cpp.
References _format, _height, _numSamples, _pPixelData, _width, IB_CF_BGR24, IB_CF_BGR48, IB_CF_BGRA32, IB_CF_BGRA64, IB_CF_GREY16, IB_CF_GREY32, IB_CF_GREY8, IB_CF_RGB24, IB_CF_RGB48, IB_CF_RGBA32, and IB_CF_RGBA64.
Referenced by ImageGui::GLImageBox::getImageSample().
unsigned long Image::ImageBase::getWidth | ( | ) | const [inline] |
Definition at line 48 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::setNormal().
bool Image::ImageBase::hasValidData | ( | ) | const [inline] |
Definition at line 45 of file ImageBase.h.
Referenced by ImageGui::GLImageBox::fixBasePosCurr(), ImageGui::GLImageBox::setNormal(), ImageGui::GLImageBox::setZoomFactor(), and ImageGui::GLImageBox::stretchToFit().
bool Image::ImageBase::isOwner | ( | ) | const [inline] |
Definition at line 47 of file ImageBase.h.
Definition at line 73 of file ImageBase.cpp.
References _format, _height, _numSigBitsPerSample, _owner, _pPixelData, _setColorFormat(), _width, clear(), and createCopy().
int ImageBase::pointTo | ( | void * | pSrcPixelData, | |
unsigned long | width, | |||
unsigned long | height, | |||
int | format, | |||
unsigned short | numSigBitsPerSample, | |||
bool | takeOwnership | |||
) | [virtual] |
Definition at line 271 of file ImageBase.cpp.
References _height, _owner, _pPixelData, _setColorFormat(), _width, and clear().
Referenced by ImageGui::GLImageBox::pointImageTo().
int Image::ImageBase::_format [protected] |
Definition at line 71 of file ImageBase.h.
Referenced by _setColorFormat(), getSample(), ImageBase(), and operator=().
unsigned long Image::ImageBase::_height [protected] |
Definition at line 70 of file ImageBase.h.
Referenced by _allocate(), clear(), createCopy(), getSample(), ImageBase(), operator=(), and pointTo().
unsigned short Image::ImageBase::_numBitsPerSample [protected] |
Definition at line 76 of file ImageBase.h.
Referenced by _setColorFormat().
unsigned short Image::ImageBase::_numBytesPerPixel [protected] |
Definition at line 77 of file ImageBase.h.
Referenced by _allocate(), _setColorFormat(), and createCopy().
unsigned short Image::ImageBase::_numSamples [protected] |
Definition at line 75 of file ImageBase.h.
Referenced by _setColorFormat(), and getSample().
unsigned short Image::ImageBase::_numSigBitsPerSample [protected] |
Definition at line 72 of file ImageBase.h.
Referenced by _setColorFormat(), ImageBase(), and operator=().
bool Image::ImageBase::_owner [protected] |
Definition at line 68 of file ImageBase.h.
Referenced by _allocate(), clear(), ImageBase(), operator=(), and pointTo().
unsigned char* Image::ImageBase::_pPixelData [protected] |
Definition at line 67 of file ImageBase.h.
Referenced by _allocate(), clear(), createCopy(), getSample(), ImageBase(), operator=(), and pointTo().
unsigned long Image::ImageBase::_width [protected] |
Definition at line 69 of file ImageBase.h.
Referenced by _allocate(), clear(), createCopy(), getSample(), ImageBase(), operator=(), and pointTo().