SOBUTTONEVENT(3iv)
π SoButtonEvent(3IV) π
okay bestie, we're doing the SoButtonEvent manual page, from the 3IV manual, and honestly? it's giving "quiet foundational icon that everyone depends on." let's get into it π«Ά
β¨ NAME β¨
SoButtonEvent β the base class for, like, all button events. every button event you've ever met? yeah, this is their mom.
πΈ INHERITS FROM πΈ
SoEvent > SoButtonEvent
so the family tree is: SoEvent is the parent, and SoButtonEvent is the extremely competent eldest child. π
π SYNOPSIS π
#include <Inventor/events/SoButtonEvent.h>
enum State {
SoButtonEvent::UP Button up event
SoButtonEvent::DOWN Button down event
SoButtonEvent::UNKNOWN Button in unknown state
}
Methods from class SoButtonEvent:
SoButtonEvent()
static SoType getClassTypeId()
void setState(SoButtonEvent::State s)
SoButtonEvent::State getState() const
Methods from class SoEvent:
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
void setTime(SbTime t)
SbTime getTime() const
void setPosition(const SbVec2s &p)
const SbVec2s & getPosition() const
const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const
const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn)
const
void setShiftDown(SbBool isDown)
void setCtrlDown(SbBool isDown)
void setAltDown(SbBool isDown)
SbBool wasShiftDown() const
SbBool wasCtrlDown() const
SbBool wasAltDown() const
π¦ DESCRIPTION π¦
so SoButtonEvent represents the generic button press and release events in the Inventor event model. it's the base class for all the device-specific button events, bestie β namely SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballButtonEvent. no cap. π―
and what does this class actually store? the down/up state of the button at the exact moment the event happened. that's its whole thing. simple, iconic, essential. π
π METHODS π
SoButtonEvent()β the constructor, obviously. it's the "hi bestie, welcome to existence" moment. β¨static SoType getClassTypeId()β returns the type id for theSoButtonEventclass. that's it, that's the whole job. π«Άvoid setState(SoButtonEvent::State s)SoButtonEvent::State getState() const
set and get the state of the button. one does the setting, one does the getting. a duo. a dynamic. main character energy fr. π
π SEE ALSO π
SoEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice
like, the whole friend group. go read them next, i promise it's worth it. π§
ok and for the cute sign-off: this was theSoButtonEvent(3IV)page, living in the3IVmanual, and the date field down there at the bottom is literally blank β an empty string, a vibe, a mystery. we love a low-effort footer. ππΈ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms