Open Inventor Reference
SoMotion3Event Class Reference

3D motion events. More...

#include <Inventor/events/SoMotion3Event.h>

Inheritance diagram for SoMotion3Event:
SoEvent

Public Member Functions

 SoMotion3Event ()
 Constructor. More...
 
virtual ~SoMotion3Event ()
 
void setTranslation (const SbVec3f &t)
 Set and get the relative change in translation since the last translation event. More...
 
const SbVec3fgetTranslation () const
 Set and get the relative change in translation since the last translation event. More...
 
void setRotation (const SbRotation &r)
 Set and get the relative change in rotation since the last rotation event. More...
 
const SbRotationgetRotation () const
 Set and get the relative change in rotation since the last rotation event. More...
 
- Public Member Functions inherited from SoEvent
 SoEvent ()
 Constructor and destructor. More...
 
virtual ~SoEvent ()
 Constructor and destructor. More...
 
virtual SoType getTypeId () const
 Return the type id for this event instance. More...
 
bool isOfType (SoType type) const
 This returns TRUE if the event is an instance of or derived from an event of the passed type. More...
 
void setTime (SbTime t)
 Set the time at which the event occurred. More...
 
SbTime getTime () const
 Get the time at which the event occurred. More...
 
void setPosition (const SbVec2s &p)
 Set the window pixel location of the cursor when the event occurred. More...
 
const SbVec2sgetPosition () const
 Get position in pixel coodinates. More...
 
const SbVec2sgetPosition (const SbViewportRegion &vpRgn) const
 Get position relative to the specified viewport bounds. More...
 
const SbVec2fgetNormalizedPosition (const SbViewportRegion &vpRgn) const
 Get the normalized location of the cursor when the event occurred, relative to the specified viewport region. More...
 
void setShiftDown (bool isDown)
 Set whether the modifier keys were down when the event occurred. More...
 
void setCtrlDown (bool isDown)
 Set whether the modifier keys were down when the event occurred. More...
 
void setAltDown (bool isDown)
 Set whether the modifier keys were down when the event occurred. More...
 
bool wasShiftDown () const
 Get whether the modifier keys were down when the event occurred. More...
 
bool wasCtrlDown () const
 Get whether the modifier keys were down when the event occurred. More...
 
bool wasAltDown () const
 Get whether the modifier keys were down when the event occurred. More...
 
void setMouseButtonMask (int mask)
 Get which mouse buttons are currently pressed (as bit mask) More...
 
int getMouseButtonMask () const
 Set which mouse buttons are currently pressed. More...
 

Static Public Member Functions

static void initClass ()
 
- Static Public Member Functions inherited from SoEvent
static SoType getClassTypeId ()
 Return the type id for the SoEvent class. More...
 
static void initClass ()
 Initializes base event class. More...
 
static void initClasses ()
 Initialize ALL Inventor event classes. More...
 

Additional Inherited Members

- Public Types inherited from SoEvent
enum  MouseButtonsMask {
  NO_MOUSEBUTTON_MASK = 0 , LEFT_MOUSEBUTTON_MASK = 1 , MIDDLE_MOUSEBUTTON_MASK = 2 , RIGHT_MOUSEBUTTON_MASK = 4 ,
  ALL_MOUSEBUTTONS_MASK = LEFT_MOUSEBUTTON_MASK + MIDDLE_MOUSEBUTTON_MASK + RIGHT_MOUSEBUTTON_MASK
}
 This describes the bit mask values of setButtonMask and getButtonMask. More...
 

Detailed Description

SoMotion3Event represents 3D relative motion events in the Inventor event model.

See Also
SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction

Definition at line 78 of file SoMotion3Event.h.

Constructor & Destructor Documentation

◆ SoMotion3Event()

SoMotion3Event::SoMotion3Event ( )

◆ ~SoMotion3Event()

virtual SoMotion3Event::~SoMotion3Event ( )
virtual

Member Function Documentation

◆ getRotation()

const SbRotation& SoMotion3Event::getRotation ( ) const
inline

Definition at line 96 of file SoMotion3Event.h.

◆ getTranslation()

const SbVec3f& SoMotion3Event::getTranslation ( ) const
inline

Definition at line 91 of file SoMotion3Event.h.

◆ initClass()

static void SoMotion3Event::initClass ( )
static

◆ setRotation()

void SoMotion3Event::setRotation ( const SbRotation r)
inline

Definition at line 94 of file SoMotion3Event.h.

◆ setTranslation()

void SoMotion3Event::setTranslation ( const SbVec3f t)
inline

Definition at line 89 of file SoMotion3Event.h.


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