7 #ifndef __FWDATATOOLS_HELPER_IMAGEGETTER_HPP__ 8 #define __FWDATATOOLS_HELPER_IMAGEGETTER_HPP__ 10 #include "fwDataTools/config.hpp" 12 #include <fwData/Image.hpp> 27 typedef ::fwData::Image::SizeType SizeType;
28 typedef ::fwData::Image::IndexType IndexType;
29 typedef ::fwData::Image::BufferType BufferType;
30 typedef ::fwData::Image::BufferIndexType BufferIndexType;
33 FWDATATOOLS_API
ImageGetter( ::fwData::Image::csptr image );
36 FWDATATOOLS_API
virtual ~ImageGetter();
39 FWDATATOOLS_API
void* getBuffer()
const;
44 FWDATATOOLS_API
void* getPixelBuffer( SizeType::value_type
x, SizeType::value_type y,
45 SizeType::value_type z )
const;
47 FWDATATOOLS_API
void* getPixelBuffer( IndexType index )
const;
49 FWDATATOOLS_API
const std::string getPixelAsString(SizeType::value_type x,
50 SizeType::value_type y,
51 SizeType::value_type z )
const;
56 ::fwData::Image::csptr m_image;
64 #endif // __FWDATATOOLS_HELPER_IMAGEGETTER_HPP__
base class for BufferObject Lock