Classes adding simple graphics functionalities to GSDView.
Classes
| BaseDrawTool([scene]) | Abstract base class for all mouse tools needing draw operations. |
| BaseMouseTool() | Abstract base class for all mouse tools. |
| BaseRectTool([scene]) | Tool to draw a rectangle onto opened raster band. |
| GraphicsView(*args) | A Graphics View emitting signals corresponding to events not handled |
| GraphicsViewMonitor | Emit signals when a registered graphics view changes status. |
| MouseManager([defaultmodename]) | Tools controller allowing user interacting with the scene. |
| PointerTool() | Tool for mouse pointer mode. |
| RectAreaSelectionTool([scene]) | |
| ScrollTool() | Tool for mouse scrolling mode. |
| SelectedItemsGroup | Is only useful to group all selection items. |
| SelectedRectGroup | Is only useful to group all selection rects. |
| SelectionTool([scene]) | Tool for mouse selection mode. |
Abstract base class for all mouse tools needing draw operations.
Abstract base class for all mouse tools.
Other mouse tools can be added subclassing it.
Tool to draw a rectangle onto opened raster band.
Handle mouseMoveEvent for this tool.
Set rectangle last point on current cursor position. This point can be top-left or bottom-right one according to its position relative to the first one. Draw a rectangle ending to current cursor position.
Handle mousePressEvent for this tool.
Select the first point of the rectangle. Draw a rectangle collapsed in a single point.
Handle mouseReleaseEvent for this tool.
A flag indicating rectangle is not yet completed is set to False.
A Graphics View emitting signals corresponding to events not handled by Qt (for example QMatrix transformations).
Reimplementation of QGraphicsView.wheelEvent handler.
Emit a signal but doesn’t call base implementation because view doesn’t have to scroll if you want to perform a custom operation with wheel event.
Emit signals when a registered graphics view changes status.
| Signals : |
|---|
Tools controller allowing user interacting with the scene.
Extend QObject. It contains a private variable ‘_toolmap’ mapping toolnames to tool classes. ‘activetool’ keeps track of selected tool. ‘graphicsactions’ is a QActionGroup useful to have exclusive mouse modes group.
Add a new tool to ‘_toolmap’ dict and relative action to ‘graphcisactions’ action group.
| Parameters : |
|---|
Set active graphics tool.
| Parameters : |
|---|
Is only useful to group all selection rects.
It contains one item at a time
Tool for mouse selection mode.
Handle mousePressEvent for this tool.
Select the first point of the selected rectangle.
Handle mouseReleaseEvent for this tool.
A flag indicating selection is not yet completed is set to False.