1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2014 Robert Osfield
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
14#ifndef OSGUI_COLORPALETTE
15#define OSGUI_COLORPALETTE
19#include <osgUI/Export>
24class OSGUI_EXPORT ColorPalette : public osg::Object
28 ColorPalette(const ColorPalette& cp, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
29 META_Object(osgUI, ColorPalette);
32 typedef std::vector<osg::Vec4f> Colors;
34 void setColors(const Colors& colors) { _colors = colors; }
35 Colors& getColors() { return _colors; }
36 const Colors& getColors() const { return _colors; }
38 typedef std::vector<std::string> Names;
40 void setNames(const Names& names) { _names = names; }
41 Names& getNames() { return _names; }
42 const Names& getNames() const { return _names; }
47 virtual ~ColorPalette() {}