17#include "TGLIncludes.h"
29 fLightState(kLightMask),
32 fFrontPower(0.4), fSidePower(0.7), fSpecularPower(0.8)
45 Error(
"TGLLightSet::ToggleLight",
"invalid light type");
60 Error(
"TGLViewer::ToggleLight",
"invalid light type");
112 camera.RefModelViewMatrix().MultiplyIP(center);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Concrete class describing an orientated (free) or axis aligned box of 8 vertices.
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Encapsulates a set of lights for OpenGL.
Bool_t fUseSpecular
light states (on/off) mask
void StdSetupLights(const TGLBoundingBox &bbox, const TGLCamera &camera, Bool_t debug=kFALSE)
Setup lights for current given bounding box and camera.
void ToggleLight(ELight light)
Toggle light on/off.
Float_t fSidePower
power of the front lamp
TGLLightSet()
power of specular lamp
Float_t fSpecularPower
power of the side lamps
void SetLight(ELight light, Bool_t on)
Set a light on/off.
Orthographic projection camera.
static void DrawSphere(const TGLVertex3 &position, Double_t radius, const UChar_t rgba[4])
Draw sphere, centered on vertex 'position', with radius 'radius', color 'rgba'.
static const UChar_t fgYellow[4]
3 component (x/y/z) vector class.
3 component (x/y/z) vertex class.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.