23#ifndef _SO_DIALOG_SLIDER_
24#define _SO_DIALOG_SLIDER_
29class SoDialogCustomSlider;
109 virtual void destroyWidget();
110 virtual void eventNotify(
unsigned int event, uintptr_t param);
112 static void initClass();
113 static void exitClass();
114 virtual void setValueFromEdit(
SbBool ) {};
115 virtual void setValueFromSlider(
float ) {};
116 virtual void changeSliderValue() {};
117 virtual void updateFromSensor(
SoSensor* sensor);
119 static void finishCallback(
void *slider,
float newValue);
120 static void valueChangeCallback(
void* slider,
float newValue);
121 virtual void setValue() {};
122 SbBool getActive2d() {
return m_isActive2d; };
125 void changeValueFromSlider(
float newValue);
126 void changeValueAfterFinish(
float newValue);
127 void changeSliderFromEdit();
128 void changeSliderFromSlider(
float num);
131 void updateEditWidget();
132 void updateSliderWidget();
133 void updateLabelWidget();
134 void updateToggleWidget();
144 SoDialogCustomSlider* m_dialogCustomSlider;
145 bool m_ownDialogCustomSlider;
149 virtual void changeEditValue() {};
151 virtual int computeEditZoneWidth() {
return 0;};
166 virtual SbVec2i32 getComponentInitSize();
170 void createEditWidget();
171 void createLabelWidget();
172 void createSliderWidget();
173 void createToggleWidget();
178 virtual void changeValueVisible();
179 virtual void changeToggleVisible();
180 virtual void changeContinuousTrigger();
181 virtual void changeFormat();
184 virtual void changeEdgeStyle();
185 virtual void changeLabelVisibility();
188 virtual void changeEnable();
189 virtual void changeWidgetEnable(
SbBool state);
190 virtual void changeLabel();
191 virtual void changeLabelAlignment();
196 static char* DialogSlider;
197 static void change3DSkin();
198 static SbBool isSkinLoaded();
199 static void setSkinLoaded(
SbBool loaded);
203 void change3DSliderValue();
204 void change3DCursor();
230 SoScale *sliderFrameScale, *sliderEditFrameScale;
231 SoText3 *sliderLabel, *sliderEditText;
232 SoTransform *sliderFrameTransform, *sliderEditFrameTransform;
233 SoTranslation *sliderLabelTranslation, *sliderToggleTranslation;
234 SoTranslation *sliderFrameTranslation, *sliderEditFrameTranslation;
235 SoTranslation *sliderEditTextTranslation, *sliderCursorTranslation, *sliderCursorPosTranslation;
238 virtual void change3DEditValue();
239 virtual void change3DEnable();
243 static SbBool m_isSkinLoaded;
249 void create3DDialogSlider();
250 void update3DSlider();
251 void update3DLabel();
253 virtual void set3DInactive();
254 virtual void change3DLabelVisibility();
255 virtual void change3DLabel();
256 virtual void change3DLabelAlignment();
257 void change3DContinuousTrigger();
258 void change3DValueVisible();
259 void change3DToggleVisible();
261 static void startCB3D(
void *,
SoDragger *inDragger );
262 static void motionCB3D(
void *,
SoDragger *inDragger );
263 static void finishCB3D(
void *,
SoDragger *inDragger );
264 void draggerStartCallback3D();
265 void draggerMotionCallback3D();
266 void draggerFinishCallback3D();
271 virtual void finish3DEditing() {};
#define SO_DG_HEADER(className)
#define FIELD_SENSOR(field)
#define SO_DG_CATALOG_ENTRY_HEADER(resource)
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract class f...
SoSFBool fixedLimits
Allows user to enter a value outside the min/max range.
SoSFBool valueVisible
Specifies whether the edit zone value is visible or not.
SoSFString format
Specify the string format of the slider value edit zone.
SoSFBool continuousTrigger
If this field is set to FALSE, the associated interface is called when the mouse button is released.
SoSFBool shadedColors
Indicates is the set of colors defined in the field colors is rendered in shaded mode or not.
SoSFBool toggleVisible
Specifies whether the toggle button that manages continuous triggering is visible or not.
SoMFColor colors
Contains an array of colors.
SoDialogSlider()
Constructor.
Base class for nodekits that move in response to click-drag-release mouse events.
Node which invokes callbacks for events.
Keyboard key press and release events.
Multiple-value field containing any number of RGB colors stored as three floats.
Field containing a single Boolean value.
Field containing a string.
Node representing a 3D geometric scaling.
Abstract base class for Open Inventor sensors.
Node representing a 3D translation.