Demonstrates usage of TGLAnnotation class.
class MyTimer :
public TTimer {
private:
public:
{
gEve->GetDefaultGLViewer()->RequestDraw();
return true;
}
};
{
auto b =
new TEveBox(
"Box",
"Test Title");
b->SetMainTransparency(0);
b->SetVertex(0,
x -
a,
y -
a, z -
a);
b->SetVertex(1,
x -
a,
y +
a, z -
a);
b->SetVertex(2,
x +
a,
y +
a, z -
a);
b->SetVertex(3,
x +
a,
y -
a, z -
a);
b->SetVertex(4,
x -
a,
y -
a, z +
a);
b->SetVertex(5,
x -
a,
y +
a, z +
a);
b->SetVertex(6,
x +
a,
y +
a, z +
a);
b->SetVertex(7,
x +
a,
y -
a, z +
a);
auto v =
gEve->GetDefaultGLViewer();
ann->SetTextSize(0.1);
auto timer = new MyTimer(ann);
timer->SetTime(1000);
timer->Reset();
timer->TurnOn();
}
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.
- Author
- Alja Mrak-Tadel
Definition in file annotation.C.