ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TGFrame
16 #include "TGFrame.h"
17 #endif
18 
19 #ifndef ROOT_TGLViewer
20 #include "TGLViewer.h"
21 #endif
22 
23 class TGLRenderArea;
24 class TGLEventHandler;
25 class TGedEditor;
26 
28 {
29 private:
30  // GUI components
33 
34  void Init(const TGWindow *parent);
35  void CreateFrames();
36 
37  TGLEmbeddedViewer(const TGLEmbeddedViewer&); // Not implemented
38  TGLEmbeddedViewer& operator=(const TGLEmbeddedViewer&); // Not implemented
39 
40 public:
41  TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad=0, Int_t border=2);
42  TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad, TGedEditor *ged, Int_t border=2);
44 
45  virtual void CreateGLWidget();
46  virtual void DestroyGLWidget();
47 
48  virtual const char *GetName() const { return "GLViewer"; }
49 
50  TGCompositeFrame* GetFrame() const { return fFrame; }
51 
55 
56  ClassDef(TGLEmbeddedViewer, 0); // Embedded GL viewer.
57 };
58 
59 #endif
virtual const char * GetName() const
Returns name of object.
TGLOrthoCamera fOrthoXOZCamera
Definition: TGLViewer.h:91
TGLOrthoCamera fOrthoXOYCamera
Definition: TGLViewer.h:90
TGLEmbeddedViewer & operator=(const TGLEmbeddedViewer &)
int Int_t
Definition: RtypesCore.h:41
TGCompositeFrame * GetFrame() const
Minimal GL-viewer that can be embedded in a standard ROOT frames.
TGLOrthoCamera * GetOrthoXOZCamera()
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:59
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
tuple pad
Definition: first.py:38
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.
ClassDef(TGLEmbeddedViewer, 0)
TGLEmbeddedViewer(const TGLEmbeddedViewer &)
TGCompositeFrame * fFrame
void CreateFrames()
Internal frames creation.