public class SchematicScene
extends com.trolltech.qt.gui.QGraphicsScene
com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod, com.trolltech.qt.gui.QGraphicsScene.SceneLayer, com.trolltech.qt.gui.QGraphicsScene.SceneLayerscom.trolltech.qt.QSignalEmitter.AbstractSignal, com.trolltech.qt.QSignalEmitter.PrivateSignal0, com.trolltech.qt.QSignalEmitter.PrivateSignal1<A>, com.trolltech.qt.QSignalEmitter.PrivateSignal2<A,B>, com.trolltech.qt.QSignalEmitter.PrivateSignal3<A,B,C>, com.trolltech.qt.QSignalEmitter.PrivateSignal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.PrivateSignal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, com.trolltech.qt.QSignalEmitter.Signal0, com.trolltech.qt.QSignalEmitter.Signal1<A>, com.trolltech.qt.QSignalEmitter.Signal2<A,B>, com.trolltech.qt.QSignalEmitter.Signal3<A,B,C>, com.trolltech.qt.QSignalEmitter.Signal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.Signal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.Signal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.Signal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>| Modifier and Type | Field and Description |
|---|---|
com.trolltech.qt.QSignalEmitter.Signal0 |
cellDrawn |
com.trolltech.qt.QSignalEmitter.Signal0 |
layoutFinished
Emitted when a background layout finishes or is cancelled
|
com.trolltech.qt.QSignalEmitter.Signal1<String> |
layoutStarted
Emitted with the cell's name when a background layout starts
|
com.trolltech.qt.QSignalEmitter.Signal1<String> |
objectSelected |
| Constructor and Description |
|---|
SchematicScene(EDIFNetlist netlist) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelLayout()
Abandons a layout that is still running.
|
void |
drawCell(EDIFHierCellInst cellInst,
boolean zoomFit)
Draws a cell's schematic.
|
boolean |
isLayoutInProgress()
Whether a schematic is currently being laid out in the background
|
void |
mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event) |
void |
renderAll()
Renders the whole schematic at full detail no matter how the view is positioned.
|
void |
renderSchematic() |
void |
renderSettledViewport()
Slot for
SchematicScene.viewportSettleTimer; not meant to be called directly. |
void |
selectObject(String lookup,
boolean clearPreviousSelections) |
void |
viewportChanged()
Called by
SchematicView whenever the visible part of the scene changes. |
activeWindow, addEllipse, addEllipse, addEllipse, addEllipse, addEllipse, addEllipse, addItem, addLine, addLine, addLine, addLine, addPath, addPath, addPath, addPixmap, addPolygon, addPolygon, addPolygon, addRect, addRect, addRect, addRect, addRect, addRect, addSimpleText, addSimpleText, addText, addText, addWidget, addWidget, addWidget, advance, backgroundBrush, bspTreeDepth, clear, clearFocus, clearSelection, collidingItems, collidingItems, createItemGroup, destroyItemGroup, event, eventFilter, focusItem, font, foregroundBrush, fromNativePointer, hasFocus, height, inputMethodQuery, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, isSortCacheEnabled, itemAt, itemAt, itemIndexMethod, items, items, items, items, items, items, items, items, items, items, itemsBoundingRect, mouseGrabberItem, palette, removeItem, render, render, render, render, sceneRect, selectedItems, selectionArea, setActiveWindow, setBackgroundBrush, setBspTreeDepth, setFocus, setFocus, setFocusItem, setFocusItem, setFont, setForegroundBrush, setItemIndexMethod, setPalette, setSceneRect, setSceneRect, setSelectionArea, setSelectionArea, setSortCacheEnabled, setStickyFocus, setStyle, stickyFocus, style, update, update, update, views, widthblockSignals, children, connectSlotsByName, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, toString, userPropertypublic com.trolltech.qt.QSignalEmitter.Signal1<String> objectSelected
public com.trolltech.qt.QSignalEmitter.Signal0 cellDrawn
public com.trolltech.qt.QSignalEmitter.Signal1<String> layoutStarted
public com.trolltech.qt.QSignalEmitter.Signal0 layoutFinished
public SchematicScene(EDIFNetlist netlist)
public void drawCell(EDIFHierCellInst cellInst, boolean zoomFit)
SchematicScene.cancelLayout().cellInst - The cell instance to draw.zoomFit - Whether to zoom to fit the new schematic once it is drawn.public void cancelLayout()
SchematicScene.drawCell(EDIFHierCellInst, boolean) replaces it.public boolean isLayoutInProgress()
public void viewportChanged()
SchematicView whenever the visible part of the scene changes.
A single turn of the mouse wheel makes the view scale and then scroll, so it reaches here
more than once, and a gesture is many turns in quick succession. Redrawing on each one costs
about a tenth of a second on a large schematic and makes zooming feel like it is dragging
behind the mouse, so the redraw waits until the view stops moving. Qt keeps scaling the items
already on screen in the meantime, so the picture stays live throughout.public void renderSettledViewport()
SchematicScene.viewportSettleTimer; not meant to be called directly.public void renderAll()
public void renderSchematic()
public void mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)
mousePressEvent in class com.trolltech.qt.gui.QGraphicsScenepublic void selectObject(String lookup,
boolean clearPreviousSelections)