ROOT
Version v6.34
master
v6.36
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
▼
graf3d
►
eve
►
eve7
►
g3d
▼
gl
doc
►
inc
▼
src
►
TArcBall.cxx
TF2GL.cxx
TGL5D.cxx
►
TGL5DDataSetEditor.cxx
TGL5DPainter.cxx
►
TGLAdapter.cxx
TGLAnnotation.cxx
TGLAutoRotator.cxx
TGLAxis.cxx
TGLAxisPainter.cxx
►
TGLBoundingBox.cxx
TGLBoxPainter.cxx
►
TGLCamera.cxx
►
TGLCameraGuide.cxx
TGLCameraOverlay.cxx
TGLClip.cxx
►
TGLClipSetEditor.cxx
TGLContext.cxx
TGLContextPrivate.cxx
►
TGLContextPrivate.h
►
TGLCylinder.cxx
TGLEmbeddedViewer.cxx
TGLEventHandler.cxx
►
TGLFaceSet.cxx
TGLFBO.cxx
TGLFontManager.cxx
TGLFormat.cxx
TGLH2PolyPainter.cxx
►
TGLHistPainter.cxx
►
TGLIsoMesh.cxx
TGLLegoPainter.cxx
►
TGLLightSet.cxx
►
TGLLightSetEditor.cxx
►
TGLLockable.cxx
TGLLogicalShape.cxx
►
TGLManip.cxx
►
TGLManipSet.cxx
TGLMarchingCubes.cxx
TGLObject.cxx
►
TGLOrthoCamera.cxx
TGLOutput.cxx
►
TGLOverlay.cxx
TGLOverlayButton.cxx
►
TGLPadPainter.cxx
►
TGLPadUtils.cxx
TGLParametric.cxx
►
TGLParametricEquationGL.cxx
►
TGLPerspectiveCamera.cxx
TGLPhysicalShape.cxx
TGLPlot3D.cxx
TGLPlotBox.cxx
►
TGLPlotCamera.cxx
►
TGLPlotPainter.cxx
TGLPolyLine.cxx
TGLPolyMarker.cxx
►
TGLPShapeObj.cxx
►
TGLPShapeObjEditor.cxx
►
TGLPShapeRef.cxx
►
TGLQuadric.cxx
TGLRnrCtx.cxx
►
TGLRotateManip.cxx
►
TGLSAFrame.cxx
►
TGLSAViewer.cxx
►
TGLScaleManip.cxx
TGLScene.cxx
►
TGLSceneBase.cxx
►
TGLSceneInfo.cxx
TGLScenePad.cxx
TGLSdfFontMaker.cxx
TGLSelectBuffer.cxx
TGLSelectRecord.cxx
TGLSphere.cxx
►
TGLStopwatch.cxx
TGLSurfacePainter.cxx
►
TGLText.cxx
TGLTF3Painter.cxx
TGLTH3Composition.cxx
►
TGLTransManip.cxx
►
TGLUtil.cxx
►
TGLViewer.cxx
TGLViewerBase.cxx
TGLViewerEditor.cxx
TGLVoxelPainter.cxx
TGLWidget.cxx
TH2GL.cxx
TH3GL.cxx
TKDEAdapter.cxx
►
TKDEFGT.cxx
►
TPointSet3DGL.cxx
►
TX11GL.cxx
►
gviz3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-34-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TGLSAFrame.cxx
Go to the documentation of this file.
1
// @(#)root/gl:$Id$
2
// Author: Richard Maunder 10/08/2005
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, 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
#include "
TGLSAFrame.h
"
13
#include "
TGLSAViewer.h
"
14
15
/** \class TGLSAFrame
16
\ingroup opengl
17
Standalone GL Viewer GUI main frame. Is aggregated in TGLSAViewer -
18
top level standalone viewer object.
19
*/
20
21
ClassImp
(
TGLSAFrame
);
22
23
////////////////////////////////////////////////////////////////////////////////
24
/// Construct GUI frame, bound to passed 'viewer'
25
26
TGLSAFrame::TGLSAFrame
(
TGLSAViewer
&
viewer
) :
27
TGMainFrame
(
gClient
->GetRoot()),
28
fViewer(
viewer
)
29
{
30
}
31
32
////////////////////////////////////////////////////////////////////////////////
33
/// Construct GUI frame, bound to passed 'viewer'
34
35
TGLSAFrame::TGLSAFrame
(
const
TGWindow
* parent,
TGLSAViewer
&
viewer
) :
36
TGMainFrame
(parent),
37
fViewer(
viewer
)
38
{
39
}
40
41
////////////////////////////////////////////////////////////////////////////////
42
/// Destroy the GUI frame
43
44
TGLSAFrame::~TGLSAFrame
()
45
{
46
}
47
48
////////////////////////////////////////////////////////////////////////////////
49
/// Process GUI message - deferred back up to TGLSAViewer::ProcessFrameMessage()
50
51
Bool_t
TGLSAFrame::ProcessMessage
(
Longptr_t
msg
,
Longptr_t
parm1
,
Longptr_t
parm2
)
52
{
53
return
fViewer
.
ProcessFrameMessage
(
msg
,
parm1
,
parm2
);
54
}
55
56
////////////////////////////////////////////////////////////////////////////////
57
/// Close the GUI frame
58
59
void
TGLSAFrame::CloseWindow
()
60
{
61
// Ask our owning viewer to close
62
// Has to be deferred so that our GUI event thread can process this event
63
// and emit signals - otherwise deleted object is called to emit events
64
// Not very nice but seems to be only reliable way to close down
65
TTimer::SingleShot
(50,
"TGLSAViewer"
, &
fViewer
,
"Close()"
);
66
}
Longptr_t
long Longptr_t
Definition
RtypesCore.h:75
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
gClient
#define gClient
Definition
TGClient.h:156
TGLSAFrame.h
TGLSAViewer.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TGLSAFrame
Standalone GL Viewer GUI main frame.
Definition
TGLSAFrame.h:29
TGLSAFrame::ProcessMessage
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process GUI message - deferred back up to TGLSAViewer::ProcessFrameMessage()
Definition
TGLSAFrame.cxx:51
TGLSAFrame::TGLSAFrame
TGLSAFrame(const TGLSAFrame &)
TGLSAFrame::~TGLSAFrame
~TGLSAFrame() override
Destroy the GUI frame.
Definition
TGLSAFrame.cxx:44
TGLSAFrame::fViewer
TGLSAViewer & fViewer
Definition
TGLSAFrame.h:31
TGLSAFrame::CloseWindow
void CloseWindow() override
Close the GUI frame.
Definition
TGLSAFrame.cxx:59
TGLSAViewer
The top level standalone GL-viewer - created via plugin manager.
Definition
TGLSAViewer.h:38
TGLSAViewer::ProcessFrameMessage
Bool_t ProcessFrameMessage(Long_t msg, Long_t parm1, Long_t)
Process GUI message capture by the main GUI frame (TGLSAFrame).
Definition
TGLSAViewer.cxx:663
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition
TGFrame.h:397
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TTimer::SingleShot
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
Definition
TTimer.cxx:258
bool
graf3d
gl
src
TGLSAFrame.cxx
ROOT v6-34 - Reference Guide Generated on Mon Apr 21 2025 16:53:15 (GVA Time) using Doxygen 1.10.0