]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/AliColourStore.h
updated commands description
[u/mrichter/AliRoot.git] / AliGeant4 / AliColourStore.h
CommitLineData
676fb573 1// $Id$
2// Category: visualization
3//
ad42298e 4// Author: I. Hrivnacova
5//
6// Class AliColourStore
7// --------------------
676fb573 8// Singleton data type class - store for the predefined colours.
9
10#ifndef ALI_COLOUR_STORE_H
11#define ALI_COLOUR_STORE_H
12
c97337f9 13#include <G4Colour.hh>
14
15class AliColour;
676fb573 16
ad42298e 17#include <g4std/vector>
676fb573 18
19class AliColourStore
20{
ad42298e 21 typedef G4std::vector<AliColour> ColourVector;
22 typedef ColourVector::iterator ColourIterator;
23 typedef ColourVector::const_iterator ColourConstIterator;
676fb573 24
25 public:
26 // --> protected
27 // AliColourStore();
28 // AliColourStore(const AliColourStore& right);
29 virtual ~AliColourStore();
30
31 // static methods
32 static AliColourStore* Instance();
33
34 // get methods
35 G4Colour GetColour(G4String name) const;
36 G4String GetColoursList() const;
37 G4String GetColoursListWithCommas() const;
38
39 protected:
40 AliColourStore();
41 AliColourStore(const AliColourStore& right);
42
43 // operators
44 AliColourStore& operator=(const AliColourStore& right);
45
46 private:
47 // static data members
48 static AliColourStore* fgInstance; //this instance
49
50 // data members
ad42298e 51 ColourVector fColours; //vector of AliColour
676fb573 52};
53
54#endif //ALI_COLOUR_STORE_H