Envision
A visual programming IDE for object-oriented languages
|
An overlay to draw an arrow from the first item to the second item. More...
Public Types | |
typedef ArrowOverlayStyle | StyleType |
Public Member Functions | |
ArrowOverlay (Item *arrowFrom, Item *arrowTo, const StyleType *style=itemStyles().get()) | |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
virtual Visualization::InteractionHandler * | handler () const override |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
void | setHighlighted (bool highlighted) |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
const StyleType * | style () const |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static Visualization::StyleSet< ArrowOverlay > & | itemStyles () |
static bool | removeAddOn (Visualization::VisualizationAddOn *addOn) |
static void | setDefaultClassHandler (Visualization::InteractionHandler *handler) |
Protected Member Functions | |
virtual void | determineChildren () override |
virtual QPainterPath | shape () const override |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Static Private Member Functions | |
static QList< Visualization::VisualizationAddOn * > & | staticAddOns () |
Private Attributes | |
QPolygonF | currentArrowOutline_ {} |
bool | highlighted_ {false} |
bool | invertArrow_ {} |
QPoint | lineFrom_ {} |
QPoint | lineTo_ {} |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
An overlay to draw an arrow from the first item to the second item.
Visualization::ArrowOverlay::ArrowOverlay | ( | Item * | arrowFrom, |
Item * | arrowTo, | ||
const StyleType * | style = itemStyles().get() |
||
) |
|
static |
|
overridevirtual |
|
inlinestatic |
|
overrideprotectedvirtual |
|
overridevirtual |
|
static |
|
overridevirtual |
|
static |
|
inlinestatic |
|
inline |
|
overridevirtual |
|
overrideprotectedvirtual |
|
staticprivate |
|
inline |
|
overrideprotectedvirtual |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |