18class MyTimer :
public TTimer {
20 TGLAnnotation *m_label;
23 MyTimer(TGLAnnotation *
x) : TTimer(1000), m_label(
x) {}
33 gEve->GetDefaultGLViewer()->RequestDraw();
48 auto b =
new TEveBox(
"Box",
"Test Title");
50 b->SetMainTransparency(0);
51 b->SetVertex(0,
x -
a,
y -
a, z -
a);
52 b->SetVertex(1,
x -
a,
y +
a, z -
a);
53 b->SetVertex(2,
x +
a,
y +
a, z -
a);
54 b->SetVertex(3,
x +
a,
y -
a, z -
a);
55 b->SetVertex(4,
x -
a,
y -
a, z +
a);
56 b->SetVertex(5,
x -
a,
y +
a, z +
a);
57 b->SetVertex(6,
x +
a,
y +
a, z +
a);
58 b->SetVertex(7,
x +
a,
y -
a, z +
a);
63 auto v =
gEve->GetDefaultGLViewer();
66 ann->SetTextSize(0.1);
69 auto timer =
new MyTimer(ann);
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * AsString() const
Return the date & time as a string (ctime() format).
3D box with arbitrary vertices (cuboid).
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void SetText(const TString &x)
Handles synchronous and a-synchronous timer events.
virtual void TurnOff()
Remove timer from system timer list.
virtual void TurnOn()
Add the timer to the system timer list.
void Reset()
Reset the timer.
void SetTime(Long_t milliSec)
Bool_t Notify() override
Notify when timer times out.