HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_ColorLookupMgr.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GR_ColorLookupMgr.h (GR library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __GR_ColorLookupMgr_h__
13 #define __GR_ColorLookupMgr_h__
14 
15 #include "GR_API.h"
16 
17 #include <UT/UT_StringMap.h>
18 #include <UT/UT_Array.h>
19 
20 class gr_ColorLookupInfo;
21 
23 {
24 public:
27 
28  int findType(const char *token) const;
29 
30  int getNumTypes() const { return myTypes.entries(); }
31  const char *getTypeLabel(int i) const;
32 
33 private:
34  bool registerType(const char *token, const char *label);
35 
36  class gr_ColorLookupInfo
37  {
38  public:
39  gr_ColorLookupInfo() {}
40  gr_ColorLookupInfo(const char *name, const char *label)
41  {
42  myName.harden(name);
43  myLabel.harden(label);
44  }
45 
46  UT_StringHolder myName;
47  UT_StringHolder myLabel;
48  };
49 
50  UT_StringMap<int> myTable;
52 };
53 
55 
56 #endif // __GR_ColorLookupMgr_h__
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
#define GR_API
Definition: GR_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:786
GR_API GR_ColorLookupMgr * GRgetColorLookupMgr()
int getNumTypes() const