28 virtual void Draw(QPainter& drawContext)
const override;
47 bool fillFlag =
true)
const;
Definition of position or mathematical vector on 2D plane.
Common interface for model objects, that supports Model/Observer design pattern.
Index implementation for addressing elements in 2D-space.
Set of change flags (its IDs).
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
Callback invoked when an observable model is about to be attached to this observer.
virtual void SetEditableAngles(bool editable=true)
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
CInteractiveShapeBase ShapeBaseClass
virtual TouchState IsTouched(istd::CIndex2d position) const override
Check, if any shape is touched.
double GetDegreeAndleOfPoint(const i2d::CVector2d ¢er, const QPointF &point) const
virtual bool IsEditableAngles() const
virtual bool OnMouseMove(istd::CIndex2d position) override
It is called, when mouse is moved.
virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
It is called, when mouse button is pushed down or up on this object.
virtual void DrawArea(QPainter &painter, i2d::CVector2d realCenter, i2d::CVector2d center, double realMinRadius, double realMaxRadius, int minRadius, int maxRadius, double startAngle, double stopAngle, bool fillFlag=true) const
TouchState
Enumeration for possible shape touch states.
In this library is defined 2D view concept and standard visualisation objects.