DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDEve
include
DDEve
Annotation.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
#ifndef DDEVE_ANNOTATION_H
14
#define DDEVE_ANNOTATION_H
15
16
// Framework include files
17
#include "TGLAnnotation.h"
18
19
// Forward declarations
20
class
TEveViewer;
21
class
TGLOvlSelectRecord;
22
24
namespace
dd4hep
{
25
27
34
class
Annotation
:
public
TGLAnnotation
{
35
public
:
37
Annotation
(TEveViewer*
v
,
const
std::string& text,
float
x,
float
y, Color_t c);
39
virtual
~Annotation
();
41
virtual
Bool_t
MouseEnter
(TGLOvlSelectRecord& selRec);
43
static
float
DefaultTextSize
();
45
static
float
DefaultMargin
();
46
};
47
}
/* End namespace dd4hep */
48
#endif // DDEVE_ANNOTATION_H
49
dd4hep::Annotation::MouseEnter
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered overlay area.
Definition:
Annotation.cpp:44
dd4hep::Annotation::Annotation
Annotation(TEveViewer *v, const std::string &text, float x, float y, Color_t c)
Standard constructor with initialization.
dd4hep::Annotation::DefaultTextSize
static float DefaultTextSize()
Default text size.
Definition:
Annotation.cpp:50
v
View * v
Definition:
MultiView.cpp:28
dd4hep::Annotation::~Annotation
virtual ~Annotation()
Default destructor.
Definition:
Annotation.cpp:39
dd4hep::Annotation::DefaultMargin
static float DefaultMargin()
Default margin for placement in bottom left corner.
Definition:
Annotation.cpp:54
TGLAnnotation
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
Definition:
ROOTClasses.h:29
dd4hep::Annotation
Class to add annotations to eve viewers.
Definition:
Annotation.h:34
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
Generated on Thu Nov 7 2024 13:31:58 for DD4hep by
1.8.18