Logo ROOT   6.08/07
Reference Guide
quadset_callback.cxx
Go to the documentation of this file.
1 #include <TEveDigitSet.h>
2 #include <cstdio>
3 
5 {
6  printf("dump_digit_set_hit - 0x%lx, id=%d, obj=0x%lx\n",
7  (ULong_t) ds, idx, (ULong_t) obj);
8 }
9 
11 {
12  // This gets called for tooltip if the following is set:
13  // q->SetPickable(1);
14  // q->SetAlwaysSecSelect(1);
15 
16  return TString::Format("callback tooltip for '%s' - 0x%lx, id=%d\n",
17  ds->GetElementName(), (ULong_t) ds, idx);
18 
19 }
20 
22 {
24  ds->SetTooltipCBFoo(TEveDigitSet* ds, Int_t idx)
25 }
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
void quadset_callback(TEveDigitSet *ds, Int_t idx, TObject *obj)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Definition: TString.cxx:2335
void SetTooltipCBFoo(TooltipCB_foo f)
Definition: TEveDigitSet.h:179
void SetCallbackFoo(Callback_foo f)
Definition: TEveDigitSet.h:176
TString quadset_tooltip_callback(TEveDigitSet *ds, Int_t idx)
void quadset_set_callback(TEveDigitSet *ds)
virtual const char * GetElementName() const
Virtual function for retrieving name of the element.
unsigned long ULong_t
Definition: RtypesCore.h:51
Mother of all ROOT objects.
Definition: TObject.h:37
Base-class for storage of digit collections; provides transformation matrix (TEveTrans), signal to color mapping (TEveRGBAPalette) and visual grouping (TEveFrameBox).
Definition: TEveDigitSet.h:29