man SoMouseButtonEvent () - mouse button press and release events
NAME
SoMouseButtonEvent - mouse button press and release events
INHERITS FROM
SoEvent > SoButtonEvent > SoMouseButtonEvent
SYNOPSIS
#include <Inventor/events/SoMouseButtonEvent.h>
#define SO_MOUSE_PRESS_EVENT(EVENT,BUTTON)
(SoMouseButtonEvent::isButtonPressEvent(EVENT,SoMouseButtonEvent::BUTTON))
#define SO_MOUSE_RELEASE_EVENT(EVENT,BUTTON)
(SoMouseButtonEvent::isButtonReleaseEvent(EVENT,SoMouseButtonEvent::BUTTON))
enum Button {
c
}
c
}
Any button
c
}
c
}
First mouse button
c
}
c
}
Second mouse button
c
}
c
}
Third mouse button
}
Methods from class SoMouseButtonEvent:
c
}
c
}
SoMouseButtonEvent()
c
}
c
}
getClassTypeId()
c
}
c
}
setButton(SoMouseButtonEvent::Button b)
c
}
c
}
getButton() const
c
}
c
}
isButtonPressEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)
c
}
c
}
isButtonReleaseEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)
Methods from class SoButtonEvent:
c
}
c
}
setState(SoButtonEvent::State s)
c
}
c
}
getState() const
Methods from class SoEvent:
c
}
c
}
getTypeId() const
c
}
c
}
isOfType(SoType type) const
c
}
c
}
setTime(SbTime t)
c
}
c
}
getTime() const
c
}
c
}
setPosition(const SbVec2s &p)
c
}
c
}
getPosition() const
c
}
c
}
getPosition(const SbViewportRegion &vpRgn) const
c
}
c
}
getNormalizedPosition(const SbViewportRegion &vpRgn) const
c
}
c
}
setShiftDown(SbBool isDown)
c
}
c
}
setCtrlDown(SbBool isDown)
c
}
c
}
setAltDown(SbBool isDown)
c
}
c
}
wasShiftDown() const
c
}
c
}
wasCtrlDown() const
c
}
c
}
wasAltDown() const
DESCRIPTION
SoMouseButtonEvent represents mouse button press and release events in the Inventor event model.
METHODS
c
}
c
}
SoMouseButtonEvent()
Constructor.
c
}
c
}
getClassTypeId()
Return the type id for the SoMouseButtonEvent class.
c
}
c
}
setButton(SoMouseButtonEvent::Button b)
c
}
c
}
getButton() const
Set and get which mouse button generated the event.
c
}
c
}
isButtonPressEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)
c
}
c
}
isButtonReleaseEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)
Returns whether the passed event is a mouse button press or release event of the passed button. When SoMouseButtonEvent::ANY is passed, this returns TRUE if the event represents a button press or release of any mouse button.
SEE ALSO
SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice