|
DCMTK
Version 3.7.0
OFFIS DICOM Toolkit
|
Base class to store pixel data for frames. More...
Inheritance diagram for DcmIODTypes::FrameBase:Public Member Functions | |
| FrameBase () | |
| Destructor. | |
| virtual size_t | getLengthInBytes () const =0 |
| Returns pixel data size in bytes. More... | |
| virtual void * | getPixelData () const =0 |
| Get pointer to pixel data. More... | |
| virtual Uint8 | bytesPerPixel () const =0 |
| Get bytes used per pixel. More... | |
| virtual OFCondition | getUint8AtIndex (Uint8 &byteVal, const size_t index) const =0 |
| Get value at given index as 8 bit value. More... | |
| virtual OFCondition | getUint16AtIndex (Uint16 &shortVal, const size_t index) const =0 |
| Get value at given index as 16 bit value. More... | |
| virtual void | setReleaseMemory (OFBool release)=0 |
| Set whether Frame class should release memory (default) or whether it will be released externally. More... | |
| virtual OFString | print () const =0 |
| Print frame data to string (for debugging purposes) More... | |
| virtual | ~FrameBase () |
| Deconstructor, frees frame data if not disabled via setReleaseMemory() method. | |
Base class to store pixel data for frames.
Right now 8 and 16 bit are supported. Per default, the class will release memory in the destructor.
|
pure virtual |
Get bytes used per pixel.
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Returns pixel data size in bytes.
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Get pointer to pixel data.
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Get value at given index as 16 bit value.
| shortVal | The value at the given index |
| index | The index to get the value from |
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Get value at given index as 8 bit value.
| byteVal | The value at the given index |
| index | The index to get the value from |
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Print frame data to string (for debugging purposes)
Implemented in DcmIODTypes::Frame< PixelType >.
|
pure virtual |
Set whether Frame class should release memory (default) or whether it will be released externally.
| release | OFTrue if Frame should release memory, OFFalse otherwise |
Implemented in DcmIODTypes::Frame< PixelType >.