]>
Commit | Line | Data |
---|---|---|
676fb573 | 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 "AliColour.h" | |
10 | ||
11 | #include <g4rw/tvordvec.h> | |
12 | ||
13 | class AliColourStore | |
14 | { | |
15 | typedef G4RWTValOrderedVector<AliColour> AliColourVector; | |
16 | ||
17 | public: | |
18 | // --> protected | |
19 | // AliColourStore(); | |
20 | // AliColourStore(const AliColourStore& right); | |
21 | virtual ~AliColourStore(); | |
22 | ||
23 | // static methods | |
24 | static AliColourStore* Instance(); | |
25 | ||
26 | // get methods | |
27 | G4Colour GetColour(G4String name) const; | |
28 | G4String GetColoursList() const; | |
29 | G4String GetColoursListWithCommas() const; | |
30 | ||
31 | protected: | |
32 | AliColourStore(); | |
33 | AliColourStore(const AliColourStore& right); | |
34 | ||
35 | // operators | |
36 | AliColourStore& operator=(const AliColourStore& right); | |
37 | ||
38 | private: | |
39 | // static data members | |
40 | static AliColourStore* fgInstance; //this instance | |
41 | ||
42 | // data members | |
43 | AliColourVector fColours; //vector of AliColour | |
44 | }; | |
45 | ||
46 | #endif //ALI_COLOUR_STORE_H |