22 static Double_t center[3] = {-164.0, -164.0, -180.0};
35 center[0] += centerStep[0];
36 center[1] += centerStep[1];
37 center[2] += centerStep[2];
42 centerStep[0] = -centerStep[0];
43 centerStep[1] = -centerStep[1];
44 centerStep[2] = -centerStep[2];
48 hRotate += hRotateStep;
49 vRotate += vRotateStep;
51 vRotateStep = -vRotateStep;
55 hRotateStep = -hRotateStep;
60 if (dolly >= 2000.0 || dolly <= 1500.0)
61 dollyStep = -dollyStep;
68 if (fov > 130.0 || fov < 5.0)
69 fovStep = - fovStep; }
73 if (zoom > 4.0 || zoom < 0.25)
74 zoomStep = - zoomStep;
91 gROOT->ProcessLine(
".x nucleus.C");
void SetLight(ELight light, Bool_t on)
Set a light on/off.
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
Encapsulates a set of lights for OpenGL.
void SetOrthoCamera(ECameraType camera, Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Set an orthographic camera to supplied configuration - note this does not need to be the current came...
void SetEnableRotate(Bool_t x)
TGLViewer::ECameraType camera
This is the base class for the ROOT Random number generators.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
TGCompositeFrame * GetFrame() const
Return the main-frame.
The top level standalone GL-viewer - created via plugin manager.
void SetPerspectiveCamera(ECameraType camera, Double_t fov, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Set a perspective camera to supplied configuration - note this does not need to be the current camera...
TGLLightSet * GetLightSet() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
TGLCamera & CurrentCamera() const
void SetExternalCenter(Bool_t x)
Set camera center diffrent than scene center, if enable is kTRUE.
Handles synchronous and a-synchronous timer events.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
void SetCommand(const char *command)
Set the interpreter command to be executed at time out.
void SetCurrentCamera(ECameraType camera)
Set current active camera - 'cameraType' one of: kCameraPerspX, kCameraPerspY, kCameraPerspZ, kCameraOrthoXOY, kCameraOrthoXOZ, kCameraOrthoZOY, kCameraOrthoXnOY, kCameraOrthoXnOZ, kCameraOrthoZnOY.
Orthographic projection camera.
virtual void RefreshPadEditor(TObject *obj=0)
Update GED editor if it is set.
Double_t Sqrt(Double_t x)
virtual void TurnOn()
Add the timer to the system timer list.
void SetStyle(Short_t st)