Documentation/Source/eric5.E5Graphics.E5GraphicsView.html

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
97 <td>Public method to handle the reset zoom context menu entry.</td> 97 <td>Public method to handle the reset zoom context menu entry.</td>
98 </tr> 98 </tr>
99 </table> 99 </table>
100 <a NAME="E5GraphicsView.__init__" ID="E5GraphicsView.__init__"></a> 100 <a NAME="E5GraphicsView.__init__" ID="E5GraphicsView.__init__"></a>
101 <h4>E5GraphicsView (Constructor)</h4> 101 <h4>E5GraphicsView (Constructor)</h4>
102 <b>E5GraphicsView</b>(<i>scene, parent = None</i>) 102 <b>E5GraphicsView</b>(<i>scene, parent=None</i>)
103 <p> 103 <p>
104 Constructor 104 Constructor
105 </p><dl> 105 </p><dl>
106 <dt><i>scene</i></dt> 106 <dt><i>scene</i></dt>
107 <dd> 107 <dd>
110 <dd> 110 <dd>
111 parent widget (QWidget) 111 parent widget (QWidget)
112 </dd> 112 </dd>
113 </dl><a NAME="E5GraphicsView.__getDiagram" ID="E5GraphicsView.__getDiagram"></a> 113 </dl><a NAME="E5GraphicsView.__getDiagram" ID="E5GraphicsView.__getDiagram"></a>
114 <h4>E5GraphicsView.__getDiagram</h4> 114 <h4>E5GraphicsView.__getDiagram</h4>
115 <b>__getDiagram</b>(<i>rect, format = "PNG", filename = None</i>) 115 <b>__getDiagram</b>(<i>rect, format="PNG", filename=None</i>)
116 <p> 116 <p>
117 Private method to retrieve the diagram from the scene fitting it 117 Private method to retrieve the diagram from the scene fitting it
118 in the minimum rectangle. 118 in the minimum rectangle.
119 </p><dl> 119 </p><dl>
120 <dt><i>rect</i></dt> 120 <dt><i>rect</i></dt>
121 <dd> 121 <dd>
122 minimum rectangle fitting the diagram (QRectF) 122 minimum rectangle fitting the diagram (QRectF)
132 <dd> 132 <dd>
133 diagram pixmap to receive the diagram (QPixmap) 133 diagram pixmap to receive the diagram (QPixmap)
134 </dd> 134 </dd>
135 </dl><a NAME="E5GraphicsView._getDiagramRect" ID="E5GraphicsView._getDiagramRect"></a> 135 </dl><a NAME="E5GraphicsView._getDiagramRect" ID="E5GraphicsView._getDiagramRect"></a>
136 <h4>E5GraphicsView._getDiagramRect</h4> 136 <h4>E5GraphicsView._getDiagramRect</h4>
137 <b>_getDiagramRect</b>(<i>border = 0</i>) 137 <b>_getDiagramRect</b>(<i>border=0</i>)
138 <p> 138 <p>
139 Protected method to calculate the minimum rectangle fitting the diagram. 139 Protected method to calculate the minimum rectangle fitting the diagram.
140 </p><dl> 140 </p><dl>
141 <dt><i>border</i></dt> 141 <dt><i>border</i></dt>
142 <dd> 142 <dd>
147 <dd> 147 <dd>
148 the minimum rectangle (QRectF) 148 the minimum rectangle (QRectF)
149 </dd> 149 </dd>
150 </dl><a NAME="E5GraphicsView._getDiagramSize" ID="E5GraphicsView._getDiagramSize"></a> 150 </dl><a NAME="E5GraphicsView._getDiagramSize" ID="E5GraphicsView._getDiagramSize"></a>
151 <h4>E5GraphicsView._getDiagramSize</h4> 151 <h4>E5GraphicsView._getDiagramSize</h4>
152 <b>_getDiagramSize</b>(<i>border = 0</i>) 152 <b>_getDiagramSize</b>(<i>border=0</i>)
153 <p> 153 <p>
154 Protected method to calculate the minimum size fitting the diagram. 154 Protected method to calculate the minimum size fitting the diagram.
155 </p><dl> 155 </p><dl>
156 <dt><i>border</i></dt> 156 <dt><i>border</i></dt>
157 <dd> 157 <dd>
178 <dd> 178 <dd>
179 list of interesting collision items (QGraphicsItem) 179 list of interesting collision items (QGraphicsItem)
180 </dd> 180 </dd>
181 </dl><a NAME="E5GraphicsView.printDiagram" ID="E5GraphicsView.printDiagram"></a> 181 </dl><a NAME="E5GraphicsView.printDiagram" ID="E5GraphicsView.printDiagram"></a>
182 <h4>E5GraphicsView.printDiagram</h4> 182 <h4>E5GraphicsView.printDiagram</h4>
183 <b>printDiagram</b>(<i>printer, diagramName = ""</i>) 183 <b>printDiagram</b>(<i>printer, diagramName=""</i>)
184 <p> 184 <p>
185 Public method to print the diagram. 185 Public method to print the diagram.
186 </p><dl> 186 </p><dl>
187 <dt><i>printer</i></dt> 187 <dt><i>printer</i></dt>
188 <dd> 188 <dd>
191 <dd> 191 <dd>
192 name of the diagram (string) 192 name of the diagram (string)
193 </dd> 193 </dd>
194 </dl><a NAME="E5GraphicsView.resizeScene" ID="E5GraphicsView.resizeScene"></a> 194 </dl><a NAME="E5GraphicsView.resizeScene" ID="E5GraphicsView.resizeScene"></a>
195 <h4>E5GraphicsView.resizeScene</h4> 195 <h4>E5GraphicsView.resizeScene</h4>
196 <b>resizeScene</b>(<i>amount, isWidth = True</i>) 196 <b>resizeScene</b>(<i>amount, isWidth=True</i>)
197 <p> 197 <p>
198 Public method to resize the scene. 198 Public method to resize the scene.
199 </p><dl> 199 </p><dl>
200 <dt><i>isWidth</i></dt> 200 <dt><i>isWidth</i></dt>
201 <dd> 201 <dd>
204 <dd> 204 <dd>
205 size increment (integer) 205 size increment (integer)
206 </dd> 206 </dd>
207 </dl><a NAME="E5GraphicsView.saveImage" ID="E5GraphicsView.saveImage"></a> 207 </dl><a NAME="E5GraphicsView.saveImage" ID="E5GraphicsView.saveImage"></a>
208 <h4>E5GraphicsView.saveImage</h4> 208 <h4>E5GraphicsView.saveImage</h4>
209 <b>saveImage</b>(<i>filename, format = "PNG"</i>) 209 <b>saveImage</b>(<i>filename, format="PNG"</i>)
210 <p> 210 <p>
211 Public method to save the scene to a file. 211 Public method to save the scene to a file.
212 </p><dl> 212 </p><dl>
213 <dt><i>filename</i></dt> 213 <dt><i>filename</i></dt>
214 <dd> 214 <dd>

eric ide

mercurial