library: libRGL
#include "TGLViewer.h"

TGLViewer


class description - source file - inheritance tree (.pdf)

class TGLViewer

Inheritance Chart:
TGLViewer
<-
TViewerOpenGL
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

    private:
TGLViewer& operator=(const TGLViewer&) void PostDraw() void PreDraw() protected:
TGLCamera& CurrentCamera() const virtual void InitGL() virtual void MakeCurrent() const virtual Bool_t RebuildScene() void SetCurrentCamera(TGLViewer::ECamera camera) void SetupCameras(const TGLBoundingBox& box) void SetViewport(Int_t x, Int_t y, UInt_t width, UInt_t height) virtual void SwapBuffers() const public:
virtual ~TGLViewer() static TClass* Class() void Draw() virtual void Invalidate(UInt_t redrawLOD = kMed) virtual TClass* IsA() const Bool_t Select(const TGLRect& rect) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void WindowToGL(TGLRect& rect) const void WindowToGL(TGLVertex3& vertex) const

Data Members

    private:
TGLPerspectiveCamera fPerspectiveCamera ! TGLOrthoCamera fOrthoXOYCamera ! TGLOrthoCamera fOrthoYOZCamera ! TGLOrthoCamera fOrthoXOZCamera ! TGLCamera* fCurrentCamera ! protected:
TGLRedrawTimer* fRedrawTimer ! UInt_t fNextSceneLOD ! TGLScene fScene ! the GL scene - owned by viewer at present TGLRect fViewport ! viewport - drawn area TGLPlane fClipPlane ! current clip plane Bool_t fUseClipPlane ! use current clipping plane Bool_t fDrawAxes ! draw scene axes Bool_t fInitGL ! has GL been initialised? Bool_t fDebugMode ! viewer in debug mode (forced rebuild + draw scene/frustum/interest boxes) public:
static const TGLViewer::ECamera kPerspective static const TGLViewer::ECamera kXOY static const TGLViewer::ECamera kYOZ static const TGLViewer::ECamera kXOZ

Class Description


~TGLViewer()

void Draw()
 Draw out the the current viewer/scene

void PreDraw()
 GL work which must be done before each draw of scene

void PostDraw()
 GL work which must be done after each draw of scene

void Invalidate(UInt_t redrawLOD)

Bool_t Select(const TGLRect & rect)
 Select lock should already been taken in other thread in
 TViewerOpenGL::DoSelect()

void SetViewport(Int_t x, Int_t y, UInt_t width, UInt_t height)

void SetCurrentCamera(ECamera camera)

void SetupCameras(const TGLBoundingBox & box)



Inline Functions


         TGLViewer& operator=(const TGLViewer&)
               void InitGL()
               void MakeCurrent() const
               void SwapBuffers() const
             Bool_t RebuildScene()
         TGLCamera& CurrentCamera() const
               void WindowToGL(TGLRect& rect) const
               void WindowToGL(TGLVertex3& vertex) const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLViewer.cxx,v 1.8 2005/06/21 16:54:17 brun 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.