.TH "SoMotion3Event" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoMotion3Event \- The \fBSoMotion3Event\fP class contains information about 3D movement events\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoEvent\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fBSoType\fP \fBgetTypeId\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBSoMotion3Event\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvirtual\fP \fB~SoMotion3Event\fP ()" .br .ti -1c .RI "\fBvoid\fP \fBsetTranslation\fP (\fBconst\fP \fBSbVec3f\fP &t)" .br .ti -1c .RI "\fBconst\fP \fBSbVec3f\fP & \fBgetTranslation\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetRotation\fP (\fBconst\fP \fBSbRotation\fP &r)" .br .ti -1c .RI "\fBconst\fP \fBSbRotation\fP & \fBgetRotation\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c Public Member Functions inherited from \fBSoEvent\fP .in +1c .ti -1c .RI "\fBSoEvent\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvirtual\fP \fB~SoEvent\fP ()" .br .ti -1c .RI "SbBool \fBisOfType\fP (\fBSoType\fP type) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetTime\fP (\fBconst\fP \fBSbTime\fP t)" .br .ti -1c .RI "\fBSbTime\fP \fBgetTime\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetPosition\fP (\fBconst\fP \fBSbVec2s\fP &\fBp\fP)" .br .ti -1c .RI "\fBconst\fP \fBSbVec2s\fP & \fBgetPosition\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec2s\fP & \fBgetPosition\fP (\fBconst\fP \fBSbViewportRegion\fP &\fBvpRgn\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec2f\fP & \fBgetNormalizedPosition\fP (\fBconst\fP \fBSbViewportRegion\fP &\fBvpRgn\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetShiftDown\fP (SbBool \fBisDown\fP)" .br .ti -1c .RI "SbBool \fBwasShiftDown\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetCtrlDown\fP (SbBool \fBisDown\fP)" .br .ti -1c .RI "SbBool \fBwasCtrlDown\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetAltDown\fP (SbBool \fBisDown\fP)" .br .ti -1c .RI "SbBool \fBwasAltDown\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .in -1c Static Public Member Functions inherited from \fBSoEvent\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .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 (\fBvoid\fP)" Constructor\&. Resets values for translation and rotation information\&. .SS "SoMotion3Event::~SoMotion3Event ()\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoMotion3Event::getClassTypeId (\fBvoid\fP)\fC [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .br .SS "\fBSoType\fP SoMotion3Event::getTypeId (\fBvoid\fP) const\fC [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\&. .br .PP Reimplemented from \fBSoEvent\fP\&. .SS "\fBvoid\fP SoMotion3Event::initClass (\fBvoid\fP)\fC [static]\fP" Initialize the type information data\&. .SS "\fBvoid\fP SoMotion3Event::setTranslation (\fBconst\fP \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 "\fBconst\fP \fBSbVec3f\fP & SoMotion3Event::getTranslation (\fBvoid\fP) 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 "\fBvoid\fP SoMotion3Event::setRotation (\fBconst\fP \fBSbRotation\fP & r)" Sets the rotation value of this event\&. Method is used by the window specific device class(es) generating the event\&. .SS "\fBconst\fP \fBSbRotation\fP & SoMotion3Event::getRotation (\fBvoid\fP) 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\&.