MeVisLabToolboxReference
SbFocusInfo Class Reference

Class transporting focus information for one sub graph. More...

#include <SoFocusElement.h>

List of all members.

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.

Detailed Description

Class transporting focus information for one sub graph.

Definition at line 29 of file SoFocusElement.h.


Constructor & Destructor Documentation

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]

Constructor.

Definition at line 48 of file SoFocusElement.h.

References normClickCoords, and state.


Member Function Documentation

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.


Member Data Documentation

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().


The documentation for this class was generated from the following file: