5 #include "model/object.h" 6 #include "model/line.h" 7 #include "ui/objects/gobject.h" 9 #include <QGraphicsLineItem> 23 const Line *
get()
const override;
32 QRectF boundingRect()
const override;
34 QPainterPath shape()
const override;
35 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
void applyToModel() override
Apply changes to the underlying model object.
A visual line object.
Definition: line.h:16
void reloadFromModel() override
Update the graphical representation to match the object from the model.
Object * obj
The object that is being wrapped.
Definition: gobject.h:177
void handleChanged(GObjectHandle *handle) override
Called when a handle's position has changed.
void showHandles(bool show=true) override
Display/hide the handles for this item.
The base class of all objects represented in a graphical scene.
Definition: gobject.h:24
The base class for object handles.
Definition: gobject.h:194
Graphical line object that wraps a Line.
Definition: gline.h:15