SOEVENT(3iv)
π SoEvent(3IV) π
okay bestie, buckle up β this is the SoEvent page, from the 3IV manual, and it's literally the mother of every event in Inventor. base class energy only. π
πΈ NAME πΈ
SoEvent β the base class for all events. like, every single one. the blueprint. the blueprint-iest blueprint. β¨
𧬠INHERITS FROM π§¬
SoEvent
(yes girl, it's the top of the food chain β nothing above her, she is the ancestor π«Ά)
π SYNOPSIS π
#include <Inventor/events/SoEvent.h>
Methods from class SoEvent:
SoEvent()
virtual ~SoEvent()
virtual SoType getTypeId() const
static SoType getClassTypeId()
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 π
SoEvent is the base class for events in the Inventor event model, periodt. π
so like, an event typically represents a user action β a mouse button getting pressed, a keyboard key getting released, that whole vibe. and SoEvent is where all the general info that every single Inventor event carries lives, which is:
- the time the event occurred β°
- the position of the locater when the event occurred π
- the state of the modifier keys when the event occurred β¨οΈ
that's the shared DNA, bestie. everything else inherits it. π§¬β¨
π οΈ METHODS π οΈ
SoEvent()virtual ~SoEvent()
Constructor and destructor. the hello and the bye. π
virtual SoType getTypeId() constβ returns the type id for this event instance. iykyk. π
static SoType getClassTypeId()β returns the type id for theSoEventclass itself. the class-level one, not the instance one. don't mix them up girlie. π«
SbBool isOfType(SoType type) constβ this returnsTRUEif the event is an instance of, or derived from, an event of the passed type. so like, family tree check. π³β
void setTime(SbTime t)SbTime getTime() const
Set and get the time at which the event occurred. when did it happen? this knows. β±οΈ
void setPosition(const SbVec2s &p)const SbVec2s & getPosition() const
Set the window pixel location of the cursor when the event occurred. the position is relative to the lower left corner of the window in which the event occurred. lower. left. corner. write that down. π
const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const
Get the viewport pixel location of the cursor when the event occurred, relative to the specified viewport region. same cursor, different frame of reference. πΌοΈ
const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn) const
Get the normalized location of the cursor when the event occurred, relative to the specified viewport region. the returned value will lie between 0.0 and 1.0. cute, contained, well-behaved. π
void setShiftDown(SbBool isDown)void setCtrlDown(SbBool isDown)void setAltDown(SbBool isDown)
Set whether the modifier keys were down when the event occurred. shift? ctrl? alt? tell it. β¨οΈπ
SbBool wasShiftDown() constSbBool wasCtrlDown() constSbBool wasAltDown() const
Get whether the modifier keys were down when the event occurred. past tense for a reason β the moment already happened bestie. π°οΈ
π SEE ALSO π
SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice, SoXtRenderArea
(the whole friend group fr fr π«Ά go read them too)
and that's the page!! π this was SoEvent(3IV) β source/version tag SoEvent(3IV) and, well, the date slot is literally empty (mysterious. iconic. no cap π³οΈβ¨) β anyway ily, go handle some events responsibly. bye bestie!! ππ¦π
π¦ 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