MeVisLab Toolbox Reference
SbFocusInfo Class Reference

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.
 

Detailed Description

Class transporting focus information for one sub graph.

Definition at line 30 of file SoFocusElement.h.

Constructor & Destructor Documentation

◆ SbFocusInfo() [1/2]

SbFocusInfo::SbFocusInfo ( )
inline

Constructor.

Definition at line 43 of file SoFocusElement.h.

References FS_NO_FOCUS, mlrange_cast(), normClickCoords, and state.

◆ SbFocusInfo() [2/2]

SbFocusInfo::SbFocusInfo ( FocusState state,
SbVec2f normClickCoords )
inline

Constructor.

Definition at line 49 of file SoFocusElement.h.

References normClickCoords, and state.

Member Function Documentation

◆ operator==()

int SbFocusInfo::operator== ( const SbFocusInfo & i) const
inline

Operator to compare two instances.

Definition at line 55 of file SoFocusElement.h.

References mlrange_cast(), normClickCoords, and state.

Member Data Documentation

◆ normClickCoords

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 40 of file SoFocusElement.h.

Referenced by operator==(), SbFocusInfo(), and SbFocusInfo().

◆ state

FocusState SbFocusInfo::state

Is the sub graph currently selected?

Definition at line 34 of file SoFocusElement.h.

Referenced by operator==(), SbFocusInfo(), and SbFocusInfo().


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