.TH "SoLocation2Event" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoLocation2Event \- The \fBSoLocation2Event\fP class contains information about 2D 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 "\fBSoLocation2Event\fP (void)" .br .ti -1c .RI "virtual \fB~SoLocation2Event\fP ()" .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 \fBSoLocation2Event\fP class contains information about 2D movement events\&. Location2 events are generated by devices capable of 2D, e\&.g\&. pointer devices -- typically a computer mouse\&. Instances of this class contain information about the position of the pointer on the render area\&. .PP \fBSoLocation2Event\fP does not contain any new information versus its superclass, its sole purpose is to make it possible to specify the type of the event for event object receivers in the scene graph\&. .PP \fBSee also\fP .RS 4 \fBSoEvent\fP, \fBSoMotion3Event\fP .PP \fBSoEventCallback\fP, \fBSoHandleEventAction\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoLocation2Event::SoLocation2Event (void )" Constructor\&. .SS "SoLocation2Event::~SoLocation2Event ()\fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoLocation2Event::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .br .SS "\fBSoType\fP SoLocation2Event::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\&. .br .PP Reimplemented from \fBSoEvent\fP\&. .SS "void SoLocation2Event::initClass (void )\fR [static]\fP" Initialize the type information data\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.