Module implementing a canvas view class.
E4CanvasView | Class implementing a canvas view. |
None |
Class implementing a canvas view.
E4CanvasView | Constructor |
__getDiagram | Private method to retrieve the diagram from the canvas fitting it in the minimum rectangle. |
_getDiagramRect | Protected method to calculate the minimum rectangle fitting the diagram. |
canvas | Public method to get a reference to the canvas object. |
clear | Public method to clear the canvas view. |
collisions | Public method to filter a list of collisions. |
mouseMoveEvent | Overriden method to handle mouse moves. |
mousePressEvent | Overriden method to handle mouse button presses. |
mouseReleaseEvent | Overriden method to handle mouse button releases. |
printDiagram | Public method to print the diagram. |
resizeCanvas | Public method to resize the drawing canvas. |
saveImage | Public method to save the canvas to a file. |
selectItem | Public method to select an item. |
selectItems | Public method to select the given items. |
setCanvas | Public method to set the canvas object. |
setCanvasSize | Public method to set the canvas size. |
setZoom | Public method to set the zoom factor. |
unselectItems | Public method to unselect all items. |
zoom | Public method to get the current zoom factor. |
zoomIn | Public method to zoom in. |
zoomOut | Public method to zoom out. |
zoomReset | Public method to handle the reset zoom context menu entry. |
Constructor
Private method to retrieve the diagram from the canvas fitting it in the minimum rectangle.
Protected method to calculate the minimum rectangle fitting the diagram.
Public method to get a reference to the canvas object.
Public method to clear the canvas view.
Public method to filter a list of collisions.
Overriden method to handle mouse moves.
This method moves the widget according to the mouse movements.
Overriden method to handle mouse button presses.
This method determines the item over which the button press occurred.
Overriden method to handle mouse button releases.
This method simply resets the tracked widget.
Public method to print the diagram.
Public method to resize the drawing canvas.
Public method to save the canvas to a file.
Public method to select an item.
Public method to select the given items.
Public method to set the canvas object.
Public method to set the canvas size.
Public method to set the zoom factor.
Public method to unselect all items.
Public method to get the current zoom factor.
Public method to zoom in.
Public method to zoom out.
Public method to handle the reset zoom context menu entry.