]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant3/AliGeant3GeometryGUI.cxx
attributes fAllLVSensitive, fForceAllLVSensitive and their setters removed
[u/mrichter/AliRoot.git] / TGeant3 / AliGeant3GeometryGUI.cxx
CommitLineData
ef42d733 1/* *************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17$Log$
00fa5558 18Revision 1.1 2000/07/13 16:19:10 fca
19Mainly coding conventions + some small bug fixes
20
ef42d733 21Revision 1.8 2000/07/12 08:56:32 fca
22Coding convention correction and warning removal
23
24Revision 1.7 2000/06/28 21:27:45 morsch
25Most coding rule violations corrected.
26Still to do: Split the file (on file per class) ? Avoid the global variables.
27Copy constructors and assignment operators (dummy ?)
28
29Revision 1.6 2000/04/14 11:07:46 morsch
30Correct volume to medium assignment in case several media are asigned to the
31same material.
32
33Revision 1.5 2000/03/20 15:11:03 fca
34Mods to make the code compile on HP
35
36Revision 1.4 2000/01/18 16:12:08 morsch
37Bug in calculation of number of volume divisions and number of positionings corrected
38Browser for Material and Media properties added
39
40Revision 1.3 1999/11/14 14:31:14 fca
41Correct small error and remove compilation warnings on HP
42
43Revision 1.2 1999/11/10 16:53:35 fca
44The new geometry viewer from A.Morsch
45
46*/
47
48/*
49 * Version: 0
50 * Written by Andreas Morsch
51 *
52 *
53 *
54 * For questions critics and suggestions to this part of the code
55 * contact andreas.morsch@cern.ch
56 *
57 **************************************************************************/
58
59
60#include "AliGeant3GeometryGUI.h"
00fa5558 61#include "AliG3Volume.h"
62#include "AliG3Material.h"
63#include "AliG3Medium.h"
ef42d733 64#include "AliGuiGeomMain.h"
00fa5558 65#include "AliRun.h"
66#include "AliG3toRoot.h"
67
68#include <TArrayF.h>
69#include <TRotMatrix.h>
70#include <TGeometry.h>
71#include <TFile.h>
72#include <TFolder.h>
ef42d733 73
00fa5558 74AliG3Volume *gCurrentVolume = new AliG3Volume("NULL");
75AliG3Material *gCurrentMaterial = new AliG3Material();
76AliG3Medium *gCurrentMedium = new AliG3Medium();
ef42d733 77
78ClassImp(AliGeant3GeometryGUI)
79
80 AliGeant3GeometryGUI::AliGeant3GeometryGUI()
81{
82// Constructor
00fa5558 83 fPanel = new AliGuiGeomMain(gClient->GetRoot(), 500, 500);
ef42d733 84// Store local copy of zebra bank entries
00fa5558 85 AliG3toRoot* geometry = new AliG3toRoot();
86// geometry->SetExpandDivisions();
87 geometry->G3toRoot();
ef42d733 88
00fa5558 89 AliG3Volume* top = (AliG3Volume*)
90 (geometry->GetTopFolder()->FindObject("ALIC"));
91 gCurrentVolume = top;
92//
93// Mediate between g3 Geometry and GUI
94 fPanel->SetMaterialComboEntries(geometry->GetMaterials());
95 fPanel->SetMediaComboEntries(geometry->GetMedia());
96 fPanel->AddFoldersRecursively(geometry->GetTopFolder());
ef42d733 97 fPanel->Update();
98}
99
00fa5558 100void AliGeant3GeometryGUI::Streamer(TBuffer &)
ef42d733 101{
00fa5558 102// Dummy Streamer
103;
ef42d733 104}
105
ef42d733 106
ef42d733 107
ef42d733 108
109