Logo ROOT  
Reference Guide
TGLEmbeddedViewer.h
Go to the documentation of this file.
1// @(#)root/gl:$Id$
2// Author: Bertrand Bellenot 23/01/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGLEmbeddedViewer
13#define ROOT_TGLEmbeddedViewer
14
15#include "TGFrame.h"
16
17#include "TGLViewer.h"
18
19class TGLRenderArea;
20class TGLEventHandler;
21class TGedEditor;
22
24{
25private:
26 // GUI components
29
30 void Init(const TGWindow *parent);
31 void CreateFrames();
32
33 TGLEmbeddedViewer(const TGLEmbeddedViewer&); // Not implemented
34 TGLEmbeddedViewer& operator=(const TGLEmbeddedViewer&); // Not implemented
35
36public:
37 TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad=0, Int_t border=2);
38 TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad, TGedEditor *ged, Int_t border=2);
40
41 virtual void CreateGLWidget();
42 virtual void DestroyGLWidget();
43
44 virtual const char *GetName() const { return "GLViewer"; }
45
46 TGCompositeFrame* GetFrame() const { return fFrame; }
47
52
53 ClassDef(TGLEmbeddedViewer, 0); // Embedded GL viewer.
54};
55
56#endif
#define ClassDef(name, id)
Definition: Rtypes.h:322
Minimal GL-viewer that can be embedded in a standard ROOT frames.
TGLOrthoCamera * GetOrthoZOXCamera()
TGLOrthoCamera * GetOrthoXOZCamera()
TGLEmbeddedViewer & operator=(const TGLEmbeddedViewer &)
void CreateFrames()
Internal frames creation.
~TGLEmbeddedViewer()
Destroy standalone viewer object.
virtual void DestroyGLWidget()
Destroy the GLwidget, it is an error if it does not exist.
TGLEmbeddedViewer(const TGLEmbeddedViewer &)
virtual const char * GetName() const
Returns name of object.
TGCompositeFrame * GetFrame() const
TGLOrthoCamera * GetOrthoZOYCamera()
void Init(const TGWindow *parent)
Common initialization from all constructors.
TGLOrthoCamera * GetOrthoXOYCamera()
TGCompositeFrame * fFrame
virtual void CreateGLWidget()
Create a GLwidget, it is an error if it is already created.
Base-class and default implementation of event-handler for TGLViewer.
Orthographic projection camera.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:57
TGLOrthoCamera fOrthoXOYCamera
Definition: TGLViewer.h:90
TGLOrthoCamera fOrthoZOYCamera
Definition: TGLViewer.h:92
TGLOrthoCamera fOrthoZOXCamera
Definition: TGLViewer.h:93
TGLOrthoCamera fOrthoXOZCamera
Definition: TGLViewer.h:91
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:51