Logo ROOT   6.08/07
Reference Guide
TGLSphere.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Timur Pocheptsov 03/08/2004
3 // NOTE: This code moved from obsoleted TGLSceneObject.h / .cxx - see these
4 // attic files for previous CVS history
5 
6 /*************************************************************************
7  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
8  * All rights reserved. *
9  * *
10  * For the licensing terms see $ROOTSYS/LICENSE. *
11  * For the list of contributors see $ROOTSYS/README/CREDITS. *
12  *************************************************************************/
13 
14 #ifndef ROOT_TGLSphere
15 #define ROOT_TGLSphere
16 
17 #ifndef ROOT_TGLLogicalShape
18 #include "TGLLogicalShape.h"
19 #endif
20 
21 class TBuffer3DSphere;
22 
23 class TGLSphere : public TGLLogicalShape
24 {
25 private:
26  Double_t fRadius; // Sphere radius
27 
28 public:
29  TGLSphere(const TBuffer3DSphere &buffer);
30 
31  virtual UInt_t DLOffset(Short_t lod) const;
32 
33  virtual ELODAxes SupportedLODAxes() const { return kLODAxesAll; }
34  virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const;
35  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
36 
37  ClassDef(TGLSphere,0); // a spherical logical shape
38 };
39 
40 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
TGLSphere(const TBuffer3DSphere &buffer)
Default ctor.
Definition: TGLSphere.cxx:36
#define ClassDef(name, id)
Definition: Rtypes.h:254
Double_t fRadius
Definition: TGLSphere.h:26
Sphere description class - see TBuffer3DTypes for producer classes Supports hollow and cut spheres...
Definition: TBuffer3D.h:130
virtual UInt_t DLOffset(Short_t lod) const
Return display-list offset for given LOD.
Definition: TGLSphere.cxx:56
virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const
Factor in scene/viewer LOD and quantize.
Definition: TGLSphere.cxx:68
unsigned int UInt_t
Definition: RtypesCore.h:42
short Short_t
Definition: RtypesCore.h:35
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Debug tracing.
Definition: TGLSphere.cxx:92
Abstract logical shape - a GL 'drawable' - base for all shapes - faceset sphere etc.
double Double_t
Definition: RtypesCore.h:55
Implements a native ROOT-GL sphere that can be rendered at different levels of detail.
Definition: TGLSphere.h:23
virtual ELODAxes SupportedLODAxes() const
Definition: TGLSphere.h:33