man SoButtonEvent () - base class for all button events
NAME
SoButtonEvent - base class for all button events
INHERITS FROM
SoEvent > SoButtonEvent
SYNOPSIS
#include <Inventor/events/SoButtonEvent.h>
enum State {
c
}
c
}
Button up event
c
}
c
}
Button down event
c
}
c
}
Button in unknown state
}
Methods from class SoButtonEvent:
c
}
c
}
SoButtonEvent()
c
}
c
}
getClassTypeId()
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
SoButtonEvent represents generic button press and release events in the Inventor event model. It is the base class for device-specific button events, namely SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent. This class stores the down/up state of the button when the event occurred.
METHODS
c
}
c
}
SoButtonEvent()
Constructor.
c
}
c
}
getClassTypeId()
Return the type id for the SoButtonEvent class.
c
}
c
}
setState(SoButtonEvent::State s)
c
}
c
}
getState() const
Set and get the state of the button.
SEE ALSO
SoEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice