public class PBlockScene extends TileScene
com.trolltech.qt.gui.QGraphicsScene.ItemIndexMethod, com.trolltech.qt.gui.QGraphicsScene.SceneLayer, com.trolltech.qt.gui.QGraphicsScene.SceneLayers
com.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>
cols, currX, currY, cursorPen, device, drawnTiles, highlit, lineWidth, mousePressed, prevX, prevY, qImage, rows, sceneSize, tileOccupantCount, tileSize, tileXMap, tileYMap, updateStatus
Constructor and Description |
---|
PBlockScene(Design design) |
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(com.trolltech.qt.gui.QPainter painter,
com.trolltech.qt.core.QRectF rect) |
List<UiPBlock> |
getBlocks() |
void |
setBlockOpacity(int blockOpacity) |
void |
setBlocks(List<UiPBlock> blocks) |
void |
setDrawIntConnections(boolean drawIntConnections) |
com.trolltech.qt.core.QRect |
tileRectToQRect(TileRectangle rect) |
getCurrX, getCurrY, getDesign, getDevice, getDrawnTileX, getDrawnTileY, getSceneSize, getTile, getTile, getTileSize, initializeScene, isUseImage, mouseDoubleClickEvent, mouseMoveEvent, setDesign, setDevice, setUseImage, updateCurrXY, updateCursor
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, width
blockSignals, 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, userProperty
public PBlockScene(Design design)
public void setDrawIntConnections(boolean drawIntConnections)
public List<UiPBlock> getBlocks()
public void setBlocks(List<UiPBlock> blocks)
public void drawBackground(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF rect)
drawBackground
in class TileScene
public void setBlockOpacity(int blockOpacity)
public com.trolltech.qt.core.QRect tileRectToQRect(TileRectangle rect)