Namespace for user interface components. More...
Namespaces | |
namespace | Quick |
Namespace for QML related classes. | |
Classes | |
class | ImageScene |
Scene to provide a convenient display for an image. More... | |
class | ImageView |
View to display an image. More... | |
class | OpenGLBufferFormat |
Buffer format description for a texture to hold the pixel data. More... | |
class | OpenGLCoord |
OpenGL coordinate representing a texture corner. More... | |
class | OpenGLCoordArray |
Set of all coordinates required to render a texture. More... | |
class | OpenGLImageRenderer |
Base class for OpenGL image renderer. More... | |
class | OpenGLImageRendererFactory |
Factory to create an OpenGL based image renderer. More... | |
class | PropertyGrid |
View to display a device's nodemap. More... | |
class | ZoomDescriptor |
Describes an zoom setting for the display. More... | |
Enumerations | |
enum class | UploadMode { Image , Viewport } |
Defines the upload behavior. More... | |
enum class | ZoomID { Invalid , Custom , Panorama , Factor1 , Factor2 , Factor4 , Factor8 , Factor16 , Factor32 , Factor64 , Factor128 } |
Identifier for a zoom factor. More... | |
enum class | AutoRefresh { On , Off } |
Allows to automatically refresh, if image content changes. More... | |
enum class | LabelScale |
Switch defining if image view labels are sensitive to zoom operations. | |
enum class | RefreshMode { UploadOnly , UploadAndScheduleRepaint , UploadAndWaitForRepaint } |
Defines the refresh behavior. More... | |
enum class | RenderEngine { Raster , OpenGL2 , OpenGL3 } |
Defines the render engine used for drawing. More... | |
enum class | OpenGLTextureFormat { Unknown , RGB , Mono } |
OpenGL texture format to hold the pixel data. More... | |
Functions | |
Cvb::String | QtToCvb (const QString text) noexcept |
Convenience converter for strings. More... | |
QString | CvbToQt (const Cvb::String &text) noexcept |
Convenience converter for strings. More... | |
QSizeF | CvbToQt (Size2D< double > size) noexcept |
Convenience converter for sizes. More... | |
Size2D< double > | QtToCvb (QSizeF size) noexcept |
Convenience converter for sizes. More... | |
QRectF | CvbToQt (RectLT< double > rect) noexcept |
Convenience converter for rectangles. More... | |
RectLT< double > | QtToCvb (const QRectF &rect) noexcept |
Convenience converter for rectangles. More... | |
QPointF | CvbToQt (Point2D< double > point) noexcept |
Convenience converter for points. More... | |
Point2D< double > | QtToCvb (const QPointF &point) |
Convenience converter for points. More... | |
Namespace for user interface components.
All components within this namespace depend on the Qt5 library. You may seamlessly integrate with your Qt Widget based application and link to your own version of Qt. In order to use OpenGL 3 rendering your Qt version must be 5.6 or higher. Older Qt versions may be used but OpenGL3 will not be available as render engine.
|
strong |
Allows to automatically refresh, if image content changes.
Enumerator | |
---|---|
On | Hooks in at Image::RegisterEventPixelContentChanged() to automatically refresh the ImageView.
|
Off | Does not call refresh automatically. |
|
strong |
|
strong |
Defines the refresh behavior.
Enumerator | |
---|---|
UploadOnly | This only uploads the pixel data, but does not repaint on screen. This may be used to synchronize painting with other widgets. |
UploadAndScheduleRepaint | This uploads the pixel data and schedules a repaint via Qt's event loop. This may be used for high frame rates that do not allow to display every frame. |
UploadAndWaitForRepaint | This does the same as UploadAndScheduleRepaint, but in addition it blocks your call to Refresh() until the pixel data was drawn on the screen. This may be used if you need an exact synchronization between the image display and your acquisition thread. This is the default option. |
|
strong |
Defines the render engine used for drawing.
Enumerator | |
---|---|
Raster | This uses Qt's raster paint engine to draw the image. This option is available on all systems supporting Qt and does not have any requirements for the graphics hardware. This is the default option. |
OpenGL2 | Uses OpemGL2 (ES) to draw the image. This should be available on all graphics cards supporting OpenGL, if a vendor specific driver is installed.
|
OpenGL3 | Uses OpemGL3 (ES) to draw the image. This should be available on most graphics cards, if a vendor specific driver is installed. However, a compatible OpenGL3 (ES) profile is required to actually render the image. |
|
strong |
Defines the upload behavior.
Enumerator | |
---|---|
Image | Upload respectively copy the complete Image data, to frame buffer. This also includes parts of the image that are not visible. This allows smooth drawing and scaling. This is the default option.
|
Viewport | Upload respectively copy only the visible part of the image. For large images this is usually much faster than uploading the whole image. The pixel data may be subsampled, as a consequence aliasing may occur.
|
|
strong |
Identifier for a zoom factor.
Enumerator | |
---|---|
Invalid | Represents an invalid zoom factor for internal use. |
Custom | Represents a custom zoom factor that is user defined. |
Panorama | Represents a dynamic zoom factor, that is dependent on the view port size of ImageView. |
Factor1 | Represents the zoom to draw the image in original size. |
Factor2 | Represents the zoom to draw the image scaled by 2. |
Factor4 | Represents the zoom to draw the image scaled by 4. |
Factor8 | Represents the zoom to draw the image scaled by 8. |
Factor16 | Represents the zoom to draw the image scaled by 16. |
Factor32 | Represents the zoom to draw the image scaled by 32. |
Factor64 | Represents the zoom to draw the image scaled by 64. |
Factor128 | Represents the zoom to draw the image scaled by 128. |
|
inlinenoexcept |
Convenience converter for strings.
[in] | text | String as used by CVB classes. |
Does | not throw any exception. |
|
inlinenoexcept |
Convenience converter for strings.
Does | not throw any exception. |