diff -r a36eecf45b2e -r 7d80b0f20ca6 Documentation/Source/eric5.E4Graphics.E4GraphicsView.html --- a/Documentation/Source/eric5.E4Graphics.E4GraphicsView.html Tue Jan 12 17:55:24 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,276 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Graphics.E4GraphicsView</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Graphics.E4GraphicsView</h1> -<p> -Module implementing a canvas view class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4GraphicsView">E4GraphicsView</a></td> -<td>Class implementing a graphics view.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4GraphicsView" ID="E4GraphicsView"></a> -<h2>E4GraphicsView</h2> -<p> - Class implementing a graphics view. -</p> -<h3>Derived from</h3> -QGraphicsView -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4GraphicsView.__init__">E4GraphicsView</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4GraphicsView.__getDiagram">__getDiagram</a></td> -<td>Private method to retrieve the diagram from the scene fitting it in the minimum rectangle.</td> -</tr><tr> -<td><a href="#E4GraphicsView._getDiagramRect">_getDiagramRect</a></td> -<td>Protected method to calculate the minimum rectangle fitting the diagram.</td> -</tr><tr> -<td><a href="#E4GraphicsView._getDiagramSize">_getDiagramSize</a></td> -<td>Protected method to calculate the minimum size fitting the diagram.</td> -</tr><tr> -<td><a href="#E4GraphicsView.filteredItems">filteredItems</a></td> -<td>Public method to filter a list of items.</td> -</tr><tr> -<td><a href="#E4GraphicsView.printDiagram">printDiagram</a></td> -<td>Public method to print the diagram.</td> -</tr><tr> -<td><a href="#E4GraphicsView.resizeScene">resizeScene</a></td> -<td>Public method to resize the scene.</td> -</tr><tr> -<td><a href="#E4GraphicsView.saveImage">saveImage</a></td> -<td>Public method to save the scene to a file.</td> -</tr><tr> -<td><a href="#E4GraphicsView.setSceneSize">setSceneSize</a></td> -<td>Public method to set the scene size.</td> -</tr><tr> -<td><a href="#E4GraphicsView.setZoom">setZoom</a></td> -<td>Public method to set the zoom factor.</td> -</tr><tr> -<td><a href="#E4GraphicsView.zoom">zoom</a></td> -<td>Public method to get the current zoom factor.</td> -</tr><tr> -<td><a href="#E4GraphicsView.zoomIn">zoomIn</a></td> -<td>Public method to zoom in.</td> -</tr><tr> -<td><a href="#E4GraphicsView.zoomOut">zoomOut</a></td> -<td>Public method to zoom out.</td> -</tr><tr> -<td><a href="#E4GraphicsView.zoomReset">zoomReset</a></td> -<td>Public method to handle the reset zoom context menu entry.</td> -</tr> -</table> -<a NAME="E4GraphicsView.__init__" ID="E4GraphicsView.__init__"></a> -<h4>E4GraphicsView (Constructor)</h4> -<b>E4GraphicsView</b>(<i>scene, parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>scene</i></dt> -<dd> -reference to the scene object (QGraphicsScene) -</dd><dt><i>parent</i></dt> -<dd> -parent widget (QWidget) -</dd> -</dl><a NAME="E4GraphicsView.__getDiagram" ID="E4GraphicsView.__getDiagram"></a> -<h4>E4GraphicsView.__getDiagram</h4> -<b>__getDiagram</b>(<i>rect, format = "PNG", filename = None</i>) -<p> - Private method to retrieve the diagram from the scene fitting it - in the minimum rectangle. -</p><dl> -<dt><i>rect</i></dt> -<dd> -minimum rectangle fitting the diagram (QRectF) -</dd><dt><i>format</i></dt> -<dd> -format for the image file (string) -</dd><dt><i>filename</i></dt> -<dd> -name of the file for non pixmaps (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -diagram pixmap to receive the diagram (QPixmap) -</dd> -</dl><a NAME="E4GraphicsView._getDiagramRect" ID="E4GraphicsView._getDiagramRect"></a> -<h4>E4GraphicsView._getDiagramRect</h4> -<b>_getDiagramRect</b>(<i>border = 0</i>) -<p> - Protected method to calculate the minimum rectangle fitting the diagram. -</p><dl> -<dt><i>border</i></dt> -<dd> -border width to include in the calculation (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the minimum rectangle (QRectF) -</dd> -</dl><a NAME="E4GraphicsView._getDiagramSize" ID="E4GraphicsView._getDiagramSize"></a> -<h4>E4GraphicsView._getDiagramSize</h4> -<b>_getDiagramSize</b>(<i>border = 0</i>) -<p> - Protected method to calculate the minimum size fitting the diagram. -</p><dl> -<dt><i>border</i></dt> -<dd> -border width to include in the calculation (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the minimum size (QSizeF) -</dd> -</dl><a NAME="E4GraphicsView.filteredItems" ID="E4GraphicsView.filteredItems"></a> -<h4>E4GraphicsView.filteredItems</h4> -<b>filteredItems</b>(<i>items</i>) -<p> - Public method to filter a list of items. -</p><dl> -<dt><i>items</i></dt> -<dd> -list of items as returned by the scene object - (QGraphicsItem) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of interesting collision items (QGraphicsItem) -</dd> -</dl><a NAME="E4GraphicsView.printDiagram" ID="E4GraphicsView.printDiagram"></a> -<h4>E4GraphicsView.printDiagram</h4> -<b>printDiagram</b>(<i>printer, diagramName = ""</i>) -<p> - Public method to print the diagram. -</p><dl> -<dt><i>printer</i></dt> -<dd> -reference to a ready configured printer object (QPrinter) -</dd><dt><i>diagramName</i></dt> -<dd> -name of the diagram (string) -</dd> -</dl><a NAME="E4GraphicsView.resizeScene" ID="E4GraphicsView.resizeScene"></a> -<h4>E4GraphicsView.resizeScene</h4> -<b>resizeScene</b>(<i>amount, isWidth = True</i>) -<p> - Public method to resize the scene. -</p><dl> -<dt><i>isWidth</i></dt> -<dd> -flag indicating width is to be resized (boolean) -</dd><dt><i>amount</i></dt> -<dd> -size increment (integer) -</dd> -</dl><a NAME="E4GraphicsView.saveImage" ID="E4GraphicsView.saveImage"></a> -<h4>E4GraphicsView.saveImage</h4> -<b>saveImage</b>(<i>filename, format = "PNG"</i>) -<p> - Public method to save the scene to a file. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file to write the image to (string) -</dd><dt><i>format</i></dt> -<dd> -format for the image file (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating success (boolean) -</dd> -</dl><a NAME="E4GraphicsView.setSceneSize" ID="E4GraphicsView.setSceneSize"></a> -<h4>E4GraphicsView.setSceneSize</h4> -<b>setSceneSize</b>(<i>width, height</i>) -<p> - Public method to set the scene size. -</p><dl> -<dt><i>width</i></dt> -<dd> -width for the scene (integer) -</dd><dt><i>height</i></dt> -<dd> -height for the scene (integer) -</dd> -</dl><a NAME="E4GraphicsView.setZoom" ID="E4GraphicsView.setZoom"></a> -<h4>E4GraphicsView.setZoom</h4> -<b>setZoom</b>(<i>zoomFactor</i>) -<p> - Public method to set the zoom factor. -</p><dl> -<dt><i>zoomFactor</i></dt> -<dd> -new zoom factor (float) -</dd> -</dl><a NAME="E4GraphicsView.zoom" ID="E4GraphicsView.zoom"></a> -<h4>E4GraphicsView.zoom</h4> -<b>zoom</b>(<i></i>) -<p> - Public method to get the current zoom factor. -</p><dl> -<dt>Returns:</dt> -<dd> -current zoom factor (float) -</dd> -</dl><a NAME="E4GraphicsView.zoomIn" ID="E4GraphicsView.zoomIn"></a> -<h4>E4GraphicsView.zoomIn</h4> -<b>zoomIn</b>(<i></i>) -<p> - Public method to zoom in. -</p><a NAME="E4GraphicsView.zoomOut" ID="E4GraphicsView.zoomOut"></a> -<h4>E4GraphicsView.zoomOut</h4> -<b>zoomOut</b>(<i></i>) -<p> - Public method to zoom out. -</p><a NAME="E4GraphicsView.zoomReset" ID="E4GraphicsView.zoomReset"></a> -<h4>E4GraphicsView.zoomReset</h4> -<b>zoomReset</b>(<i></i>) -<p> - Public method to handle the reset zoom context menu entry. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file