Controller object for the QML image view item.
More...
#include <cvb/ui/image_view_item.hpp>
Inherits QObject.
Controller object for the QML image view item.
An instance of this class should be set as context property for QML context. In QML an instance of ImageViewItem can connect to this instance by binding it to its image property.
- Examples
- Cvb/QmlImageDisplay, Cvb/QmlStreamDisplay, Foundation/QmlBlobSearch, GevServer/QmlGevServer, Minos/QmlMinos, and Polimago/QmlCookieClassification.
◆ Height()
Height of the shared image in pixels.
- Returns
- Height in pixels.
- Exceptions
-
Does | not throw any exception. |
If no image is shared, return 0.
Use in QML as property: height.
◆ Image()
Get the currently shared image.
- Returns
- ImagePtr The currently shared image.
- Exceptions
-
Does | not throw any exception. |
◆ PlanesCount()
int PlanesCount |
( |
| ) |
const |
|
inlinenoexcept |
Get the number of planes for this image.
- Returns
- Number of planes.
- Exceptions
-
Does | not throw any exception. |
If no image is shared, return 0.
Use in QML as property: planesCount.
◆ Refresh() [1/2]
Refresh the view.
- Exceptions
-
Does | not throw any exception. |
◆ Refresh() [2/2]
◆ ReleaseRefreshShare()
void ReleaseRefreshShare |
( |
| ) |
|
|
inlinenoexcept |
Releases the shared image.
- Exceptions
-
Does | not throw any exception. |
Use this method if you must release the shared image manually. Setting a new shared image and destroying this image view will automatically release the shared image.
◆ Width()
Width of the shared image in pixels.
- Returns
- Width in pixels.
- Exceptions
-
Does | not throw any exception. |
If no image is shared, return 0.
Use in QML as property: width.