]>
Commit | Line | Data |
---|---|---|
b8c9c0a3 | 1 | // $Id$ |
2 | // Category: interfaces | |
3 | // | |
4 | // Author: D. Adamova | |
5 | //=============================================================== | |
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; | |
19 | ||
20 | class TG4GuiVolume : public TObject | |
21 | { | |
22 | public: | |
23 | TG4GuiVolume(const char* name, G4LogicalVolume* lvolume); | |
24 | virtual ~TG4GuiVolume(){;} | |
25 | ||
26 | //---> Inlines : | |
27 | ||
5e7d134e | 28 | virtual const char* GetName() const { return fkName;} |
b8c9c0a3 | 29 | virtual G4LogicalVolume* GetLogicalVolume() const; |
30 | virtual void SetItem(TGListTreeItem* item) {fItem = item;} | |
31 | virtual TGListTreeItem* GetItem() {return fItem;} | |
32 | ||
33 | private: | |
34 | const char* fkName; //name of the gui volume | |
35 | G4LogicalVolume* fLogicalVolume; // geant logical volume | |
36 | TGListTreeItem* fItem; // current item | |
37 | ||
38 | TG4GuiVolume(const TG4GuiVolume& gv) {} | |
39 | TG4GuiVolume & operator=(const TG4GuiVolume& gv) {return *this;} | |
40 | ||
41 | ClassDef(TG4GuiVolume,0) | |
42 | }; | |
43 | ||
44 | // | |
45 | ||
46 | #endif |