ACF $AcfVersion:0$
CTubePolylineShape.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
6
7
8namespace iview
9{
10
11
16{
17public:
20
22
23 // reimplemented (iview::CShapeBase)
24 virtual i2d::CRect CalcBoundingBox() const override;
25
26 // reimplemented (iview::IMouseActionObserver)
27 virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override;
28 virtual bool OnMouseMove(istd::CIndex2d position) override;
29
30 // reimplemented (iview::ITouchable)
31 virtual TouchState IsTouched(istd::CIndex2d position) const override;
32
33protected:
34 // reimplemented (iview::CPolygonShape)
35 virtual void DrawCurve(QPainter& drawContext) const override;
36 virtual void DrawSelectionElements(QPainter& drawContext) const override;
37
38 // reimplemented (iview::CRectControlledShapeBase)
39 virtual void EnsureValidNodes() const override;
40 virtual bool IsCurveTouched(istd::CIndex2d position) const override;
41
42protected:
50
53};
54
55
56} // namespace qto
57
58
59
60
61
Simple rectangle with integer bounds.
Definition CRect.h:22
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
Graphical representation of tube region.
virtual bool OnMouseMove(istd::CIndex2d position) override
It is called, when mouse is moved.
virtual void DrawCurve(QPainter &drawContext) const override
CInteractiveShapeBase ShapeBaseClass
iview::CPolylineShape BaseClass
virtual void EnsureValidNodes() const override
virtual bool IsCurveTouched(istd::CIndex2d position) const override
virtual void DrawSelectionElements(QPainter &drawContext) const override
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
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 TouchState IsTouched(istd::CIndex2d position) const override
Check, if any shape is touched.
TouchState
Enumeration for possible shape touch states.
Definition ITouchable.h:25
In this library is defined 2D view concept and standard visualisation objects.