00001 #ifndef COIN_SOGLCOLORINDEXELEMENT_H
00002 #define COIN_SOGLCOLORINDEXELEMENT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/elements/SoReplacedElement.h>
00028
00029 class COIN_DLL_API SoGLColorIndexElement : public SoReplacedElement {
00030 typedef SoReplacedElement inherited;
00031
00032 SO_ELEMENT_HEADER(SoGLColorIndexElement);
00033 public:
00034 static void initClass(void);
00035 protected:
00036 virtual ~SoGLColorIndexElement();
00037
00038 public:
00039 static SbBool isColorIndexMode(SoState * state);
00040
00041 virtual void init(SoState * state);
00042
00043 static void set(SoState * const state, SoNode * const node,
00044 const int32_t numindices, const int32_t * const indices);
00045
00046 static const SoGLColorIndexElement * getInstance(SoState *state);
00047
00048 int32_t getNum(void) const;
00049 int32_t get(const int index) const;
00050 static int32_t getDefault(void);
00051
00052 private:
00053 SoState * state;
00054 };
00055
00056 #endif // !COIN_SOGLCOLORINDEXELEMENT_H