ACF $AcfVersion:0$
Public Member Functions | List of all members
iview::IMouseActionObserver Class Referenceabstract

Common interface for all shapes which are mouse events receiver. More...

#include <IMouseActionObserver.h>

Inheritance diagram for iview::IMouseActionObserver:
istd::IPolymorphic iview::CViewBase iview::IInteractiveShape iview::CCalibratedViewBase iview::CDistanceToolShape iview::CInteractiveShapeBase iview::CViewport iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectControlledShapeBase iview::CRectangleShape iview::CAnnulusShape iview::CArcShape iview::CCenterPinShape iview::CCircleShape iview::CLabelShape iview::CStarShape iview::CGraphPlotShape iview::CPolygonShape

Public Member Functions

virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0
 It is called, when mouse button is pushed down or up on this object.
 
virtual bool OnMouseMove (istd::CIndex2d position)=0
 It is called, when mouse is moved.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Common interface for all shapes which are mouse events receiver.

Definition at line 22 of file IMouseActionObserver.h.

Member Function Documentation

◆ OnMouseButton()

virtual bool iview::IMouseActionObserver::OnMouseButton ( istd::CIndex2d  position,
Qt::MouseButton  buttonType,
bool  downFlag 
)
pure virtual

It is called, when mouse button is pushed down or up on this object.

Parameters
position- position of mouse pointer on client area (picture coords).
downFlag- true, if mouse button is pushed down, false if pushed up.
Returns
true if this shape should get focus to catch all mouse movements.

Implemented in iview::CAnnulusSegmentShape, iview::CAnnulusShape, iview::CArcShape, iview::CCenterPinShape, iview::CCircleShape, iview::CDistanceToolShape, iview::CInteractiveShapeBase, iview::CLabelShape, iview::CLineShape, iview::CParallelogramShape, iview::CPinShape, iview::CPolygonShape, iview::CPolylineShape, iview::CRectangleShape, iview::CRectControlledShapeBase, iview::CTubePolylineShape, and iview::CViewBase.

◆ OnMouseMove()

virtual bool iview::IMouseActionObserver::OnMouseMove ( istd::CIndex2d  position)
pure virtual

It is called, when mouse is moved.

Only objects with focus receive this event.

Parameters
position- position of mouse pointer on client area (picture coords).
Returns
true if this shape should hold focus to catch longer all mouse movements.

Implemented in iview::CAnnulusSegmentShape, iview::CAnnulusShape, iview::CArcShape, iview::CCenterPinShape, iview::CCircleShape, iview::CDistanceToolShape, iview::CInteractiveShapeBase, iview::CLabelShape, iview::CLineShape, iview::CParallelogramShape, iview::CPinShape, iview::CPolygonShape, iview::CRectangleShape, iview::CTubePolylineShape, iview::CViewBase, and iview::CViewport.


The documentation for this class was generated from the following file: