Go to the documentation of this file.
10#include <QtCore/QObject>
11#include <QtWidgets/QGraphicsItem>
21class CComponentSceneItem;
22class CRegistryElementShape;
50 QGraphicsItem* parent =
nullptr);
56 virtual QPainterPath
shape()
const;
57 virtual bool contains(
const QPointF& point)
const;
64 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
77 QPolygonF m_connectionLine;
82 bool m_isSourceSelected;
83 bool m_isDestSelected;
CGraphicsConnectorItem(const icmpstr::ISceneProvider &sceneProvider, int connectFlags=0, QGraphicsItem *parent=nullptr)
void InitEnds(CRegistryElementShape *sourceShapePtr, CRegistryElementShape *destShapePtr)
virtual QPainterPath shape() const
virtual QRectF boundingRect() const
virtual bool contains(const QPointF &point) const
void OnSourceRectMoved(const QRectF &rect)
void OnDestRectMoved(const QRectF &rect)
void OnSourceSelected(bool state)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void OnDestSelected(bool state)
Visualization of geometrical registry elements.
Interface for GUI objects managing scene.
This package contains (Qt based) implementations of compositor components.
© Witold Gantzke and Kirill Lepskiy