]>
Commit | Line | Data |
---|---|---|
b8c9c0a3 | 1 | // $Id$ |
2 | // Category: interfaces | |
3 | // | |
4 | // Author: D. Adamova | |
66a8b12d | 5 | //================================================================ |
b8c9c0a3 | 6 | // |
7 | //----------------TG4GuiVolume.h-------------------------------// | |
8 | //----Creating link for Logical Volume Tree in AG4 Geometry----// | |
9 | // | |
10 | //================================================================= | |
11 | ||
12 | #ifndef TG4_GUI_VOLUME_H | |
13 | #define TG4_GUI_VOLUME_H | |
14 | ||
15 | #include <TObject.h> | |
16 | #include <TGListTree.h> | |
17 | ||
18 | class G4LogicalVolume; | |
66a8b12d | 19 | |
20 | ||
b8c9c0a3 | 21 | class TG4GuiVolume : public TObject |
22 | { | |
23 | public: | |
24 | TG4GuiVolume(const char* name, G4LogicalVolume* lvolume); | |
25 | virtual ~TG4GuiVolume(){;} | |
26 | ||
66a8b12d | 27 | G4LogicalVolume* GetLogicalVolume() const; |
28 | TGListTreeItem* GetItem() const; | |
29 | const char* GetName() const; | |
30 | ||
b8c9c0a3 | 31 | //---> Inlines : |
66a8b12d | 32 | void SetItem(TGListTreeItem* item) {fItem = item;} |
33 | ||
34 | //-------------------------------------------------------------------- | |
35 | protected: | |
36 | TG4GuiVolume(const TG4GuiVolume& gv) ; | |
b8c9c0a3 | 37 | |
66a8b12d | 38 | // operators |
39 | TG4GuiVolume & operator=(const TG4GuiVolume& gv) ; | |
40 | ||
41 | //--------------------------------------------------------------------- | |
42 | ||
43 | private: | |
b8c9c0a3 | 44 | G4LogicalVolume* fLogicalVolume; // geant logical volume |
45 | TGListTreeItem* fItem; // current item | |
46 | ||
b8c9c0a3 | 47 | ClassDef(TG4GuiVolume,0) |
48 | }; | |
49 | ||
50 | // | |
51 | ||
52 | #endif |