Script showing how to use the GL viewer API to animate a picture.
{
static Double_t center[3] = {-164.0, -164.0, -180.0};
Double_t mag =
TMath::Sqrt(center[0] * center[0] + center[1] * center[1] + center[2] * center[2]);
if (mag > 500) {
}
}
} else {
}
else
}
{
gROOT->ProcessLine(
".x nucleus.C");
}
v->CurrentCamera().SetExternalCenter(
kTRUE);
if (id > 2) {
}
sav->GetFrame()->Connect(
"CloseWindow()",
"TTimer", &
timer,
"TurnOff()");
timer.SetCommand(
"AnimateCamera()");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Encapsulates a set of lights for OpenGL.
void SetLight(ELight light, Bool_t on)
Set a light on/off.
Orthographic projection camera.
void SetEnableRotate(Bool_t x)
The top level standalone GL-viewer - created via plugin manager.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
This is the base class for the ROOT Random number generators.
Handles synchronous and a-synchronous timer events.
constexpr Double_t PiOver2()
Double_t Sqrt(Double_t x)
Returns the square root of x.
constexpr Double_t TwoPi()
- Author
- Richard Maunder
Definition in file glViewerExercise.C.