QElectroTech
0.70
|
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an handler, for modifie the geometrie of a another graphics item (like shapes). The graphics item to be modified, must call "installSceneEventFilter" of this item with itself for argument,. The ghraphics item to be modified, need to reimplement "sceneEventFilter" for create the modification behavior. More...
#include <qetgraphicshandleritem.h>
Public Types | |
enum | { Type = UserType + 1200 } |
Public Member Functions | |
QetGraphicsHandlerItem (qreal size=10) | |
QetGraphicsHandlerItem::QetGraphicsHandlerItem. More... | |
QRectF | boundingRect () const override |
QetGraphicsHandlerItem::boundingRect. More... | |
int | type () const override |
void | setColor (QColor color) |
QetGraphicsHandlerItem::setColor. More... | |
Static Public Member Functions | |
static QVector< QetGraphicsHandlerItem * > | handlerForPoint (const QVector< QPointF > &points, int size=10) |
QetGraphicsHandlerItem::handlerForPoint. More... | |
Protected Member Functions | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
QetGraphicsHandlerItem::paint. More... | |
Private Attributes | |
QRectF | m_handler_rect |
QRectF | m_br |
qreal | m_size |
QColor | m_color |
QPen | m_pen |
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an handler, for modifie the geometrie of a another graphics item (like shapes). The graphics item to be modified, must call "installSceneEventFilter" of this item with itself for argument,. The ghraphics item to be modified, need to reimplement "sceneEventFilter" for create the modification behavior.
Definition at line 31 of file qetgraphicshandleritem.h.
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 37 of file qetgraphicshandleritem.h.
QetGraphicsHandlerItem::QetGraphicsHandlerItem | ( | qreal | size = 10 | ) |
QetGraphicsHandlerItem::QetGraphicsHandlerItem.
size,the | size of the handler |
Definition at line 27 of file qetgraphicshandleritem.cpp.
References m_br, m_handler_rect, and m_size.
Referenced by handlerForPoint().
|
override |
QetGraphicsHandlerItem::boundingRect.
Definition at line 40 of file qetgraphicshandleritem.cpp.
References m_br.
|
static |
QetGraphicsHandlerItem::handlerForPoint.
points |
Definition at line 80 of file qetgraphicshandleritem.cpp.
References QetGraphicsHandlerItem().
Referenced by PartEllipse::addHandler(), PartArc::addHandler(), PartRectangle::addHandler(), PartPolygon::addHandler(), ElementPrimitiveDecorator::addHandler(), PartLine::addHandler(), QetShapeItem::addHandler(), and Conductor::addHandler().
|
overrideprotected |
QetGraphicsHandlerItem::paint.
painter | |
option | |
widget |
Definition at line 60 of file qetgraphicshandleritem.cpp.
References m_color, and m_handler_rect.
void QetGraphicsHandlerItem::setColor | ( | QColor | color | ) |
QetGraphicsHandlerItem::setColor.
color,set | the color of the handler |
Definition at line 48 of file qetgraphicshandleritem.cpp.
References m_color.
Referenced by Conductor::handlerMousePressEvent().
|
inlineoverride |
Definition at line 38 of file qetgraphicshandleritem.h.
References Type.
|
private |
Definition at line 46 of file qetgraphicshandleritem.h.
Referenced by boundingRect(), and QetGraphicsHandlerItem().
|
private |
Definition at line 49 of file qetgraphicshandleritem.h.
Referenced by paint(), and setColor().
|
private |
Definition at line 46 of file qetgraphicshandleritem.h.
Referenced by paint(), and QetGraphicsHandlerItem().
|
private |
Definition at line 50 of file qetgraphicshandleritem.h.
|
private |
Definition at line 48 of file qetgraphicshandleritem.h.
Referenced by QetGraphicsHandlerItem().