53#include <Inventor/SbBasic.h>
54#include <Inventor/SbViewportRegion.h>
55#include <Inventor/SbLinear.h>
56#include <Inventor/SbTime.h>
57#include <Inventor/SoTypedObject.h>
153 positionFloat[0] = (float)position[0];
154 positionFloat[1] = (float)position[1];}
161 position[0] = (short)positionFloat[0];
162 position[1] = (short)positionFloat[1];}
266 static void initClass();
267 static void exitClass();
270 static void initClasses();
271 static void exitClasses();
287 static SoType classTypeId;
292 const ::SoEvent* constEvent =
this;
293 return const_cast< ::
SbTrackerInfo*
>(constEvent->getTrackerInfo());
Class for representation of a time.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for repres...
Class for representing a viewport.
Base class for all events.
SbBool wasButton1Down() const
Returns true if mouse button 1 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.
static SoType getClassTypeId()
Returns the type id for the SoEvent class.
void setAltDown(SbBool isDown)
Sets whether the ALT key was down when the event occurred.
virtual SoType getTypeId() const
Returns the type id for this event instance.
const SbVec2f & getPositionFloat(const SbViewportRegion &vpRgn) const
Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the...
const SbVec2s & getPosition() const
Returns the window pixel location of the cursor when the event occurred as integer values.
virtual const SbTrackerInfo * getTrackerInfo() const
Gets whether an event object has associated tracker information.
void setCtrlDown(SbBool isDown)
Sets whether the CTRL key was down when the event occurred.
virtual ~SoEvent()
Destructor.
SbBool wasShiftDown() const
Returns true if the shift key was down when the event occurred.
virtual void setPosition(const SbVec2s &p)
Sets the window pixel location of the cursor when the event occurred.
SbTime getTime() const
Gets the time at which the event occurred.
void setShiftDown(SbBool isDown)
Sets whether the shift key was down when the event occurred.
virtual void setPosition(const SbVec2f &p)
Float version of setPosition(const SbVec2s &p).
virtual void setTime(SbTime t)
Sets the time at which the event occurred.
void setButton1Down(SbBool isDown)
Sets whether mouse Button 1 was down when the event occurred.
const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn) const
Gets the normalized location of the cursor when the event occurred, relative to the specified viewpor...
const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const
Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the...
const SbVec2f & getPositionFloat() const
Returns the window pixel location of the cursor when the event occurred as float values.
Stores runtime type information.
Base class for object storing runtime type information.