23#include <Inventor/fields/SoSFVec2f.h>
24#include <Inventor/sensors/SoFieldSensor.h>
75 void GLRender(SoGLRenderAction *action)
override;
FocusState
Administrates the current focus state.
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Class transporting focus information for one sub graph.
SoFocus is a general facility to detect focus changes.
SoSFBool supportWheelEvents
Should this module support mouse wheel events?
void activeChanged(SoField *)
static void initClass()
Initializes this class (called on dll initialization).
SoSFVec2f normClickCoords
Display the normalized coordinates of the click event that caused the focus state.
void hasFocusChanged(SoField *)
void handleEvent(SoHandleEventAction *action) override
handle event is reimplemented to handle the mouse events.
~SoFocus() override
Protected destructor.
void setFocusState(FocusState state, bool updateField=true)
Set focus state for this module.
SoSFBool hasFocus
Current state (has focus or has no focus).
void GLRender(SoGLRenderAction *action) override
React to render action -> pass focus to state.