Demonstrates usage of TGLAnnotation class.
{
private:
public:
{
}
{
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);
ann->SetTextSize(0.1);
auto timer = new MyTimer(ann);
timer->SetTime(1000);
timer->Reset();
timer->TurnOn();
}
R__EXTERN TEveManager * gEve
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).
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void SetText(const TString &x)
void RequestDraw(Short_t LOD=TGLRnrCtx::kLODMed)
Post request for redraw of viewer at level of detail 'LOD' Request is directed via cross thread gVirt...
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)
virtual Bool_t Notify()
Notify when timer times out.
- Author
- Alja Mrak-Tadel
Definition in file annotation.C.