HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ColorList Class Reference

#include <UT_ColorList.h>

Public Member Functions

 UT_ColorList ()
 
 UT_ColorList (const char *rgbfile)
 
virtual ~UT_ColorList ()
 
void loadFile (const char *rgbfile)
 
bool error () const
 
void getError (int &nerrors, int &errline, UT_String &errmsg) const
 
uint numColors () const
 
UT_Color getColor (const char *colorname) const
 
UT_Color getColor (uint i) const
 
const UT_StringHoldergetColorName (uint i) const
 

Protected Types

typedef UT_IndexedHashMapStringKey MapKey
 
typedef UT_Color MapItem
 

Protected Attributes

bool myIsError
 
int myNumErrors
 
int myErrLine
 
UT_String myErrMsg
 
UT_IndexedHashMapT< MapKey,
MapItem
myColors
 

Detailed Description

Definition at line 19 of file UT_ColorList.h.

Member Typedef Documentation

typedef UT_Color UT_ColorList::MapItem
protected

Definition at line 53 of file UT_ColorList.h.

Definition at line 52 of file UT_ColorList.h.

Constructor & Destructor Documentation

UT_ColorList::UT_ColorList ( )
UT_ColorList::UT_ColorList ( const char *  rgbfile)
virtual UT_ColorList::~UT_ColorList ( )
virtual

Member Function Documentation

bool UT_ColorList::error ( ) const
inline

Definition at line 33 of file UT_ColorList.h.

UT_Color UT_ColorList::getColor ( const char *  colorname) const
UT_Color UT_ColorList::getColor ( uint  i) const
const UT_StringHolder& UT_ColorList::getColorName ( uint  i) const
void UT_ColorList::getError ( int nerrors,
int errline,
UT_String errmsg 
) const
void UT_ColorList::loadFile ( const char *  rgbfile)
uint UT_ColorList::numColors ( ) const

Member Data Documentation

UT_IndexedHashMapT<MapKey, MapItem> UT_ColorList::myColors
protected

Definition at line 59 of file UT_ColorList.h.

int UT_ColorList::myErrLine
protected

Definition at line 57 of file UT_ColorList.h.

UT_String UT_ColorList::myErrMsg
protected

Definition at line 58 of file UT_ColorList.h.

bool UT_ColorList::myIsError
protected

Definition at line 55 of file UT_ColorList.h.

int UT_ColorList::myNumErrors
protected

Definition at line 56 of file UT_ColorList.h.


The documentation for this class was generated from the following file: