SoQtDevice(3)
π SoQtDevice(3) β from the SoQt manual, bestie π
π NAME π
SoQtDevice β the base class for the translation devices. Thatβs the whole vibe of this page, fr fr.
β SYNOPSIS β
#include <Inventor/Qt/devices/SoQtDevice.h>
Inherits SoQtObject.
Inherited by SoQtKeyboard, and SoQtMouse.
π Public Member Functions π
virtual ~SoQtDevice ()
virtual void enable (QWidget *w, SoQtEventHandler *handler, void *closure)=0
virtual void disable (QWidget *w, SoQtEventHandler *handler, void *closure)=0
virtual const SoEvent * translateEvent (QEvent *event)=0
void setWindowSize (const SbVec2s size)
SbVec2s getWindowSize (void) const
π¦ Public Member Functions inherited from SoQtObject π¦
virtual SoType getTypeId (void) const =0
SbBool isOfType (SoType type) const
β¨ Static Public Member Functions β¨
static void initClasses (void)
π Static Public Member Functions inherited from SoQtObject π
static void initClass (void)
static SoType getClassTypeId (void)
static void init (void)
πΈ Protected Member Functions πΈ
SoQtDevice (void)
void setEventPosition (SoEvent *event, int x, int y) const
void addEventHandler (QWidget *, SoQtEventHandler *, void *)
void removeEventHandler (QWidget *, SoQtEventHandler *, void *)
void invokeHandlers (QEvent *event)
π§ Static Protected Member Functions π§
static SbVec2s getLastEventPosition (void)
π DETAILED DESCRIPTION π
Okay so SoQtDevice is the base class for the translation devices. Thatβs the main-character energy here. π
The SoQt device classes provide glue functionality for translating native GUI events from the underlying toolkit into Inventor scene graph SoEvent events. Like, theyβre the little bridge between βQt saw a thingβ and βInventor understands the thing.β π«Ά
These device classes are mainly of interest to application programmers when writing extensions for new types of devices, and seldom in other contexts β so they can most often be ignored. No cap. If youβre not building a new device extension, you can lowkey just vibe past this one. π
π§ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π§
π¦ SoQtDevice::~SoQtDevice () [virtual] π¦
Public virtual destructor. Cleanup queen behavior. β¨
πΈ SoQtDevice::SoQtDevice (void ) [protected] πΈ
Constructor. Itβs protected to only enable invocation from derived device classes. So yeah, bestie, this one is not for direct casual use β itβs for the subclasses. π
π MEMBER FUNCTION DOCUMENTATION π
π
virtual void SoQtDevice::enable (QWidget * widget, SoQtEventHandler * handler, void * closure) [pure virtual] π
This method will enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implemented in SoQtKeyboard, and SoQtMouse.
Bestie, the =0 means itβs pure virtual β the derived classes gotta bring their own implementation. Thatβs the assignment. π
π virtual void SoQtDevice::disable (QWidget * widget, SoQtEventHandler * handler, void * closure) [pure virtual] π
This method will disable the handler for the device.
Implemented in SoQtKeyboard, and SoQtMouse.
π¦ virtual const SoEvent * SoQtDevice::translateEvent (QEvent * event) [pure virtual] π¦
This method translates from native events to Open Inventor SoEvent events.
Implemented in SoQtKeyboard, and SoQtMouse.
β¨ void SoQtDevice::setWindowSize (const SbVec2s size) β¨
This method sets the cached size of the window the device is βattachedβ to.
π SbVec2s SoQtDevice::getWindowSize (void ) const π
This method returns the cached window size. Cached, bestie β not a fresh little lookup. π
π void SoQtDevice::initClasses (void ) [static] π
This function initializes the type system for all the SoQt device classes. It is called indirectly when calling SoQt::init(), so the application programmer doesnβt have to bother with it. Slay, automatic. β¨
π void SoQtDevice::setEventPosition (SoEvent * event, int x, int y) const [protected] π
This method fills in the position information of event, translating the coordinates into the correct coordinate system.
π§ SbVec2s SoQtDevice::getLastEventPosition (void ) [static], [protected] π§
Returns last event position that was set with SoQtDevice::setEventPosition().
π void SoQtDevice::addEventHandler (QWidget * widget, SoQtEventHandler * handler, void * closure) [protected] π
Stores an event handler for the widget, which can later be invoked with SoQtDevice::invokeHandlers(). Used by extension device types. Very βsave it for laterβ energy. π
π void SoQtDevice::removeEventHandler (QWidget * widget, SoQtEventHandler * handler, void * closure) [protected] π
Remove a handler registered with SoQtDevice::addEventHandler().
πΈ void SoQtDevice::invokeHandlers (QEvent * event) [protected] πΈ
Invoke all handlers registered with SoQtDevice::addEventHandler().
π AUTHOR π
Generated automatically by Doxygen for SoQt from the source code. Not a human bestie β Doxygen did it. π€π
Version 1.6.2, dated Sat Jan 6 2024 12:20:55 β thatβs the footer, babe; page closed, wig snatched, periodt. ππ
π¦ where this page comes from
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: SoQt-devel 1.6.2-bp160.1.13 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms