Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGLLogicalShape.h"
18
19class TBuffer3DSphere;
20
22{
23private:
24 Double_t fRadius; // Sphere radius
25
26public:
27 TGLSphere(const TBuffer3DSphere &buffer);
28
29 UInt_t DLOffset(Short_t lod) const override;
30
31 ELODAxes SupportedLODAxes() const override { return kLODAxesAll; }
32 Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const override;
33 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
34
35 ClassDefOverride(TGLSphere,0); // a spherical logical shape
36};
37
38#endif
short Short_t
Definition RtypesCore.h:39
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Sphere description class - see TBuffer3DTypes for producer classes Supports hollow and cut spheres.
Definition TBuffer3D.h:130
Abstract logical shape - a GL 'drawable' - base for all shapes - faceset sphere etc.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Implements a native ROOT-GL sphere that can be rendered at different levels of detail.
Definition TGLSphere.h:22
Double_t fRadius
Definition TGLSphere.h:24
UInt_t DLOffset(Short_t lod) const override
Return display-list offset for given LOD.
Definition TGLSphere.cxx:56
Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const override
Factor in scene/viewer LOD and quantize.
Definition TGLSphere.cxx:68
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Debug tracing.
Definition TGLSphere.cxx:92
ELODAxes SupportedLODAxes() const override
Definition TGLSphere.h:31