DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Annotation.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 #ifndef DD4HEP_DDEVE_ANNOTATION_H
15 #define DD4HEP_DDEVE_ANNOTATION_H
16 
17 // Framework include files
18 #include "TGLAnnotation.h"
19 
20 // Forward declarations
21 class TEveViewer;
22 class TGLOvlSelectRecord;
23 
25 namespace DD4hep {
26 
28 
35  class Annotation : public TGLAnnotation {
36  public:
38  Annotation(TEveViewer* v, const std::string& text, float x, float y, Color_t c);
40  virtual ~Annotation();
42  virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
44  static float DefaultTextSize();
46  static float DefaultMargin();
47  };
48 
49 } /* End namespace DD4hep */
50 #endif /* DD4HEP_DDEVE_ANNOTATION_H */
51 
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered overlay area.
Definition: Annotation.cpp:45
virtual ~Annotation()
Default destructor.
Definition: Annotation.cpp:40
static float DefaultMargin()
Default margin for placement in bottom left corner.
Definition: Annotation.cpp:55
static float DefaultTextSize()
Default text size.
Definition: Annotation.cpp:51
Annotation(TEveViewer *v, const std::string &text, float x, float y, Color_t c)
Standard constructor with initialization.
View * v
Definition: MultiView.cpp:30
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
Definition: ROOTClasses.h:26
Class to add annotations to eve viewers.
Definition: Annotation.h:35