RoundRectItem Class Reference

#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/view/RoundRectItem.h>

+ Inheritance diagram for RoundRectItem:

Public Member Functions

virtual QPointF adjustPosition (QPointF &newPos)
 
void adjustScale (float &resultScalefactor)
 
QRectF boundingRect () const override
 
bool isEditable () const
 
bool isLevelOfDetailLow (QGraphicsSceneEvent *event) const
 
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
 
 RoundRectItem (const QRectF &bounds, const QColor &color, QGraphicsItem *parent=0)
 
void setBounds (QRectF newBounds)
 
void setColor (QColor newColor)
 
void setEditable (bool editable)
 
void setRimPen (QPen newPen)
 
void setSize (const QSizeF &newSize)
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Member Functions

void adjustCursor (Qt::CursorShape shape)
 
QRectF getBottomResizeBB () const
 
QRectF getLeftResizeBB () const
 
QRectF getRightResizeBB () const
 
QRectF getTopResizeBB () const
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void itemBoundingBoxChanged (float oldSize, float size)
 
virtual void itemMoved (const QPointF &oldPos, const QPointF &newPos)
 
virtual void itemResized (const QRectF &oldSize, const QRectF &newSize)
 
virtual bool itemResizing (const QRectF &oldSize, QRectF &proposedSize)
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Protected Attributes

QRectF bounds
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

Definition at line 34 of file RoundRectItem.h.

Constructor & Destructor Documentation

◆ RoundRectItem()

RoundRectItem ( const QRectF &  bounds,
const QColor &  color,
QGraphicsItem *  parent = 0 
)

Definition at line 36 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ adjustCursor()

void adjustCursor ( Qt::CursorShape  shape)
protected

Definition at line 301 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ adjustPosition()

QPointF adjustPosition ( QPointF &  newPos)
virtual

itemParent->scale()

itemParent->scale()

Reimplemented in StateItem.

Definition at line 425 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adjustScale()

void adjustScale ( float resultScalefactor)

Definition at line 404 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

◆ boundingRect()

QRectF boundingRect ( ) const
override

Definition at line 78 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ getBottomResizeBB()

QRectF getBottomResizeBB ( ) const
protected

Definition at line 375 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLeftResizeBB()

QRectF getLeftResizeBB ( ) const
protected

Definition at line 389 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRightResizeBB()

QRectF getRightResizeBB ( ) const
protected

Definition at line 396 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTopResizeBB()

QRectF getTopResizeBB ( ) const
protected

Definition at line 382 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hoverEnterEvent()

void hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 359 of file RoundRectItem.cpp.

◆ hoverLeaveEvent()

void hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 364 of file RoundRectItem.cpp.

◆ hoverMoveEvent()

void hoverMoveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

Definition at line 319 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

◆ isEditable()

bool isEditable ( ) const

Definition at line 478 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ isLevelOfDetailLow()

bool isLevelOfDetailLow ( QGraphicsSceneEvent *  event) const

Definition at line 445 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemBoundingBoxChanged()

virtual void itemBoundingBoxChanged ( float  oldSize,
float  size 
)
inlineprotectedvirtual

Reimplemented in StateItem.

Definition at line 92 of file RoundRectItem.h.

+ Here is the caller graph for this function:

◆ itemChange()

QVariant itemChange ( QGraphicsItem::GraphicsItemChange  change,
const QVariant &  value 
)
override

Definition at line 488 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemMoved()

virtual void itemMoved ( const QPointF &  oldPos,
const QPointF &  newPos 
)
inlineprotectedvirtual

Reimplemented in StateItem.

Definition at line 91 of file RoundRectItem.h.

+ Here is the caller graph for this function:

◆ itemResized()

virtual void itemResized ( const QRectF &  oldSize,
const QRectF &  newSize 
)
inlineprotectedvirtual

Reimplemented in StateItem.

Definition at line 90 of file RoundRectItem.h.

+ Here is the caller graph for this function:

◆ itemResizing()

virtual bool itemResizing ( const QRectF &  oldSize,
QRectF &  proposedSize 
)
inlineprotectedvirtual

Reimplemented in StateItem.

Definition at line 86 of file RoundRectItem.h.

+ Here is the caller graph for this function:

◆ mouseDoubleClickEvent()

void mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 523 of file RoundRectItem.cpp.

◆ mouseMoveEvent()

void mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 217 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 138 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 203 of file RoundRectItem.cpp.

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
override

Definition at line 110 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ setBounds()

void setBounds ( QRectF  newBounds)

Definition at line 83 of file RoundRectItem.cpp.

+ Here is the call graph for this function:

◆ setColor()

void setColor ( QColor  newColor)

Definition at line 63 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEditable()

void setEditable ( bool  editable)

Definition at line 483 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ setRimPen()

void setRimPen ( QPen  newPen)

Definition at line 73 of file RoundRectItem.cpp.

+ Here is the caller graph for this function:

◆ setSize()

void setSize ( const QSizeF &  newSize)

Definition at line 96 of file RoundRectItem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ bounds

QRectF bounds
protected

Definition at line 78 of file RoundRectItem.h.


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