MeVisLabToolboxReference
|
Class transporting focus information for one sub graph. More...
#include <SoFocusElement.h>
Public Member Functions | |
SbFocusInfo () | |
Constructor. | |
SbFocusInfo (FocusState state, SbVec2f normClickCoords) | |
Constructor. | |
int | operator== (const SbFocusInfo &i) const |
Operator to compare two instances. | |
Public Attributes | |
FocusState | state |
Is the sub graph currently selected? | |
SbVec2f | normClickCoords |
Normalized coordinates of click event that caused the focus state. |
Class transporting focus information for one sub graph.
Definition at line 29 of file SoFocusElement.h.
SbFocusInfo::SbFocusInfo | ( | ) | [inline] |
Constructor.
Definition at line 42 of file SoFocusElement.h.
References FS_NO_FOCUS, normClickCoords, and state.
SbFocusInfo::SbFocusInfo | ( | FocusState | state, |
SbVec2f | normClickCoords | ||
) | [inline] |
int SbFocusInfo::operator== | ( | const SbFocusInfo & | i | ) | const [inline] |
Operator to compare two instances.
Definition at line 54 of file SoFocusElement.h.
References normClickCoords, and state.
SbVec2f SbFocusInfo::normClickCoords |
Normalized coordinates of click event that caused the focus state.
This is useful if one Viewer has several regions that should be activated separately. For example, if a SoView2d has more than 1 slice, SoView2DBorder is drawn several times. normClickCoords can be used to determine which border should be highlighted.
Definition at line 39 of file SoFocusElement.h.
Referenced by operator==(), and SbFocusInfo().
Is the sub graph currently selected?
Definition at line 33 of file SoFocusElement.h.
Referenced by operator==(), and SbFocusInfo().