ROOT
master
Reference Guide
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
22
////////////////////////////////////////////////////////////////////////////////
23
/// Construct GUI frame, bound to passed 'viewer'
24
25
TGLSAFrame::TGLSAFrame
(
TGLSAViewer
&
viewer
) :
26
TGMainFrame
(
gClient
->GetRoot()),
27
fViewer(
viewer
)
28
{
29
}
30
31
////////////////////////////////////////////////////////////////////////////////
32
/// Construct GUI frame, bound to passed 'viewer'
33
34
TGLSAFrame::TGLSAFrame
(
const
TGWindow
* parent,
TGLSAViewer
&
viewer
) :
35
TGMainFrame
(parent),
36
fViewer(
viewer
)
37
{
38
}
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Destroy the GUI frame
42
43
TGLSAFrame::~TGLSAFrame
()
44
{
45
}
46
47
////////////////////////////////////////////////////////////////////////////////
48
/// Process GUI message - deferred back up to TGLSAViewer::ProcessFrameMessage()
49
50
Bool_t
TGLSAFrame::ProcessMessage
(
Longptr_t
msg
,
Longptr_t
parm1
,
Longptr_t
parm2
)
51
{
52
return
fViewer
.
ProcessFrameMessage
(
msg
,
parm1
,
parm2
);
53
}
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Close the GUI frame
57
58
void
TGLSAFrame::CloseWindow
()
59
{
60
// Ask our owning viewer to close
61
// Has to be deferred so that our GUI event thread can process this event
62
// and emit signals - otherwise deleted object is called to emit events
63
// Not very nice but seems to be only reliable way to close down
64
TTimer::SingleShot
(50,
"TGLSAViewer"
, &
fViewer
,
"Close()"
);
65
}
Longptr_t
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
Definition
RtypesCore.h:89
gClient
#define gClient
Definition
TGClient.h:157
TGLSAFrame.h
TGLSAViewer.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
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:50
TGLSAFrame::TGLSAFrame
TGLSAFrame(const TGLSAFrame &)
TGLSAFrame::~TGLSAFrame
~TGLSAFrame() override
Destroy the GUI frame.
Definition
TGLSAFrame.cxx:43
TGLSAFrame::fViewer
TGLSAViewer & fViewer
Definition
TGLSAFrame.h:31
TGLSAFrame::CloseWindow
void CloseWindow() override
Close the GUI frame.
Definition
TGLSAFrame.cxx:58
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:662
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition
TGFrame.h:399
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:261
bool
graf3d
gl
src
TGLSAFrame.cxx
ROOT master - Reference Guide Generated on Sun Sep 21 2025 15:07:50 (GVA Time) using Doxygen 1.10.0