#include <selectionManager.h>
Inheritance diagram for selectionManager:
Public Methods | |
selectionManager () | |
default constructor - constructs the cutUserServer. | |
virtual | ~selectionManager () |
destructor. More... | |
bool | apply (std::string name) |
apply the named cutVI. | |
cutVI* | getCut (std::string name) const |
returns a named cutVI. | |
void | addCut (std::string name, cutVI* cut) |
add a cut into the server. | |
cutComposite* | getCutComposite (std::string name) |
returns a cutComposite. | |
cutSelectionTask* | getCutSelectionTask (std::string name) const |
returns a named cutSelectionTask. | |
void | addCutSelectionTask (std::string name, cutSelectionTask* sel) |
add a cutSelectionTask into the server. | |
virtual void | writeOut () const |
info of the manager. More... | |
Static Public Methods | |
selectionManager* | instance () |
Singleton: returns the Manager. | |
Protected Methods | |
virtual void | defineOption () |
define the options optionVI. | |
virtual void | setOption (std::string selectionName, std::string cutName) |
the User define the selections (cutComposite) via optionVI. | |
Private Attributes | |
serverVI<cutVI>* | m_serverCut |
Pointer to the user defined cut in the Server. | |
serverVI<cutSelectionTask>* | m_serverSelection |
Pointer to the selections in the Server. | |
std::string | m_selName |
dummy string for the options. | |
Static Private Attributes | |
selectionManager* | m_instance = 0 |
Singleton: pointer to the class. |
selectionManager stores the system and user defined cuts.
selectionManager returns the cuts and cutComposite via the getCut()
method and getCutComposite()
methods
selectionManager applies a cut via its apply()
method.
General features:
addCut()
. getCut()
returns the a cut (cutVI) with name nameCut from the server of the selectionManager. These cuts are either simple cuts (cutVI) or multiple cuts (cutComposite). apply()
returns the result of applying the cut. getCutComposite()
returns the cutComposite with name nameCuts. the cutComposite is a multicut that allows access to everyone of the cuts by name or index. (see cutComposite for details).addCutSelectionTask()
and retreived via getCutSelectionTask()
.
Definition at line 59 of file selectionManager.h.
|
default constructor - constructs the cutUserServer.
Definition at line 12 of file selectionManager.cpp.
|
destructor.
userCuts add the User cuts into ther server
Definition at line 41 of file selectionManager.cpp.
|
|
|
|
define the options optionVI.
Reimplemented from optionVI.
Definition at line 93 of file selectionManager.cpp.
|
|
|
|
|
the User define the selections (cutComposite) via optionVI.
Reimplemented from optionVI.
Definition at line 81 of file selectionManager.cpp.
|
info of the manager.
newCutSelectionTask option will create a cutSelectionTask
Reimplemented from messageVI.
Definition at line 100 of file selectionManager.cpp.
|
|
|
|