2 // Category: visualization
4 // Author: I. Hrivnacova
6 // Class AliColourStore
7 // --------------------
8 // Singleton data type class - store for the predefined colours.
10 #ifndef ALI_COLOUR_STORE_H
11 #define ALI_COLOUR_STORE_H
13 #include <G4Colour.hh>
15 #include <g4std/vector>
21 typedef G4std::vector<TColor> ColourVector;
22 typedef ColourVector::iterator ColourIterator;
23 typedef ColourVector::const_iterator ColourConstIterator;
28 // AliColourStore(const AliColourStore& right);
29 virtual ~AliColourStore();
32 static AliColourStore* Instance();
35 G4Colour AddColour(const G4String& name,
36 G4double red, G4double blue, G4double green);
39 G4Colour GetColour(const G4String& name) const;
40 G4Colour GetColour(const TColor& color) const;
41 G4String GetColoursList() const;
42 G4String GetColoursListWithCommas() const;
46 AliColourStore(const AliColourStore& right);
49 AliColourStore& operator=(const AliColourStore& right);
52 // static data members
53 static AliColourStore* fgInstance; //this instance
56 ColourVector fColours; //vector of AliColour
59 #endif //ALI_COLOUR_STORE_H