Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 = nullptr, Int_t border=2);
38 TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad, TGedEditor *ged, Int_t border=2);
39 ~TGLEmbeddedViewer() override;
40
41 void CreateGLWidget() override;
42 void DestroyGLWidget() override;
43
44 const char *GetName() const override { return "GLViewer"; }
45
46 TGCompositeFrame* GetFrame() const { return fFrame; }
47
52
53 ClassDefOverride(TGLEmbeddedViewer, 0); // Embedded GL viewer.
54};
55
56#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
Minimal GL-viewer that can be embedded in a standard ROOT frames.
void DestroyGLWidget() override
Destroy the GLwidget, it is an error if it does not exist.
TGLOrthoCamera * GetOrthoZOXCamera()
TGLOrthoCamera * GetOrthoXOZCamera()
TGLEmbeddedViewer & operator=(const TGLEmbeddedViewer &)
void CreateGLWidget() override
Create a GLwidget, it is an error if it is already created.
const char * GetName() const override
Returns name of object.
void CreateFrames()
Internal frames creation.
~TGLEmbeddedViewer() override
Destroy standalone viewer object.
TGLEmbeddedViewer(const TGLEmbeddedViewer &)
TGCompositeFrame * GetFrame() const
TGLOrthoCamera * GetOrthoZOYCamera()
void Init(const TGWindow *parent)
Common initialization from all constructors.
TGLOrthoCamera * GetOrthoXOYCamera()
TGCompositeFrame * fFrame
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:55
TGLOrthoCamera fOrthoXOYCamera
Definition TGLViewer.h:88
TGLOrthoCamera fOrthoZOYCamera
Definition TGLViewer.h:90
TGLOrthoCamera fOrthoZOXCamera
Definition TGLViewer.h:91
TGLOrthoCamera fOrthoXOZCamera
Definition TGLViewer.h:89
ROOT GUI Window base class.
Definition TGWindow.h:23
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition TVirtualPad.h:51