![]() |
NDEVR
API Documentation
|
An Image implementation that wraps a QImage, bridging the NDEVR Image interface with Qt. More...
Public Member Functions | |
| QCustomImage () | |
| Constructs an empty QCustomImage. | |
| QCustomImage (const QImage &image) | |
| Constructs a QCustomImage from an existing QImage. | |
| QImage & | qImage () |
| Returns a mutable reference to the underlying QImage. | |
| const QImage & | qImage () const |
| Returns a const reference to the underlying QImage. | |
| uint01 * | scanLine (uint04 index) final override |
| Returns a pointer to the pixel data of the specified scan line. | |
| void | setImage (const QImage &image) |
| Sets the underlying QImage. | |
| Vector< 2, uint04 > | size () const final override |
| Returns the width and height of the image. | |
| Public Member Functions inherited from Image | |
| virtual | ~Image () |
| Virtual destructor for proper cleanup of derived Image classes. | |
| virtual uint04 | pixelSize () const |
| Returns the number of bytes per pixel in this image. | |
Public Attributes | |
| QImage | m_image |
| The underlying Qt image data. | |
An Image implementation that wraps a QImage, bridging the NDEVR Image interface with Qt.
Definition at line 41 of file QCustomImage.h.
|
inline |
Constructs a QCustomImage from an existing QImage.
| [in] | image | The QImage to wrap. |
Definition at line 53 of file QCustomImage.h.
References m_image.
|
inline |
Returns a mutable reference to the underlying QImage.
Definition at line 77 of file QCustomImage.h.
References m_image.
|
inline |
Returns a const reference to the underlying QImage.
Definition at line 69 of file QCustomImage.h.
References m_image.
Returns a pointer to the pixel data of the specified scan line.
| [in] | index | The row index of the scan line. |
Reimplemented from Image.
Definition at line 87 of file QCustomImage.h.
References m_image.
|
inline |
Sets the underlying QImage.
| [in] | image | The QImage to set. |
Definition at line 61 of file QCustomImage.h.
References m_image.
Returns the width and height of the image.
Reimplemented from Image.
Definition at line 95 of file QCustomImage.h.
References m_image.