Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoDialogRealSlider.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Nicolas DAGUISE (Oct 2002)
22**=======================================================================*/
23#ifndef _SO_DIALOG_REAL_SLIDER_
24#define _SO_DIALOG_REAL_SLIDER_
25
26#include <DialogViz/dialog/SoDialogSlider.h>
27#include <Inventor/fields/SoSFFloat.h>
28
30
110{
111 SO_DG_HEADER(SoDialogRealSlider);
112
113 public:
114
119
124
129
134
139
144
145 /*==============================================================================*/
146 private:
147 static void initClass();
148 static void exitClass();
149 virtual void setValueFromEdit(SbBool is2dRender);
150 virtual void changeSliderValue();
151 virtual void updateFromSensor(SoSensor* sensor);
152 virtual void applyDlgCptAuditor();
153 virtual void buildWidget(SoWidget parent, SbVec2i32 &rSize, SbVec2i32 &pos, SbBool isActive2d);
154
155 private:
156 virtual ~SoDialogRealSlider();
157 virtual void changeEditValue();
158 virtual void setValueFromSlider(float newValue);
159 virtual void setValue();
160
161 private:
162 FIELD_SENSOR(min);
163 FIELD_SENSOR(max);
164 FIELD_SENSOR(value);
165 virtual int computeEditZoneWidth();
166
168// 3D methods
169private:
170
171private:
172
173 virtual void change3DEditValue();
174 virtual void computeNewSliderEditValue(SoKeyboardEvent* kev);
175
176private:
177 virtual void finish3DEditing();
178
180
181};
182
183#endif // _SO_DIALOG_REAL_SLIDER_
184
185
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog RealSlide...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog real slid...
void addAuditor(SoDialogRealSliderAuditor *auditor)
Adds a dialogRealSliderAuditor to the current slider component.
SoDialogRealSlider()
Constructor.
SoSFFloat max
Maximum value.
SoSFFloat value
Current value.
void removeAuditor(SoDialogRealSliderAuditor *auditor)
Removes the specified realSliderAuditor from the auditor list.
SoSFFloat min
Minimum value.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract class f...
Keyboard key press and release events.
Field containing a floating-point value.
Definition SoSFFloat.h:78
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87