MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoFocus.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2007, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef SO_FOCUS_H
14
#define SO_FOCUS_H
15
16
19
20
#include "
SoUtilsSystem.h
"
21
#include "
SoFocusElement.h
"
22
23
#include <Inventor/fields/SoSFVec2f.h>
24
#include <Inventor/sensors/SoFieldSensor.h>
25
28
class
SOUTILS_EXPORT
SoFocus
:
public
SoNode
29
{
31
SO_NODE_HEADER(
SoFocus
);
32
33
public
:
35
SoFocus
();
36
38
static
void
initClass
();
39
41
43
SoSFBool
active
;
44
46
SoSFBool
hasFocus
;
47
49
SoSFBool
supportWheelEvents
;
50
55
SoSFVec2f
normClickCoords
;
56
58
61
void
handleEvent
(SoHandleEventAction* action)
override
;
62
65
void
setFocusState
(
FocusState
state,
bool
updateField =
true
);
66
67
protected
:
69
~SoFocus
()
override
;
70
71
void
hasFocusChanged
(SoField*);
72
void
activeChanged
(SoField*);
73
75
void
GLRender
(SoGLRenderAction* action)
override
;
76
77
private
:
79
SbFocusInfo
_focusInfo;
80
83
static
SoFocus
* _focusNode;
84
86
void
_freeFocus();
87
};
88
89
#endif
// __SoFocus_H
SoFocusElement.h
FocusState
FocusState
Administrates the current focus state.
Definition
SoFocusElement.h:25
SoUtilsSystem.h
SOUTILS_EXPORT
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition
SoUtilsSystem.h:30
SbFocusInfo
Class transporting focus information for one sub graph.
Definition
SoFocusElement.h:31
SoFocus::supportWheelEvents
SoSFBool supportWheelEvents
Should this module support mouse wheel events?
Definition
SoFocus.h:49
SoFocus::SoFocus
SoFocus()
Constructor.
SoFocus::activeChanged
void activeChanged(SoField *)
SoFocus::initClass
static void initClass()
Initializes this class (called on dll initialization).
SoFocus::normClickCoords
SoSFVec2f normClickCoords
Definition
SoFocus.h:55
SoFocus::hasFocusChanged
void hasFocusChanged(SoField *)
SoFocus::handleEvent
void handleEvent(SoHandleEventAction *action) override
SoFocus::~SoFocus
~SoFocus() override
Protected destructor.
SoFocus::active
SoSFBool active
! Fields
Definition
SoFocus.h:43
SoFocus::setFocusState
void setFocusState(FocusState state, bool updateField=true)
SoFocus::hasFocus
SoSFBool hasFocus
Current state (has focus or has no focus).
Definition
SoFocus.h:46
SoFocus::GLRender
void GLRender(SoGLRenderAction *action) override
React to render action -> pass focus to state.
MeVisLab
Standard
Sources
Inventor
SoUtils
SoFocus.h
Generated by
1.18.0