CVBpy 15.0
cvb.ui Namespace Reference

Common Vision Blox UI module for Python. More...

Classes

class  AutoRefresh
 Allows to automatically refresh, if image content changes. More...
 
class  ImageController
 Controller object for the QML image view item. More...
 
class  ImageLabelItem
 Image label item for QML. More...
 
class  ImageViewItem
 Image view item for QML. More...
 
class  UploadMode
 Defines the upload behavior. More...
 
class  ZoomID
 Identifier for a zoom factor. More...
 

Functions

PySide2.QtCore.QPointF cvb_to_qt_point (cvb.Point2D point)
 Convenience converter for points. More...
 
PySide2.QtCore.QRectF cvb_to_qt_rect (cvb.RectLT rect)
 Convenience converter for rectangles. More...
 
cvb.Point2D qt_to_cvb_point (PySide2.QtCore.QPointF point)
 Convenience converter for points. More...
 
cvb.RectLT qt_to_cvb_rect (PySide2.QtCore.QRectF rect)
 Convenience converter for rectangles. More...
 

Detailed Description

Common Vision Blox UI module for Python.

All components within this namespace depend on the Qt5 library. In order to work properly, you must have a PySide2 installed.

Function Documentation

◆ cvb_to_qt_point()

PySide2.QtCore.QPointF cvb_to_qt_point ( cvb.Point2D  point)

Convenience converter for points.

Parameters

point : cvb.Point2D A 2D point used by the cvb module.

Returns

PySide2.QtCore.QPointF A Qt point

◆ cvb_to_qt_rect()

PySide2.QtCore.QRectF cvb_to_qt_rect ( cvb.RectLT  rect)

Convenience converter for rectangles.

Parameters

rect : cvb.Rect A rectangle used by the cvb module.

Returns

PySide2.QtCore.QRectF A Qt rectangle

◆ qt_to_cvb_point()

cvb.Point2D qt_to_cvb_point ( PySide2.QtCore.QPointF  point)

Convenience converter for points.

Parameters

point : PySide2.QtCore.QPointF A Qt point

Returns

cvb.Point2D 2D point used by the cvb module.

◆ qt_to_cvb_rect()

cvb.RectLT qt_to_cvb_rect ( PySide2.QtCore.QRectF  rect)

Convenience converter for rectangles.

Parameters

rect : PySide2.QtCore.QRectF A Qt rectangle

Returns

cvb.Rect A rectangle used by the cvb module.