quadset_callback.cxx

Go to the documentation of this file.
00001 #include <TEveDigitSet.h>
00002 #include <cstdio>
00003 
00004 void quadset_callback(TEveDigitSet* ds, Int_t idx, TObject* obj)
00005 {
00006    printf("dump_digit_set_hit - 0x%lx, id=%d, obj=0x%lx\n",
00007           (ULong_t) ds, idx, (ULong_t) obj);
00008 }
00009 
00010 TString quadset_tooltip_callback(TEveDigitSet* ds, Int_t idx)
00011 {
00012    // This gets called for tooltip if the following is set:
00013    //   q->SetPickable(1);
00014    //   q->SetAlwaysSecSelect(1);
00015 
00016    return TString::Format("callback tooltip for '%s' - 0x%lx, id=%d\n",
00017                           ds->GetElementName(), (ULong_t) ds, idx);
00018 
00019 }
00020 
00021 void quadset_set_callback(TEveDigitSet* ds)
00022 {
00023    ds->SetCallbackFoo(quadset_callback);
00024    ds->SetTooltipCBFoo(TEveDigitSet* ds, Int_t idx)
00025 }

Generated on Tue Jul 5 15:43:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1