Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoMotion3Event Class Reference

3D motion events. More...

#include <Inventor/events/SoMotion3Event.h>

+ Inheritance diagram for SoMotion3Event:

Public Member Functions

virtual SoType getTypeId () const
 Returns the type identifier for this specific instance.
 
 SoMotion3Event ()
 Constructor.
 
void setTranslation (const SbVec3f &t)
 Sets the relative change in translation since the last translation event.
 
const SbVec3fgetTranslation () const
 Gets the relative change in translation since the last translation event.
 
void setRotation (const SbRotation &r)
 Sets the relative change in rotation since the last rotation event.
 
const SbRotationgetRotation () const
 Gets the relative change in rotation since the last rotation event.
 
- Public Member Functions inherited from SoEvent
 SoEvent ()
 Constructor.
 
virtual ~SoEvent ()
 Destructor.
 
virtual void setTime (SbTime t)
 Sets the time at which the event occurred.
 
SbTime getTime () const
 Gets the time at which the event occurred.
 
virtual void setPosition (const SbVec2s &p)
 Sets the window pixel location of the cursor when the event occurred.
 
virtual void setPosition (const SbVec2f &p)
 Float version of setPosition(const SbVec2s &p).
 
const SbVec2sgetPosition () const
 Returns the window pixel location of the cursor when the event occurred as integer values.
 
const SbVec2fgetPositionFloat () const
 Returns the window pixel location of the cursor when the event occurred as float values.
 
const SbVec2sgetPosition (const SbViewportRegion &vpRgn) const
 Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as integer values.
 
const SbVec2fgetPositionFloat (const SbViewportRegion &vpRgn) const
 Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as float values.
 
const SbVec2fgetNormalizedPosition (const SbViewportRegion &vpRgn) const
 Gets the normalized location of the cursor when the event occurred, relative to the specified viewport region.
 
void setShiftDown (SbBool isDown)
 Sets whether the shift key was down when the event occurred.
 
void setCtrlDown (SbBool isDown)
 Sets whether the CTRL key was down when the event occurred.
 
void setAltDown (SbBool isDown)
 Sets whether the ALT key was down when the event occurred.
 
void setButton1Down (SbBool isDown)
 Sets whether mouse Button 1 was down when the event occurred.
 
SbBool wasShiftDown () const
 Returns true if the shift key was down when the event occurred.
 
SbBool wasCtrlDown () const
 Returns true if the CTRL key was down when the event occurred.
 
SbBool wasAltDown () const
 Returns true if the ALT key was down when the event occurred.
 
SbBool wasButton1Down () const
 Returns true if mouse button 1 was down when the event occurred.
 
virtual const SbTrackerInfogetTrackerInfo () const
 Gets whether an event object has associated tracker information.
 
SbTrackerInfogetTrackerInfo ()
 Gets whether an event object has associated tracker information.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
- Static Public Member Functions inherited from SoEvent
static SoType getClassTypeId ()
 Returns the type id for the SoEvent class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

3D motion events.

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

SEE ALSO

SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoWinDevice

Definition at line 82 of file SoMotion3Event.h.

Constructor & Destructor Documentation

◆ SoMotion3Event()

SoMotion3Event::SoMotion3Event ( )

Constructor.

Member Function Documentation

◆ getClassTypeId()

static SoType SoMotion3Event::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getRotation()

const SbRotation & SoMotion3Event::getRotation ( ) const
inline

Gets the relative change in rotation since the last rotation event.

Definition at line 113 of file SoMotion3Event.h.

◆ getTranslation()

const SbVec3f & SoMotion3Event::getTranslation ( ) const
inline

Gets the relative change in translation since the last translation event.

Definition at line 104 of file SoMotion3Event.h.

◆ getTypeId()

virtual SoType SoMotion3Event::getTypeId ( ) const
virtual

Returns the type identifier for this specific instance.

Reimplemented from SoEvent.

◆ setRotation()

void SoMotion3Event::setRotation ( const SbRotation r)
inline

Sets the relative change in rotation since the last rotation event.

Definition at line 109 of file SoMotion3Event.h.

◆ setTranslation()

void SoMotion3Event::setTranslation ( const SbVec3f t)
inline

Sets the relative change in translation since the last translation event.

Definition at line 100 of file SoMotion3Event.h.


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