23class REveTransMover :
public TTimer {
37 t.SetPos(30.0 *
TMath::Sin(0.4 * fStep), 0.0, 0.0);
38 fEl->SetTransMatrix(t.Array());
50 b->SetMainTransparency(0);
53 b->SetVertex(0, -
a, -
a, z -
a);
b->SetVertex(1, -
a,
a, z -
a);
54 b->SetVertex(2,
a,
a, z -
a);
b->SetVertex(3,
a, -
a, z -
a);
55 b->SetVertex(4, -
a, -
a, z +
a);
b->SetVertex(5, -
a,
a, z +
a);
56 b->SetVertex(6,
a,
a, z +
a);
b->SetVertex(7,
a, -
a, z +
a);
64 auto eveMng = REveManager::Create();
65 eveMng->AllowMultipleRemoteConnections(
false,
false);
67 auto still = make_box(
"Still",
kCyan, 10, -20);
68 eveMng->GetEventScene()->AddElement(still);
70 auto mover = make_box(
"Mover",
kMagenta, 10, 20);
73 mover->InitMainTrans();
74 eveMng->GetEventScene()->AddElement(mover);
78 (
new REveTransMover(mover, 1500))->TurnOn();
bool Bool_t
Boolean (0=false, 1=true) (bool)
short Color_t
Color number (short)
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
float Float_t
Float 4 bytes (float)
3D box with arbitrary vertices (cuboid).
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
RAII guard for locking Eve manager (ctor) and processing changes (dtor).
REveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Handles synchronous and a-synchronous timer events.
void Reset()
Reset the timer.
Bool_t Notify() override
Notify when timer times out.
Namespace for ROOT features in testing.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.