Test signals from TEveSelection class.
class SigTestSpitter
{
public:
fSel(sel), fPrefix(prefix)
{
fSel->
Connect(
"SelectionAdded(TEveElement*)",
"SigTestSpitter",
this,
"Added(TEveElement*)");
fSel->
Connect(
"SelectionRemoved(TEveElement*)",
"SigTestSpitter",
this,
"Removed(TEveElement*)");
fSel->
Connect(
"SelectionCleared()",
"SigTestSpitter",
this,
"Cleared()");
}
~SigTestSpitter()
{
fSel->
Disconnect(
"SelectionAdded(TEveElement*)",
this,
"Added(TEveElement*)");
fSel->
Disconnect(
"SelectionRemoved(TEveElement*)",
this,
"Removed(TEveElement*)");
fSel->
Disconnect(
"SelectionCleared()",
this,
"Cleared()");
}
{
}
{
}
void Cleared()
{
printf(
"%s Cleared'\n", fPrefix.
Data());
}
};
void selection_sigs()
{
}
- Author
- Matevz Tadel
Definition in file selection_sigs.C.