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::CInteractiveShapeBase iview::CViewport iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectangleShape iview::CRectControlledShapeBase iview::CAnnulusShape iview::CArcShape iview::CCenterPinShape iview::CCircleShape iview::CLabelShape iview::CPolygonShape iview::CAnnulusSegmentShape iview::COrientedCircleShape iview::CPolylineShape iview::CSplineShape iview::CTubePolylineShape

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. More...
 
virtual bool OnMouseMove (istd::CIndex2d position)=0
 It is called, when mouse is moved. More...
 
- 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

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::CViewBase, iview::CParallelogramShape, iview::CLineShape, iview::CPolygonShape, iview::CRectControlledShapeBase, iview::CTubePolylineShape, iview::CLabelShape, iview::CInteractiveShapeBase, iview::CRectangleShape, iview::CAnnulusShape, iview::CArcShape, iview::CPinShape, iview::CCenterPinShape, iview::CPolylineShape, iview::CCircleShape, and iview::CAnnulusSegmentShape.

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::CViewBase, iview::CParallelogramShape, iview::CLineShape, iview::CViewport, iview::CPolygonShape, iview::CTubePolylineShape, iview::CLabelShape, iview::CInteractiveShapeBase, iview::CRectangleShape, iview::CAnnulusShape, iview::CArcShape, iview::CPinShape, iview::CCenterPinShape, iview::CCircleShape, and iview::CAnnulusSegmentShape.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy