Public Member Functions | List of all members
evdb::testCanvas1 Class Reference
Inheritance diagram for evdb::testCanvas1:
evdb::Canvas evdb::Printable

Public Member Functions

 testCanvas1 (TGMainFrame *mf)
 
 ~testCanvas1 ()
 
const char * Description () const
 
const char * PrintTag () const
 
void Draw (const char *)
 
- Public Member Functions inherited from evdb::Canvas
 Canvas (TGMainFrame *mf)
 
virtual ~Canvas ()
 
virtual void Print (const char *f)
 
void Connect ()
 Make signal/slot connections. More...
 
- Public Member Functions inherited from evdb::Printable
 Printable ()
 
virtual ~Printable ()
 

Additional Inherited Members

- Static Public Member Functions inherited from evdb::Printable
static void AddToListOfPrintables (const char *name, evdb::Printable *p)
 
static void RemoveFromListOfPrintables (evdb::Printable *p)
 
static std::map< std::string, evdb::Printable * > & GetPrintables ()
 
- Protected Attributes inherited from evdb::Canvas
TGCompositeFrame * fFrame
 Graphics frame. More...
 
TGLayoutHints * fLayout
 Layout hints for frame. More...
 
TRootEmbeddedCanvas * fEmbCanvas
 Embedded canvas. More...
 
TCanvas * fCanvas
 The ROOT drawing canvas. More...
 
unsigned short fXsize
 Size of the canvas;. More...
 
unsigned short fYsize
 Size of the canvas;. More...
 
float fAspectRatio
 fYsize/fXsize More...
 

Detailed Description

Definition at line 39 of file EventDisplay_service.cc.

Constructor & Destructor Documentation

evdb::testCanvas1::testCanvas1 ( TGMainFrame *  mf)
inline

Definition at line 42 of file EventDisplay_service.cc.

42  : evdb::Canvas(mf) {
44  }
const char * PrintTag() const
static void AddToListOfPrintables(const char *name, evdb::Printable *p)
Definition: Printable.cxx:29
evdb::testCanvas1::~testCanvas1 ( )
inline

Definition at line 45 of file EventDisplay_service.cc.

45  {
47  }
static void RemoveFromListOfPrintables(evdb::Printable *p)
Definition: Printable.cxx:47

Member Function Documentation

const char* evdb::testCanvas1::Description ( ) const
inlinevirtual

Reimplemented from evdb::Canvas.

Definition at line 48 of file EventDisplay_service.cc.

48 { return "Test Canvas 1"; }
void evdb::testCanvas1::Draw ( const char *  )
inlinevirtual

Implements evdb::Canvas.

Definition at line 50 of file EventDisplay_service.cc.

50  {
51  static TText* t = new TText(0.5,0.5,"-");
52  static int count = 0;
53  char buff[256];
54  sprintf(buff,"%d",count);
55  mf::LogWarning("EventDisplayBase") << buff;
56  t->SetText(0.5,0.5,buff);
57  t->Draw();
58  ++count;
59  fCanvas->Update();
60  }
TCanvas * fCanvas
The ROOT drawing canvas.
Definition: Canvas.h:42
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
const char* evdb::testCanvas1::PrintTag ( ) const
inlinevirtual

Reimplemented from evdb::Canvas.

Definition at line 49 of file EventDisplay_service.cc.

49 { return "Test1"; }

The documentation for this class was generated from the following file: