Logo Search packages:      
Sourcecode: dasher version File versions

CustomColours.h

// CustomColours.h
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002 Iain Murray
//
/////////////////////////////////////////////////////////////////////////////


#ifndef __CustomColours_h__
#define __CustomColours_h__


#include "ColourIO.h"


namespace Dasher {class CCustomColours;}
class Dasher::CCustomColours
{
public:
      CCustomColours(const CColourIO::ColourInfo& ColourInfo);
      int GetNumColours() {return m_Red.size();}
      int GetRed(int colour) {return m_Red[colour];}
      int GetGreen(int colour) {return m_Green[colour];}
      int GetBlue(int colour) {return m_Blue[colour];}
 private:
      const CColourIO::ColourInfo* m_ColourInfo;
      std::vector<int> m_Red; 
      std::vector<int> m_Green;     
      std::vector<int> m_Blue;      
};


#endif /* #ifndef __CustomColours_h__ */

Generated by  Doxygen 1.6.0   Back to index