tagging release
[dasher.git] / trunk / Src / DasherCore / CustomColours.h
blob76b906ffcb0d1409d0ba612b7af562cee4553bbe
1 // CustomColours.h
2 //
3 // Copyright (c) 2002 Iain Murray
5 #ifndef __CustomColours_h__
6 #define __CustomColours_h__
8 #include "ColourIO.h"
10 namespace Dasher {
11 class CCustomColours;
14 /// \ingroup Colours
15 /// @{
16 class Dasher::CCustomColours {
17 public:
18 CCustomColours(const CColourIO::ColourInfo & ColourInfo);
19 int GetNumColours() const {
20 return m_Red.size();
22 int GetRed(int colour) const {
23 return m_Red[colour];
25 int GetGreen(int colour) const {
26 return m_Green[colour];
28 int GetBlue(int colour) const {
29 return m_Blue[colour];
31 private:
32 const CColourIO::ColourInfo * m_ColourInfo;
33 std::vector<int> m_Red;
34 std::vector<int> m_Green;
35 std::vector<int> m_Blue;
37 /// @}
39 #endif /* #ifndef __CustomColours_h__ */