OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MouseEvent Class Reference

Public Member Functions

 MouseEvent (OD::ButtonState st=OD::NoButton, int xx=0, int yy=0, float aa=0)
 
 MouseEvent (const MouseEvent &me)
 
 ~MouseEvent ()
 
MouseEventoperator= (const MouseEvent &)
 
OD::ButtonState buttonState () const
 
void setButtonState (const OD::ButtonState &)
 
bool isPressed () const
 
void setPressed (bool yn)
 
const Geom::Point2D< int > & pos () const
 
int x () const
 
int y () const
 
float angle () const
 used for wheel events More...
 
bool leftButton () const
 
bool rightButton () const
 
bool middleButton () const
 
bool ctrlStatus () const
 
bool altStatus () const
 
bool shiftStatus () const
 
bool operator== (const MouseEvent &ev) const
 
bool operator!= (const MouseEvent &ev) const
 
TabletInfotabletInfo ()
 
const TabletInfotabletInfo () const
 
void setTabletInfo (const TabletInfo *)
 

Static Public Member Functions

static float getDefaultTrackpadZoomFactor ()
 
static float getDefaultMouseWheelZoomFactor ()
 

Protected Attributes

OD::ButtonState butstate_
 
bool pressed_
 
Geom::Point2D< int > pos_
 
float angle_
 
TabletInfotabletinfo_
 

Detailed Description

Constructor & Destructor Documentation

MouseEvent::MouseEvent ( OD::ButtonState  st = OD::NoButton,
int  xx = 0,
int  yy = 0,
float  aa = 0 
)
inline
MouseEvent::MouseEvent ( const MouseEvent me)
inline
MouseEvent::~MouseEvent ( )

Member Function Documentation

bool MouseEvent::altStatus ( ) const
float MouseEvent::angle ( ) const
inline

used for wheel events

OD::ButtonState MouseEvent::buttonState ( ) const
inline
bool MouseEvent::ctrlStatus ( ) const
static float MouseEvent::getDefaultMouseWheelZoomFactor ( )
static
static float MouseEvent::getDefaultTrackpadZoomFactor ( )
static
bool MouseEvent::isPressed ( ) const
inline
bool MouseEvent::leftButton ( ) const
bool MouseEvent::middleButton ( ) const
bool MouseEvent::operator!= ( const MouseEvent ev) const
inline
MouseEvent& MouseEvent::operator= ( const MouseEvent )
bool MouseEvent::operator== ( const MouseEvent ev) const
const Geom::Point2D<int>& MouseEvent::pos ( ) const
inline
bool MouseEvent::rightButton ( ) const
void MouseEvent::setButtonState ( const OD::ButtonState )
void MouseEvent::setPressed ( bool  yn)
inline
void MouseEvent::setTabletInfo ( const TabletInfo )
bool MouseEvent::shiftStatus ( ) const
TabletInfo* MouseEvent::tabletInfo ( )
const TabletInfo* MouseEvent::tabletInfo ( ) const
int MouseEvent::x ( ) const
inline
int MouseEvent::y ( ) const
inline

Member Data Documentation

float MouseEvent::angle_
protected
OD::ButtonState MouseEvent::butstate_
protected
Geom::Point2D<int> MouseEvent::pos_
protected
bool MouseEvent::pressed_
protected
TabletInfo* MouseEvent::tabletinfo_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019