6#include <QtGui/QPainter>
7#include <QtGui/QCursor>
8#include <QtGui/QPainter>
9#if QT_VERSION >= 0x050000
10#include <QtWidgets/QWidget>
12#include <QtGui/QWidget>
68 Qt::MouseButton buttonType,
Simple rectangle with integer bounds.
Definition of rectangle area orthogonal to axis of coordination system.
Implementation of double value manipulator with fixed-point arithmetic and rounding.
Index implementation for addressing elements in 2D-space.
Abstract base class for all calibrated view.
virtual void mouseMoveEvent(QMouseEvent *event) override
virtual void UpdateRectArea(const i2d::CRect &rect) override
Start updating specified rectangle area.
void ShapesChanged()
Called when some shapes has been changed.
virtual void SetEditMode(int mode)
Changes the edit mode.
CConsoleBase * m_framePtr
virtual void paintEvent(QPaintEvent *event) override
virtual void Update() override
Updates all invalidates shapes.
virtual i2d::CRect GetClientRect() const override
Get bounding box of client area.
void BoundingBoxChanged()
virtual void mousePressEvent(QMouseEvent *event) override
void SetShowInfoText(bool on)
imath::CFixedPointManip m_logicalPositionFormatter
virtual bool OnViewMouseMove(const iview::IShapeView &view, const istd::CIndex2d &position) override
Event handler for mouse move event.
virtual void keyReleaseEvent(QKeyEvent *event) override
virtual bool CanBeMoved() const
This method is internal used to check, if drag mode is allowed.
virtual bool OnMouseMove(istd::CIndex2d position) override
It is called, when mouse is moved.
virtual void SetBackgroundBufferValid(bool state=true)
Set validate flag of background buffer.
virtual bool OnViewMouseButton(const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr) override
Event handler for mouse button click.
virtual void ConnectCalibrationShape(iview::IShape *shapePtr) override
Connect visualisation shape for calibration object.
virtual void OnAreaInvalidated(const i2d::CRect &beforeBox, const i2d::CRect &afterBox) override
Invalidate display area.
int GetMouseKeysState(const QMouseEvent &event)
virtual void SetFitArea(const i2d::CRectangle &area) override
Set area used for fitting of the view contents.
virtual bool OnSelectChange(const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state) override
Event handler for selection changes.
virtual void resizeEvent(QResizeEvent *event) override
virtual void OnBoundingBoxChanged() override
Called when bounding box has been changed.
bool MoveViewBy(int dx, int dy)
virtual void keyPressEvent(QKeyEvent *event) override
virtual void SetMousePointer(MousePointerMode mode) override
Set mouse pointer.
CCalibratedViewBase BaseClass
void SetMousePointerCursor(int mode, const QCursor &cursor)
void UpdateFitTransform()
virtual void leaveEvent(QEvent *event) override
CViewport(CConsoleBase *framePtr, QWidget *parent=NULL)
virtual void mouseReleaseEvent(QMouseEvent *event) override
QCursor m_mousePointerModes[MPM_LAST]
CConsoleBase * GetFramePtr() const
imath::CFixedPointManip m_pixelPositionFormatter
virtual void OnResize()
Called if found that display area was resized.
Common interface for all display console shapes which can interacts with user.
MousePointerMode
Defines possible states of mouse pointer.
Common interface for all display console shapes.
Common interface for a general shape view implementations.
Interface for external view event observer.
In this library is defined 2D view concept and standard visualisation objects.