forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TX3DFrame.cxx
52 lines (41 loc) · 1.89 KB
/
TX3DFrame.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Author: Richard Maunder 04/08/05
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
// //
// TX3DFrame //
// //
// Main frame for TViewerX3D //
// //
//////////////////////////////////////////////////////////////////////////
#include "TX3DFrame.h"
#include "TViewerX3D.h"
////////////////////////////////////////////////////////////////////////////////
/// TX3DFrame constructor
TX3DFrame::TX3DFrame(TViewerX3D & viewer, const TGWindow * win, UInt_t width, UInt_t height) :
TGMainFrame(win, width, height),
fViewer(viewer)
{
}
////////////////////////////////////////////////////////////////////////////////
/// TX3DFrame destructor
TX3DFrame::~TX3DFrame()
{
}
////////////////////////////////////////////////////////////////////////////////
/// Process Message
Bool_t TX3DFrame::ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
{
return fViewer.ProcessFrameMessage(msg, parm1, parm2);
}
////////////////////////////////////////////////////////////////////////////////
/// Close window
void TX3DFrame::CloseWindow()
{
fViewer.Close();
}