.TH "SoMotion3Event" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoMotion3Event \- The \fBSoMotion3Event\fP class contains information about 3D movement events\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoEvent\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const" .br .ti -1c .RI "\fBSoMotion3Event\fP (void)" .br .ti -1c .RI "virtual \fB~SoMotion3Event\fP ()" .br .ti -1c .RI "void \fBsetTranslation\fP (const \fBSbVec3f\fP &t)" .br .ti -1c .RI "const \fBSbVec3f\fP & \fBgetTranslation\fP (void) const" .br .ti -1c .RI "void \fBsetRotation\fP (const \fBSbRotation\fP &r)" .br .ti -1c .RI "const \fBSbRotation\fP & \fBgetRotation\fP (void) const" .br .in -1c Public Member Functions inherited from \fBSoEvent\fP .in +1c .ti -1c .RI "\fBSoEvent\fP (void)" .br .ti -1c .RI "virtual \fB~SoEvent\fP ()" .br .ti -1c .RI "SbBool \fBisOfType\fP (\fBSoType\fP type) const" .br .ti -1c .RI "void \fBsetTime\fP (const \fBSbTime\fP t)" .br .ti -1c .RI "\fBSbTime\fP \fBgetTime\fP (void) const" .br .ti -1c .RI "void \fBsetPosition\fP (const \fBSbVec2s\fP &p)" .br .ti -1c .RI "const \fBSbVec2s\fP & \fBgetPosition\fP (void) const" .br .ti -1c .RI "const \fBSbVec2s\fP & \fBgetPosition\fP (const \fBSbViewportRegion\fP &vpRgn) const" .br .ti -1c .RI "const \fBSbVec2f\fP & \fBgetNormalizedPosition\fP (const \fBSbViewportRegion\fP &vpRgn) const" .br .ti -1c .RI "void \fBsetShiftDown\fP (SbBool isDown)" .br .ti -1c .RI "SbBool \fBwasShiftDown\fP (void) const" .br .ti -1c .RI "void \fBsetCtrlDown\fP (SbBool isDown)" .br .ti -1c .RI "SbBool \fBwasCtrlDown\fP (void) const" .br .ti -1c .RI "void \fBsetAltDown\fP (SbBool isDown)" .br .ti -1c .RI "SbBool \fBwasAltDown\fP (void) const" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBSoEvent\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c .SH "Detailed Description" .PP The \fBSoMotion3Event\fP class contains information about 3D movement events\&. Motion3 events are generated by devices capable of "3D motion", for instance a spaceball device\&. Instances of this class contain information about these devices' translations and rotations in all 3 dimensions\&. .PP \fBSee also\fP .RS 4 \fBSoEvent\fP, \fBSoLocation2Event\fP .PP \fBSoEventCallback\fP, \fBSoHandleEventAction\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoMotion3Event::SoMotion3Event (void )" Constructor\&. Resets values for translation and rotation information\&. .SS "SoMotion3Event::~SoMotion3Event ()\fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoMotion3Event::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .SS "\fBSoType\fP SoMotion3Event::getTypeId (void ) const\fR [virtual]\fP" Returns the type identification of an object derived from a class inheriting \fBSoEvent\fP\&. This is used for runtime type checking and "downward" casting\&. .PP Reimplemented from \fBSoEvent\fP\&. .SS "void SoMotion3Event::initClass (void )\fR [static]\fP" Initialize the type information data\&. .SS "void SoMotion3Event::setTranslation (const \fBSbVec3f\fP & t)" Sets the translation value of this event\&. Method is used by the window specific device class(es) generating the event\&. .PP \fBSee also\fP .RS 4 \fBgetTranslation()\fP .RE .PP .SS "const \fBSbVec3f\fP & SoMotion3Event::getTranslation (void ) const" Returns translation value\&. Note that translation are specified relative to former events, i\&.e\&. the values given here are \fInot\fP accumulated global coordinates\&. .PP \fBSee also\fP .RS 4 \fBgetTime()\fP .RE .PP .SS "void SoMotion3Event::setRotation (const \fBSbRotation\fP & r)" Sets the rotation value of this event\&. Method is used by the window specific device class(es) generating the event\&. .SS "const \fBSbRotation\fP & SoMotion3Event::getRotation (void ) const" Returns rotational value\&. Note that rotations are specified relative to former events, i\&.e\&. the values given here are \fInot\fP accumulated rotations\&. .PP \fBSee also\fP .RS 4 \fBgetTime()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.