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()");
}
{
printf(
"%s Added 0x%lx '%s'\n", fPrefix.
Data(), (
ULong_t)el, el ? el->GetElementName() :
"");
}
{
printf(
"%s Removed 0x%lx '%s'\n", fPrefix.
Data(), (
ULong_t)el, el ? el->GetElementName() :
"");
}
void Cleared()
{
printf(
"%s Cleared'\n", fPrefix.
Data());
}
};
void selection_sigs()
{
}
R__EXTERN TEveManager * gEve
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TEveSelection * GetSelection() const
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
TEveSelection * GetHighlight() const
Make sure there is a SINGLE running TEveSelection for each selection type (select/highlight).
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
const char * Data() const
- Author
- Matevz Tadel
Definition in file selection_sigs.C.