13#ifndef SO_FOCUS_ELEMENT_H
14#define SO_FOCUS_ELEMENT_H
21#include <Inventor/elements/SoReplacedElement.h>
22#include <Inventor/events/SoEvent.h>
56 return ( (
state ==
i.state) &&
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.
SbFocusInfo()
Constructor.
SbVec2f normClickCoords
Normalized coordinates of click event that caused the focus state.
SbFocusInfo(FocusState state, SbVec2f normClickCoords)
Constructor.
int operator==(const SbFocusInfo &i) const
Operator to compare two instances.
FocusState state
Is the sub graph currently selected?
Open Inventor Element defining if the currently rendered Graph has the focus.
SbFocusInfo getDefault()
Returns a default SbFocusInfo.
void init(SoState *state) override
See inventor element documentation. Not to be called directly.
static void initClass()
Initializes the class.
static const SbFocusInfo & get(SoState *state)
Returns focus state.
static void set(SoState *state, SoNode *node, const SbFocusInfo &focusInfo)
Set element state. Usually called in action routines of self written inventor nodes.
SbFocusInfo _focusInfo
Stores the current focus state.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.