|
DCMTK
Version 3.7.0
OFFIS DICOM Toolkit
|
Struct representing a single frame. More...
Inheritance diagram for DcmIODTypes::Frame< PixelType >:Public Member Functions | |
| Frame () | |
| Default constructor. | |
| Frame (const size_t numPixels) | |
| Constructor that creates pixel data of the given size (amount of pixels) More... | |
| Frame (PixelType *pixelData, const size_t sizeInBytes) | |
| Constructor that takes over pixel data for managing. More... | |
| Frame (const Frame &rhs) | |
| Copy constructor, copies pixel data. More... | |
| Frame & | operator= (const Frame &rhs) |
| Assignment constructor, copies pixel data. More... | |
| virtual void | setReleaseMemory (OFBool release) |
| Set whether pixel data should be release by this class (default) or is managed externally. More... | |
| virtual size_t | getLengthInBytes () const |
| Get size of pixel data in bytes. More... | |
| virtual void * | getPixelData () const |
| Returns pointer to pixel data (untyped) More... | |
| virtual PixelType * | getPixelDataTyped () const |
| Returns pointer to pixel data (typed) More... | |
| virtual Uint8 | bytesPerPixel () const |
| Returns number of pixels (not necessarily bytes) in the frame. More... | |
| virtual OFCondition | getUint8AtIndex (Uint8 &byteVal, const size_t index) const |
| Get value at given index as 8 bit value. More... | |
| virtual OFCondition | getUint16AtIndex (Uint16 &shortVal, const size_t index) const |
| Get value at given index as 16 bit value. More... | |
| virtual OFString | print () const |
| Print frame data to string (for debugging purposes) More... | |
| ~Frame () | |
| Destructor, frees memory if not disabled via setReleaseMemory() method. | |
Public Member Functions inherited from DcmIODTypes::FrameBase | |
| FrameBase () | |
| Destructor. | |
| virtual | ~FrameBase () |
| Deconstructor, frees frame data if not disabled via setReleaseMemory() method. | |
Public Attributes | |
| PixelType * | m_pixData |
| Array for the pixel data bytes. | |
| size_t | m_numPixels |
| Number of pixels in the frame. | |
Struct representing a single frame.
|
inline |
Constructor that creates pixel data of the given size (amount of pixels)
| numPixels | Number of pixels to allocate |
|
inline |
Constructor that takes over pixel data for managing.
| pixelData | Pointer to pixel data that is afterwards managed by this class |
| sizeInBytes | Size of pixel data in bytes |
|
inline |
Copy constructor, copies pixel data.
| rhs | Frame to copy |
References DcmIODTypes::Frame< PixelType >::m_numPixels, and DcmIODTypes::Frame< PixelType >::m_pixData.
|
inlinevirtual |
Returns number of pixels (not necessarily bytes) in the frame.
Implements DcmIODTypes::FrameBase.
|
inlinevirtual |
Get size of pixel data in bytes.
Implements DcmIODTypes::FrameBase.
|
inlinevirtual |
Returns pointer to pixel data (untyped)
Implements DcmIODTypes::FrameBase.
|
inlinevirtual |
Returns pointer to pixel data (typed)
|
inlinevirtual |
Get value at given index as 16 bit value.
| shortVal | The value at the given index |
| index | The index to get the value from |
Implements DcmIODTypes::FrameBase.
References EC_IllegalCall, and EC_Normal.
|
inlinevirtual |
Get value at given index as 8 bit value.
| byteVal | The value at the given index |
| index | The index to get the value from |
Implements DcmIODTypes::FrameBase.
References EC_IllegalCall, and EC_Normal.
|
inline |
Assignment constructor, copies pixel data.
| rhs | Frame to copy from |
References DcmIODTypes::Frame< PixelType >::m_numPixels, and DcmIODTypes::Frame< PixelType >::m_pixData.
|
inlinevirtual |
Print frame data to string (for debugging purposes)
Implements DcmIODTypes::FrameBase.
|
inlinevirtual |
Set whether pixel data should be release by this class (default) or is managed externally.
| release | OFTrue if memory should be released, OFFalse otherwise |
Implements DcmIODTypes::FrameBase.