Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes | Friends | Related Functions

DiagramItem Class Reference

[0] More...

#include <diagramitem.h>

Inheritance diagram for DiagramItem:
Inheritance graph
Collaboration diagram for DiagramItem:
Collaboration graph

List of all members.

Public Types

enum  { Type = UserType + 15 }
enum  { Type = 1, UserType = 65536 }
enum  { Type = 5 }
enum  { Type = UserType + 15 }
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
enum  DiagramType {
  Step, Conditional, StartEnd, Io,
  Box, Triangle
enum  DiagramType {
  Step, Conditional, StartEnd, Io,
  Box, Triangle
enum  GraphicsItemChange {
  ItemPositionChange, ItemMatrixChange, ItemVisibleChange, ItemEnabledChange,
  ItemSelectedChange, ItemParentChange, ItemChildAddedChange, ItemChildRemovedChange,
  ItemTransformChange, ItemPositionHasChanged, ItemTransformHasChanged, ItemSceneChange,
  ItemVisibleHasChanged, ItemEnabledHasChanged, ItemSelectedHasChanged, ItemParentHasChanged,
  ItemSceneHasChanged, ItemCursorChange, ItemCursorHasChanged, ItemToolTipChange,
  ItemToolTipHasChanged, ItemFlagsChange, ItemFlagsHaveChanged, ItemZValueChange,
  ItemZValueHasChanged, ItemOpacityChange, ItemOpacityHasChanged
enum  GraphicsItemFlag {
  ItemIsMovable = 0x1, ItemIsSelectable = 0x2, ItemIsFocusable = 0x4, ItemClipsToShape = 0x8,
  ItemClipsChildrenToShape = 0x10, ItemIgnoresTransformations = 0x20, ItemIgnoresParentOpacity = 0x40, ItemDoesntPropagateOpacityToChildren = 0x80,
  ItemStacksBehindParent = 0x100

Public Member Functions

bool acceptDrops () const
Qt::MouseButtons acceptedMouseButtons () const
bool acceptHoverEvents () const
bool acceptsHoverEvents () const
void addArrow (Arrow *arrow)
virtual void advance (int phase)
QRectF boundingRect () const
QRegion boundingRegion (const QTransform &itemToDeviceTransform) const
qreal boundingRegionGranularity () const
QBrush brush () const
CacheMode cacheMode () const
QList< QGraphicsItem * > childItems () const
QList< QGraphicsItem * > children () const
QRectF childrenBoundingRect () const
void clearFocus ()
QPainterPath clipPath () const
virtual bool collidesWithItem (const QGraphicsItem *other, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
virtual bool collidesWithPath (const QPainterPath &path, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QList< QGraphicsItem * > collidingItems (Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QGraphicsItemcommonAncestorItem (const QGraphicsItem *other) const
bool contains (const QPointF &point) const
QCursor cursor () const
QVariant data (int key) const
QTransform deviceTransform (const QTransform &viewportTransform) const
 DiagramItem (DiagramType diagramType, QGraphicsItem *item=0, QGraphicsScene *scene=0)
 DiagramItem (DiagramType diagramType, QMenu *contextMenu, QGraphicsItem *parent=0, QGraphicsScene *scene=0)
DiagramType diagramType () const
DiagramType diagramType () const
qreal effectiveOpacity () const
void ensureVisible (const QRectF &rect=QRectF(), int xmargin=50, int ymargin=50)
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin=50, int ymargin=50)
Qt::FillRule fillRule () const
GraphicsItemFlags flags () const
void grabKeyboard ()
void grabMouse ()
QGraphicsItemGroupgroup () const
bool handlesChildEvents () const
bool hasCursor () const
bool hasFocus () const
void hide ()
QPixmap image () const
void installSceneEventFilter (QGraphicsItem *filterItem)
bool isAncestorOf (const QGraphicsItem *child) const
bool isClipped () const
bool isEnabled () const
bool isObscured () const
bool isObscured (qreal x, qreal y, qreal w, qreal h) const
bool isObscured (const QRectF &rect) const
bool isObscuredBy (const QGraphicsItem *item) const
bool isSelected () const
bool isUnderMouse () const
bool isVisible () const
bool isVisibleTo (const QGraphicsItem *parent) const
bool isWidget () const
bool isWindow () const
QTransform itemTransform (const QGraphicsItem *other, bool *ok=0) const
QPolygonF mapFromItem (const QGraphicsItem *item, const QRectF &rect) const
QPointF mapFromItem (const QGraphicsItem *item, const QPointF &point) const
QPolygonF mapFromItem (const QGraphicsItem *item, const QPolygonF &polygon) const
QPointF mapFromItem (const QGraphicsItem *item, qreal x, qreal y) const
QPolygonF mapFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
QPainterPath mapFromItem (const QGraphicsItem *item, const QPainterPath &path) const
QPointF mapFromParent (const QPointF &point) const
QPolygonF mapFromParent (const QRectF &rect) const
QPolygonF mapFromParent (const QPolygonF &polygon) const
QPointF mapFromParent (qreal x, qreal y) const
QPolygonF mapFromParent (qreal x, qreal y, qreal w, qreal h) const
QPainterPath mapFromParent (const QPainterPath &path) const
QPointF mapFromScene (const QPointF &point) const
QPolygonF mapFromScene (const QRectF &rect) const
QPolygonF mapFromScene (const QPolygonF &polygon) const
QPointF mapFromScene (qreal x, qreal y) const
QPolygonF mapFromScene (qreal x, qreal y, qreal w, qreal h) const
QPainterPath mapFromScene (const QPainterPath &path) const
QRectF mapRectFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
QRectF mapRectFromItem (const QGraphicsItem *item, const QRectF &rect) const
QRectF mapRectFromParent (const QRectF &rect) const
QRectF mapRectFromParent (qreal x, qreal y, qreal w, qreal h) const
QRectF mapRectFromScene (const QRectF &rect) const
QRectF mapRectFromScene (qreal x, qreal y, qreal w, qreal h) const
QRectF mapRectToItem (const QGraphicsItem *item, const QRectF &rect) const
QRectF mapRectToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
QRectF mapRectToParent (const QRectF &rect) const
QRectF mapRectToParent (qreal x, qreal y, qreal w, qreal h) const
QRectF mapRectToScene (const QRectF &rect) const
QRectF mapRectToScene (qreal x, qreal y, qreal w, qreal h) const
QPointF mapToItem (const QGraphicsItem *item, const QPointF &point) const
QPolygonF mapToItem (const QGraphicsItem *item, const QRectF &rect) const
QPolygonF mapToItem (const QGraphicsItem *item, const QPolygonF &polygon) const
QPainterPath mapToItem (const QGraphicsItem *item, const QPainterPath &path) const
QPointF mapToItem (const QGraphicsItem *item, qreal x, qreal y) const
QPolygonF mapToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
QPolygonF mapToParent (const QRectF &rect) const
QPolygonF mapToParent (const QPolygonF &polygon) const
QPainterPath mapToParent (const QPainterPath &path) const
QPointF mapToParent (qreal x, qreal y) const
QPolygonF mapToParent (qreal x, qreal y, qreal w, qreal h) const
QPointF mapToParent (const QPointF &point) const
QPointF mapToScene (const QPointF &point) const
QPolygonF mapToScene (const QRectF &rect) const
QPolygonF mapToScene (const QPolygonF &polygon) const
QPointF mapToScene (qreal x, qreal y) const
QPolygonF mapToScene (qreal x, qreal y, qreal w, qreal h) const
QPainterPath mapToScene (const QPainterPath &path) const
QMatrix matrix () const
void moveBy (qreal dx, qreal dy)
qreal opacity () const
QPainterPath opaqueArea () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
QGraphicsItemparentItem () const
QGraphicsWidgetparentWidget () const
QPen pen () const
QPolygonF polygon () const
QPointF pos () const
void removeArrow (Arrow *arrow)
void removeArrows ()
void removeSceneEventFilter (QGraphicsItem *filterItem)
void resetMatrix ()
void resetTransform ()
void rotate (qreal angle)
void scale (qreal sx, qreal sy)
QGraphicsScenescene () const
QRectF sceneBoundingRect () const
QMatrix sceneMatrix () const
QPointF scenePos () const
QTransform sceneTransform () const
void scroll (qreal dx, qreal dy, const QRectF &rect=QRectF())
void setAcceptDrops (bool on)
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
void setAcceptHoverEvents (bool enabled)
void setAcceptsHoverEvents (bool enabled)
void setBoundingRegionGranularity (qreal granularity)
void setBrush (const QBrush &brush)
void setCacheMode (CacheMode mode, const QSize &cacheSize=QSize())
void setCursor (const QCursor &cursor)
void setData (int key, const QVariant &value)
void setEnabled (bool enabled)
void setFillRule (Qt::FillRule rule)
void setFlag (GraphicsItemFlag flag, bool enabled=true)
void setFlags (GraphicsItemFlags flags)
void setFocus (Qt::FocusReason focusReason=Qt::OtherFocusReason)
void setGroup (QGraphicsItemGroup *group)
void setHandlesChildEvents (bool enabled)
void setMatrix (const QMatrix &matrix, bool combine=false)
void setOpacity (qreal opacity)
void setParentItem (QGraphicsItem *parent)
void setPen (const QPen &pen)
void setPolygon (const QPolygonF &polygon)
void setPos (qreal x, qreal y)
void setPos (const QPointF &pos)
void setSelected (bool selected)
void setToolTip (const QString &toolTip)
void setTransform (const QTransform &matrix, bool combine=false)
void setVisible (bool visible)
void setZValue (qreal z)
QPainterPath shape () const
void shear (qreal sh, qreal sv)
void show ()
QString toolTip () const
QGraphicsItemtopLevelItem () const
QGraphicsWidgettopLevelWidget () const
QTransform transform () const
void translate (qreal dx, qreal dy)
int type () const
int type () const
void ungrabKeyboard ()
void ungrabMouse ()
void unsetCursor ()
void update (qreal x, qreal y, qreal width, qreal height)
void update (const QRectF &rect=QRectF())
QGraphicsWidgetwindow () const
qreal x () const
qreal y () const
qreal zValue () const

Protected Types

enum  Extension { UserExtension = 0x80000000 }

Protected Member Functions

void addToIndex ()
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
QVariant extension (const QVariant &variant) const
virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
virtual void inputMethodEvent (QInputMethodEvent *event)
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
QVariant itemChange (GraphicsItemChange change, const QVariant &value)
virtual void keyPressEvent (QKeyEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
void prepareGeometryChange ()
void removeFromIndex ()
virtual bool sceneEvent (QEvent *event)
virtual bool sceneEventFilter (QGraphicsItem *watched, QEvent *event)
void setExtension (Extension extension, const QVariant &variant)
bool supportsExtension (Extension extension) const
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)

Protected Attributes


Private Attributes

QList< Arrow * > arrows
QPolygonF boxPolygon
DiagramType myDiagramType
QPolygonF myPolygon
QPolygonF trianglePolygon


class ::tst_QGraphicsItem

Related Functions

(Note that these are not member functions.)

qgraphicsitem_cast (QGraphicsItem *item)

Detailed Description


Definition at line 65 of file diagramitem.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index