Image::ImageBase Class Reference

#include <ImageBase.h>

List of all members.

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
ImageBaseoperator= (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

Detailed Description

Definition at line 36 of file ImageBase.h.


Constructor & Destructor Documentation

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  ) 

Member Function Documentation

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]
void ImageBase::clear ( void   )  [virtual]
int ImageBase::createCopy ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample 
) [virtual]
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]
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]
bool Image::ImageBase::isOwner (  )  const [inline]

Definition at line 47 of file ImageBase.h.

ImageBase & ImageBase::operator= ( const ImageBase rhs  ) 
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().


Member Data Documentation

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


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

Generated on Wed Nov 23 19:02:13 2011 for FreeCAD by  doxygen 1.6.1