NDEVR
API Documentation
QCustomImage

An Image implementation that wraps a QImage, bridging the NDEVR Image interface with Qt. More...

Inheritance diagram for QCustomImage:
[legend]
Collaboration diagram for QCustomImage:
[legend]

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.
uint01scanLine (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, uint04size () 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.

Detailed Description

An Image implementation that wraps a QImage, bridging the NDEVR Image interface with Qt.


Definition at line 41 of file QCustomImage.h.

Constructor & Destructor Documentation

◆ QCustomImage()

QCustomImage::QCustomImage ( const QImage & image)
inline

Constructs a QCustomImage from an existing QImage.

Parameters
[in]imageThe QImage to wrap.

Definition at line 53 of file QCustomImage.h.

References m_image.

Member Function Documentation

◆ qImage() [1/2]

QImage & QCustomImage::qImage ( )
inline

Returns a mutable reference to the underlying QImage.

Returns
A mutable reference to the QImage.

Definition at line 77 of file QCustomImage.h.

References m_image.

◆ qImage() [2/2]

const QImage & QCustomImage::qImage ( ) const
inline

Returns a const reference to the underlying QImage.

Returns
A const reference to the QImage.

Definition at line 69 of file QCustomImage.h.

References m_image.

◆ scanLine()

uint01 * QCustomImage::scanLine ( uint04 index)
inlinefinaloverridevirtual

Returns a pointer to the pixel data of the specified scan line.

Parameters
[in]indexThe row index of the scan line.
Returns
A pointer to the scan line pixel data.

Reimplemented from Image.

Definition at line 87 of file QCustomImage.h.

References m_image.

◆ setImage()

void QCustomImage::setImage ( const QImage & image)
inline

Sets the underlying QImage.

Parameters
[in]imageThe QImage to set.

Definition at line 61 of file QCustomImage.h.

References m_image.

◆ size()

Vector< 2, uint04 > QCustomImage::size ( ) const
inlinefinaloverridevirtual

Returns the width and height of the image.

Returns
A 2D vector containing the width and height in pixels.

Reimplemented from Image.

Definition at line 95 of file QCustomImage.h.

References m_image.


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