00001 #ifndef COIN_SOGUICOLOREDITOR_H 00002 #define COIN_SOGUICOLOREDITOR_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) 1998-2005 by Systems in Motion. All rights reserved. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Systems in Motion about acquiring 00018 * a Coin Professional Edition License. 00019 * 00020 * See <URL:http://www.coin3d.org/> for more information. 00021 * 00022 * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00023 * <URL:http://www.sim.no/>. 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/fields/SoSFBool.h> 00028 #include <Inventor/fields/SoSFEnum.h> 00029 #include <Inventor/fields/SoSFColor.h> 00030 #include <Inventor/nodekits/SoBaseKit.h> 00031 00032 class SoGuiColorEditor : public SoBaseKit { 00033 typedef SoBaseKit inherited; 00034 SO_KIT_HEADER(SoGuiColorEditor); 00035 SO_KIT_CATALOG_ENTRY_HEADER(root); 00036 00037 public: 00038 static void initClass(void); 00039 SoGuiColorEditor(void); 00040 00041 enum Sliders { 00042 NONE, 00043 INTENSITY, 00044 RGB, 00045 HSV, 00046 RGB_V, 00047 RGB_HSV 00048 }; 00049 00050 enum Update { 00051 CONTINUOUS, 00052 AFTER_ACCEPT 00053 }; 00054 00055 SoSFEnum sliders; 00056 SoSFEnum update; 00057 SoSFBool wysiwyg; 00058 SoSFColor color; 00059 00060 protected: 00061 ~SoGuiColorEditor(void); 00062 00063 private: 00064 void * internals; 00065 00066 }; 00067 00068 #endif // !COIN_SOGUICOLOREDITOR_H