2 // Category: interfaces
5 //================================================================
7 //----------------TG4GuiVolume.h-------------------------------//
8 //----Creating link for Logical Volume Tree in AG4 Geometry----//
10 //=================================================================
12 #ifndef TG4_GUI_VOLUME_H
13 #define TG4_GUI_VOLUME_H
16 #include <TGListTree.h>
18 class G4LogicalVolume;
21 class TG4GuiVolume : public TObject
24 TG4GuiVolume(const char* name, G4LogicalVolume* lvolume);
25 virtual ~TG4GuiVolume(){;}
27 G4LogicalVolume* GetLogicalVolume() const;
28 TGListTreeItem* GetItem() const;
29 const char* GetName() const;
32 void SetItem(TGListTreeItem* item) {fItem = item;}
34 //--------------------------------------------------------------------
36 TG4GuiVolume(const TG4GuiVolume& gv) ;
39 TG4GuiVolume & operator=(const TG4GuiVolume& gv) ;
41 //---------------------------------------------------------------------
44 G4LogicalVolume* fLogicalVolume; // geant logical volume
45 TGListTreeItem* fItem; // current item
47 ClassDef(TG4GuiVolume,0)