library: libRGL #include "TGLDrawable.h" |
TGLDrawable
class description - header file - source file
viewCVS header - viewCVS source
class TGLDrawable
Function Members (Methods)
Display options:
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
Data Members
public:
enum ELODAxes { | kLODAxesNone | |
| kLODAxesX | |
| kLODAxesY | |
| kLODAxesZ | |
| kLODAxesAll | |
}; | | |
protected:
ULong_t | fID | ! unique drawable ID |
Bool_t | fCached | ! use display list cached |
TGLBoundingBox | fBoundingBox | ! the drawables bounding box |
static TGLQuadric | fgQuad | ! Single common quadric drawing object |
TGLDrawable //
Abstract base class for all GL drawable objects - TGLPhysicalShape &
TGLLogicalShape hierarchy. Provides hooks for using the display list
cache in TGLDrawable::Draw() - the external draw method for all
shapes.
Defines pure virtual TGLDrawable::DirectDraw() which derived classes
must implement with actual GL drawing.
Display list caching can occur at either the physical or logical
level (with or without translation). Currently we cache only certain
derived logical shapes as not all logicals can respect the LOD draw
flag which is used in caching.
Bool_t ShouldCache(const TGLDrawFlags & flags)
Returns kTRUE if draws should be display list cache
kFALSE otherwise
Default is to ignore flags and use internal bool. In some cases
shapes may want to override and constrain caching to certain
styles/LOD found in flags. If secondary selection is enabled
return false as different render-path is usually taken by the
rendering object.
void Draw(const TGLDrawFlags & flags)
Draw the GL drawable, using draw flags. If DL caching is enabled
(see SetCached) then attempt to draw from the cache, if not found
attempt to capture the draw - done by DirectDraw() - into a new cache entry.
If not cached just call DirectDraw() for normal non DL cached drawing.
void Purge()
Purge all entries for all LODs for this drawable from the display list cache.
Note: This does nothing at present as per drawable purging is not implemented
in TGLDisplayListCache.
Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLDrawable.cxx,v 1.16 2006/12/09 23:01:54 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.