#include <NavigationSetter.h>
Public Types | |
typedef std::vector < NavigableLayer * > | StateType |
Public Member Functions | |
NavigationSetter (const NavigationSchool &) | |
~NavigationSetter () | |
Private Member Functions | |
void | cleanState () |
void | saveState () |
void | setState (const StateType &) |
Private Attributes | |
const NavigationSchool & | theNav |
StateType | theSavedState |
This class sets the navigation state given by the NavigationSchool, and saves the previous state for the affected layers. It must be instatiated as a local variable in the method that needs the navigation of the school, before using the navigation methods. The constructor saves the current state and sets the new one, and the destructod restores the previous state. This allows different reconstruction algorithms to use different navigations in the same set of DetLayers.
Definition at line 20 of file NavigationSetter.h.
typedef std::vector<NavigableLayer*> NavigationSetter::StateType |
Definition at line 23 of file NavigationSetter.h.
NavigationSetter::NavigationSetter | ( | const NavigationSchool & | school | ) |
Definition at line 7 of file NavigationSetter.cc.
References cleanState(), NavigationSchool::navigableLayers(), saveState(), and setState().
NavigationSetter::~NavigationSetter | ( | ) |
Definition at line 20 of file NavigationSetter.cc.
References cleanState(), setState(), and theSavedState.
|
private |
Definition at line 45 of file NavigationSetter.cc.
References NavigationSchool::allLayersInSystem(), end, i, and theNav.
Referenced by NavigationSetter(), and ~NavigationSetter().
|
private |
Definition at line 36 of file NavigationSetter.cc.
References NavigationSchool::allLayersInSystem(), end, i, theNav, and theSavedState.
Referenced by NavigationSetter().
|
private |
Definition at line 54 of file NavigationSetter.cc.
Referenced by NavigationSetter(), and ~NavigationSetter().
|
private |
Definition at line 31 of file NavigationSetter.h.
Referenced by cleanState(), and saveState().
|
private |
Definition at line 33 of file NavigationSetter.h.
Referenced by saveState(), and ~NavigationSetter().