]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliColourStore.h
The argument of SetHighWaterMark declared const
[u/mrichter/AliRoot.git] / AliGeant4 / AliColourStore.h
1 // $Id$
2 // Category: visualization
3 //
4 // Singleton data type class - store for the predefined colours.
5
6 #ifndef ALI_COLOUR_STORE_H
7 #define ALI_COLOUR_STORE_H
8
9 #include <G4Colour.hh>
10  
11 class AliColour;
12
13 #include <g4rw/tvordvec.h>
14
15 class AliColourStore 
16 {
17   typedef G4RWTValOrderedVector<AliColour>  AliColourVector;
18
19   public:
20     // --> protected
21     // AliColourStore();
22     // AliColourStore(const AliColourStore& right);
23     virtual ~AliColourStore();
24     
25     // static methods
26     static AliColourStore* Instance();
27
28     // get methods
29     G4Colour GetColour(G4String name) const;
30     G4String GetColoursList() const;
31     G4String GetColoursListWithCommas() const;
32     
33   protected:
34     AliColourStore();  
35     AliColourStore(const AliColourStore& right);
36
37     // operators
38     AliColourStore& operator=(const AliColourStore& right);
39
40   private:
41     // static data members
42     static AliColourStore*  fgInstance; //this instance
43
44     // data members
45     AliColourVector  fColours;          //vector of AliColour
46 };   
47
48 #endif //ALI_COLOUR_STORE_H