Logo ROOT   6.21/01
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 
19 class TGLRenderArea;
20 class TGLEventHandler;
21 class TGedEditor;
22 
24 {
25 private:
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 
36 public:
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
TGCompositeFrame * GetFrame() const
TGLOrthoCamera fOrthoXOZCamera
Definition: TGLViewer.h:91
TGLOrthoCamera fOrthoXOYCamera
Definition: TGLViewer.h:90
TGLEmbeddedViewer & operator=(const TGLEmbeddedViewer &)
int Int_t
Definition: RtypesCore.h:41
Minimal GL-viewer that can be embedded in a standard ROOT frames.
#define ClassDef(name, id)
Definition: Rtypes.h:326
TGLOrthoCamera * GetOrthoXOZCamera()
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:49
virtual void DestroyGLWidget()
Destroy the GLwidget, it is an error if it does not exist.
virtual void CreateGLWidget()
Create a GLwidget, it is an error if it is already created.
TGLOrthoCamera * GetOrthoXOYCamera()
~TGLEmbeddedViewer()
Destroy standalone viewer object.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
TGLOrthoCamera * GetOrthoZOYCamera()
void Init(const TGWindow *parent)
Common initialization from all constructors.
TGLOrthoCamera fOrthoZOYCamera
Definition: TGLViewer.h:92
Base-class and default implementation of event-handler for TGLViewer.
Orthographic projection camera.
TGLOrthoCamera fOrthoZOXCamera
Definition: TGLViewer.h:93
TGLEmbeddedViewer(const TGLEmbeddedViewer &)
TGCompositeFrame * fFrame
void CreateFrames()
Internal frames creation.
virtual const char * GetName() const
Returns name of object.
TGLOrthoCamera * GetOrthoZOXCamera()