89 NO_MOUSEBUTTON_MASK = 0,
90 LEFT_MOUSEBUTTON_MASK = 1,
91 MIDDLE_MOUSEBUTTON_MASK = 2,
92 RIGHT_MOUSEBUTTON_MASK = 4,
93 ALL_MOUSEBUTTONS_MASK = LEFT_MOUSEBUTTON_MASK + MIDDLE_MOUSEBUTTON_MASK + RIGHT_MOUSEBUTTON_MASK
171 static SoType classTypeId;
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Class for representation of a time.
Class for representing a viewport.
Base class for all events.
bool wasShiftDown() const
Get whether the modifier keys were down when the event occurred.
static SoType getClassTypeId()
Return the type id for the SoEvent class.
void setShiftDown(bool isDown)
Set whether the modifier keys were down when the event occurred.
void setTime(SbTime t)
Set the time at which the event occurred.
virtual SoType getTypeId() const
Return the type id for this event instance.
const SbVec2s & getPosition() const
Get position in pixel coodinates.
virtual ~SoEvent()
Constructor and destructor.
void setPosition(const SbVec2s &p)
Set the window pixel location of the cursor when the event occurred.
void setAltDown(bool isDown)
Set whether the modifier keys were down when the event occurred.
bool isOfType(SoType type) const
This returns TRUE if the event is an instance of or derived from an event of the passed type.
void setMouseButtonMask(int mask)
Get which mouse buttons are currently pressed (as bit mask)
SbTime getTime() const
Get the time at which the event occurred.
void setCtrlDown(bool isDown)
Set whether the modifier keys were down when the event occurred.
static void initClass()
Initializes base event class.
MouseButtonsMask
This describes the bit mask values of setButtonMask and getButtonMask.
bool wasCtrlDown() const
Get whether the modifier keys were down when the event occurred.
bool wasAltDown() const
Get whether the modifier keys were down when the event occurred.
int getMouseButtonMask() const
Set which mouse buttons are currently pressed.
const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn) const
Get the normalized location of the cursor when the event occurred, relative to the specified viewport...
const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const
Get position relative to the specified viewport bounds.
SoEvent()
Constructor and destructor.
static void initClasses()
Initialize ALL Inventor event classes.
SoType has no virtual functions to keep it small...