25# include <Inventor/Qt/SoQtColorSlider.h>
27# include <Inventor/Win/SoWinColorSlider.h>
30#ifndef _SO_XT_COLOR_SLIDER_
31#define _SO_XT_COLOR_SLIDER_
33#include "SoXtSlider.h"
67 SoWidget parent = NULL,
68 const char *name = NULL,
69 SbBool buildInsideParent = TRUE,
70 Type type = INTENSITY_SLIDER);
88 void setBaseColor(
const float rgbOrHsv[3]);
89 const float *getBaseColor() {
return color; }
96 void setWYSIWYG(
SbBool trueOrFalse);
97 SbBool isWYSIWYG() {
return WYSIWYGmode; }
100 SoXtColorSlider::Type getType() {
return type; }
116 virtual void sizeChanged(
const SbVec2s &newSize);
120 virtual void drawSliderTopRegion();
128 SbColor *defaultColors, *colors;
132 void makeDefaultColors();
133 void makeWYSIWYGcolors();
135 static void sliderChangedCB(
void *,
float val);
138 void constructorCommon(SoXtColorSlider::Type type,
SbBool buildNow);