|
| QGraphicsPathItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) |
|
| QGraphicsPathItem (QPainterPath path, IQGraphicsItem parent=null, QGraphicsScene scene=null) |
|
override void | CreateProxy () |
|
override bool | Contains (QPointF point) |
|
|
|
override bool | IsObscuredBy (IQGraphicsItem item) |
|
|
|
override void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
|
|
|
new void | Dispose () |
|
| QAbstractGraphicsShapeItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) |
|
new void | Dispose () |
|
| QGraphicsItem (IQGraphicsItem parent=null, QGraphicsScene scene=null) |
|
virtual void | Advance (int phase) |
|
|
|
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
|
|
|
new void | ClearFocus () |
|
|
|
virtual bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
virtual bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
new
System.Collections.Generic.List
< IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
|
|
|
new object | Data (int key) |
|
|
|
new QTransform | DeviceTransform (QTransform viewportTransform) |
|
|
|
new void | EnsureVisible () |
|
|
|
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
|
|
|
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
|
|
|
new void | GrabKeyboard () |
|
|
|
new void | GrabMouse () |
|
|
|
new void | Hide () |
|
|
|
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
|
|
|
new bool | IsAncestorOf (IQGraphicsItem child) |
|
|
|
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
|
|
|
new bool | IsObscured () |
|
|
|
new bool | IsObscured (QRectF rect) |
|
|
|
new bool | IsObscured (double x, double y, double w, double h) |
|
|
|
new bool | IsVisibleTo (IQGraphicsItem parent) |
|
|
|
new QTransform | ItemTransform (IQGraphicsItem other) |
|
|
|
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
|
|
|
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
|
|
|
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
|
|
|
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QPointF | MapFromParent (QPointF point) |
|
|
|
new QPolygonF | MapFromParent (QRectF rect) |
|
|
|
new QPolygonF | MapFromParent (QPolygonF polygon) |
|
|
|
new QPainterPath | MapFromParent (QPainterPath path) |
|
|
|
new QPointF | MapFromParent (double x, double y) |
|
|
|
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
|
|
|
new QPointF | MapFromScene (QPointF point) |
|
|
|
new QPolygonF | MapFromScene (QRectF rect) |
|
|
|
new QPolygonF | MapFromScene (QPolygonF polygon) |
|
|
|
new QPainterPath | MapFromScene (QPainterPath path) |
|
|
|
new QPointF | MapFromScene (double x, double y) |
|
|
|
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromParent (QRectF rect) |
|
|
|
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromScene (QRectF rect) |
|
|
|
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToParent (QRectF rect) |
|
|
|
new QRectF | MapRectToParent (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToScene (QRectF rect) |
|
|
|
new QRectF | MapRectToScene (double x, double y, double w, double h) |
|
|
|
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
|
|
|
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
|
|
|
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QPointF | MapToParent (QPointF point) |
|
|
|
new QPolygonF | MapToParent (QRectF rect) |
|
|
|
new QPolygonF | MapToParent (QPolygonF polygon) |
|
|
|
new QPainterPath | MapToParent (QPainterPath path) |
|
|
|
new QPointF | MapToParent (double x, double y) |
|
|
|
new QPolygonF | MapToParent (double x, double y, double w, double h) |
|
|
|
new QPointF | MapToScene (QPointF point) |
|
|
|
new QPolygonF | MapToScene (QRectF rect) |
|
|
|
new QPolygonF | MapToScene (QPolygonF polygon) |
|
|
|
new QPainterPath | MapToScene (QPainterPath path) |
|
|
|
new QPointF | MapToScene (double x, double y) |
|
|
|
new QPolygonF | MapToScene (double x, double y, double w, double h) |
|
|
|
new void | MoveBy (double dx, double dy) |
|
|
|
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
|
|
|
new void | ResetMatrix () |
|
|
|
new void | ResetTransform () |
|
|
|
new void | Rotate (double angle) |
|
|
|
new double | Scale () |
|
|
|
new void | Scale (double sx, double sy) |
|
|
|
new void | Scroll (double dx, double dy) |
|
|
|
new void | Scroll (double dx, double dy, QRectF rect) |
|
|
|
new void | SetActive (bool active) |
|
|
|
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
|
|
|
new void | SetData (int key, object value) |
|
|
|
new void | SetEnabled (bool enabled) |
|
|
|
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
|
|
|
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
|
|
|
new void | SetMatrix (QMatrix matrix, bool combine=false) |
|
|
|
new void | SetPos (double x, double y) |
|
|
|
new void | SetScale (double scale) |
|
|
|
new void | SetSelected (bool selected) |
|
|
|
new void | SetTransform (QTransform matrix, bool combine=false) |
|
|
|
new void | SetTransformOriginPoint (double ax, double ay) |
|
|
|
new void | SetVisible (bool visible) |
|
|
|
new void | Shear (double sh, double sv) |
|
|
|
new void | Show () |
|
|
|
new void | StackBefore (IQGraphicsItem sibling) |
|
|
|
new QGraphicsObject | ToGraphicsObject () |
|
|
|
new void | Translate (double dx, double dy) |
|
|
|
new void | UngrabKeyboard () |
|
|
|
new void | UngrabMouse () |
|
|
|
new void | UnsetCursor () |
|
|
|
new void | Update () |
|
|
|
new void | Update (QRectF rect) |
|
|
|
new void | Update (double x, double y, double width, double height) |
|
|
|
new void | Dispose () |
|
void | Advance (int phase) |
|
|
|
new QRegion | BoundingRegion (QTransform itemToDeviceTransform) |
|
|
|
new void | ClearFocus () |
|
|
|
bool | CollidesWithItem (IQGraphicsItem other, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
bool | CollidesWithPath (QPainterPath path, Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
new
System.Collections.Generic.List
< IQGraphicsItem > | CollidingItems (Qt.ItemSelectionMode mode=Qt.ItemSelectionMode.IntersectsItemShape) |
|
|
|
new IQGraphicsItem | CommonAncestorItem (IQGraphicsItem other) |
|
|
|
bool | Contains (QPointF point) |
|
|
|
new object | Data (int key) |
|
|
|
new QTransform | DeviceTransform (QTransform viewportTransform) |
|
|
|
new void | EnsureVisible () |
|
|
|
new void | EnsureVisible (QRectF rect, int xmargin=50, int ymargin=50) |
|
|
|
new void | EnsureVisible (double x, double y, double w, double h, int xmargin=50, int ymargin=50) |
|
|
|
new void | GrabKeyboard () |
|
|
|
new void | GrabMouse () |
|
|
|
new void | Hide () |
|
|
|
new void | InstallSceneEventFilter (IQGraphicsItem filterItem) |
|
|
|
new bool | IsAncestorOf (IQGraphicsItem child) |
|
|
|
new bool | IsBlockedByModalPanel (IQGraphicsItem blockingPanel=null) |
|
|
|
new bool | IsObscured () |
|
|
|
new bool | IsObscured (QRectF rect) |
|
|
|
new bool | IsObscured (double x, double y, double w, double h) |
|
|
|
bool | IsObscuredBy (IQGraphicsItem item) |
|
|
|
new bool | IsVisibleTo (IQGraphicsItem parent) |
|
|
|
new QTransform | ItemTransform (IQGraphicsItem other) |
|
|
|
new QTransform | ItemTransform (IQGraphicsItem other, ref bool ok) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QPainterPath | MapFromItem (IQGraphicsItem item, QPainterPath path) |
|
|
|
new QPointF | MapFromItem (IQGraphicsItem item, QPointF point) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, QPolygonF polygon) |
|
|
|
new QPointF | MapFromItem (IQGraphicsItem item, double x, double y) |
|
|
|
new QPolygonF | MapFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QPolygonF | MapFromParent (QPolygonF polygon) |
|
|
|
new QPolygonF | MapFromParent (QRectF rect) |
|
|
|
new QPainterPath | MapFromParent (QPainterPath path) |
|
|
|
new QPointF | MapFromParent (QPointF point) |
|
|
|
new QPointF | MapFromParent (double x, double y) |
|
|
|
new QPolygonF | MapFromParent (double x, double y, double w, double h) |
|
|
|
new QPolygonF | MapFromScene (QPolygonF polygon) |
|
|
|
new QPolygonF | MapFromScene (QRectF rect) |
|
|
|
new QPainterPath | MapFromScene (QPainterPath path) |
|
|
|
new QPointF | MapFromScene (QPointF point) |
|
|
|
new QPointF | MapFromScene (double x, double y) |
|
|
|
new QPolygonF | MapFromScene (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QRectF | MapRectFromItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromParent (QRectF rect) |
|
|
|
new QRectF | MapRectFromParent (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectFromScene (QRectF rect) |
|
|
|
new QRectF | MapRectFromScene (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QRectF | MapRectToItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToParent (QRectF rect) |
|
|
|
new QRectF | MapRectToParent (double x, double y, double w, double h) |
|
|
|
new QRectF | MapRectToScene (QRectF rect) |
|
|
|
new QRectF | MapRectToScene (double x, double y, double w, double h) |
|
|
|
new QPainterPath | MapToItem (IQGraphicsItem item, QPainterPath path) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, QRectF rect) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, QPolygonF polygon) |
|
|
|
new QPointF | MapToItem (IQGraphicsItem item, QPointF point) |
|
|
|
new QPointF | MapToItem (IQGraphicsItem item, double x, double y) |
|
|
|
new QPolygonF | MapToItem (IQGraphicsItem item, double x, double y, double w, double h) |
|
|
|
new QPolygonF | MapToParent (QPolygonF polygon) |
|
|
|
new QPainterPath | MapToParent (QPainterPath path) |
|
|
|
new QPointF | MapToParent (QPointF point) |
|
|
|
new QPolygonF | MapToParent (QRectF rect) |
|
|
|
new QPointF | MapToParent (double x, double y) |
|
|
|
new QPolygonF | MapToParent (double x, double y, double w, double h) |
|
|
|
new QPolygonF | MapToScene (QPolygonF polygon) |
|
|
|
new QPointF | MapToScene (QPointF point) |
|
|
|
new QPainterPath | MapToScene (QPainterPath path) |
|
|
|
new QPolygonF | MapToScene (QRectF rect) |
|
|
|
new QPointF | MapToScene (double x, double y) |
|
|
|
new QPolygonF | MapToScene (double x, double y, double w, double h) |
|
|
|
new void | MoveBy (double dx, double dy) |
|
|
|
void | Paint (QPainter painter, QStyleOptionGraphicsItem option, QWidget widget=null) |
|
|
|
new void | RemoveSceneEventFilter (IQGraphicsItem filterItem) |
|
|
|
new void | ResetMatrix () |
|
|
|
new void | ResetTransform () |
|
|
|
new void | Rotate (double angle) |
|
|
|
new double | Scale () |
|
|
|
new void | Scale (double sx, double sy) |
|
|
|
new void | Scroll (double dx, double dy) |
|
|
|
new void | Scroll (double dx, double dy, QRectF rect) |
|
|
|
new void | SetActive (bool active) |
|
|
|
new void | SetCacheMode (QGraphicsItem.CacheMode mode, QSize cacheSize) |
|
|
|
new void | SetData (int key, object value) |
|
|
|
new void | SetEnabled (bool enabled) |
|
|
|
new void | SetFlag (QGraphicsItem.GraphicsItemFlag flag, bool enabled=true) |
|
|
|
new void | SetFocus (Qt.FocusReason focusReason=Qt.FocusReason.OtherFocusReason) |
|
|
|
new void | SetMatrix (QMatrix matrix, bool combine=false) |
|
|
|
new void | SetPos (double x, double y) |
|
|
|
new void | SetScale (double scale) |
|
|
|
new void | SetSelected (bool selected) |
|
|
|
new void | SetTransform (QTransform matrix, bool combine=false) |
|
|
|
new void | SetTransformOriginPoint (double ax, double ay) |
|
|
|
new void | SetVisible (bool visible) |
|
|
|
new void | Shear (double sh, double sv) |
|
|
|
new void | Show () |
|
|
|
new void | StackBefore (IQGraphicsItem sibling) |
|
|
|
new QGraphicsObject | ToGraphicsObject () |
|
|
|
new void | Translate (double dx, double dy) |
|
|
|
new void | UngrabKeyboard () |
|
|
|
new void | UngrabMouse () |
|
|
|
new void | UnsetCursor () |
|
|
|
new void | Update () |
|
|
|
new void | Update (QRectF rect) |
|
|
|
new void | Update (double x, double y, double width, double height) |
|
|
|
The QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene.
To set the item's path, pass a QPainterPath to QGraphicsPathItem's constructor, or call the setPath() function. The path() function returns the current path.
QGraphicsPathItem uses the path to provide a reasonable implementation of boundingRect(), shape(), and contains(). The paint() function draws the path using the item's associated pen and brush, which you can set by calling the setPen() and setBrush() functions.
See also QGraphicsRectItem, QGraphicsEllipseItem, QGraphicsPolygonItem, QGraphicsTextItem, QGraphicsLineItem, QGraphicsPixmapItem, and Graphics View Framework.