public class GUIModuleInst
extends com.trolltech.qt.gui.QGraphicsPolygonItem
com.trolltech.qt.gui.QGraphicsPolygonItem.enum_1
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>
Modifier and Type | Field and Description |
---|---|
com.trolltech.qt.QSignalEmitter.Signal0 |
moved |
com.trolltech.qt.QSignalEmitter.Signal1<Boolean> |
selected |
Constructor and Description |
---|
GUIModuleInst(ModuleInst modInst,
TileScene scene,
boolean movable) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(GUIMultiNetLine line) |
void |
checkPlacement()
TODO - This method is overly optimistic and needs to be updated - 3/8/16 - CL
|
com.trolltech.qt.core.QPointF |
getAnchorOffset() |
HMTile |
getHMTile(Tile tile) |
ModuleInst |
getModuleInst() |
com.trolltech.qt.gui.QPolygonF |
getShape() |
int |
getSizeInTiles() |
void |
hideGuts() |
void |
hideMyLines() |
boolean |
isGrabbed() |
boolean |
isValidlyPlaced() |
Object |
itemChange(com.trolltech.qt.gui.QGraphicsItem.GraphicsItemChange change,
Object value) |
void |
mouseDoubleClickEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event) |
void |
mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event) |
void |
mouseReleaseEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event) |
void |
setAnchorOffset() |
void |
setShape(com.trolltech.qt.gui.QPolygonF shape) |
void |
setState(GUIShapeState newState) |
void |
showGuts() |
void |
showMyLines() |
boundingRect, contains, extension, fillRule, fromNativePointer, isObscuredBy, opaqueArea, paint, polygon, setExtension, setFillRule, setPolygon, shape, supportsExtension, type
__qt_cast_to_QGraphicsItem, acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptsHoverEvents, addToIndex, advance, boundingRegion, boundingRegionGranularity, brush, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithPath, collidingItems, commonAncestorItem, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, ensureVisible, flags, focusInEvent, focusOutEvent, grabKeyboard, grabMouse, group, handlesChildEvents, hasCursor, hasFocus, hide, hoverEnterEvent, hoverLeaveEvent, hoverMoveEvent, inputMethodEvent, inputMethodQuery, installSceneEventFilter, isAncestorOf, isClipped, isEnabled, isObscured, isObscured, isObscured, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemTransform, keyPressEvent, keyReleaseEvent, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapRectFromItem, mapRectFromItem, mapRectFromParent, mapRectFromParent, mapRectFromScene, mapRectFromScene, mapRectToItem, mapRectToItem, mapRectToParent, mapRectToParent, mapRectToScene, mapRectToScene, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mouseMoveEvent, moveBy, opacity, parentItem, parentWidget, pen, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotate, scale, scene, sceneBoundingRect, sceneEvent, sceneEventFilter, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptsHoverEvents, setBoundingRegionGranularity, setBrush, setCacheMode, setCursor, setData, setEnabled, setFlag, setFlags, setFocus, setGroup, setHandlesChildEvents, setOpacity, setParentItem, setPen, setPos, setPos, setSelected, setToolTip, setTransform, setVisible, setZValue, shear, show, toolTip, topLevelItem, topLevelWidget, transform, translate, ungrabKeyboard, ungrabMouse, unsetCursor, update, update, wheelEvent, window, x, y, zValue
disableGarbageCollection, dispose, equals, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
public com.trolltech.qt.QSignalEmitter.Signal1<Boolean> selected
public com.trolltech.qt.QSignalEmitter.Signal0 moved
public GUIModuleInst(ModuleInst modInst, TileScene scene, boolean movable)
public void checkPlacement()
public void showGuts()
public void hideGuts()
public void mouseDoubleClickEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)
mouseDoubleClickEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
mouseDoubleClickEvent
in class com.trolltech.qt.gui.QAbstractGraphicsShapeItem
public Object itemChange(com.trolltech.qt.gui.QGraphicsItem.GraphicsItemChange change, Object value)
itemChange
in interface com.trolltech.qt.gui.QGraphicsItemInterface
itemChange
in class com.trolltech.qt.gui.QAbstractGraphicsShapeItem
public boolean isGrabbed()
public void mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)
mousePressEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
mousePressEvent
in class com.trolltech.qt.gui.QAbstractGraphicsShapeItem
public void mouseReleaseEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)
mouseReleaseEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
mouseReleaseEvent
in class com.trolltech.qt.gui.QAbstractGraphicsShapeItem
public ModuleInst getModuleInst()
public boolean isValidlyPlaced()
public void setAnchorOffset()
public com.trolltech.qt.core.QPointF getAnchorOffset()
public int getSizeInTiles()
public void setState(GUIShapeState newState)
public com.trolltech.qt.gui.QPolygonF getShape()
public void setShape(com.trolltech.qt.gui.QPolygonF shape)
shape
- the shape to setpublic void addLine(GUIMultiNetLine line)
public void showMyLines()
public void hideMyLines()