Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoDialogIntegerSlider.h
Go to the documentation of this file.
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_INTEGER_SLIDER_
24#define _SO_DIALOG_INTEGER_SLIDER_
25
27
29
109{
111
112 public:
113
118
123
128
133
138
143
144
145 /*==============================================================================*/
146 private:
147 static void initClass();
148 static void exitClass();
149 virtual void changeSliderValue();
150 virtual void setValueFromEdit(SbBool is2dRender);
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 ~SoDialogIntegerSlider();
157 virtual void changeEditValue();
158 virtual void setValueFromSlider(float newValue);
159 virtual void setValue();
160
161 private:
162
166
167 virtual int computeEditZoneWidth();
168
169
171// 3D methods
172private:
173
174private:
175
176 virtual void change3DEditValue();
177 virtual void computeNewSliderEditValue(SoKeyboardEvent* kev);
178
179private:
180 virtual void finish3DEditing();
181
183
184
185};
186
187#endif // _SO_DIALOG_INTEGER_SLIDER_
188
189
#define SoWidget
Definition SoQtDef.h:40
#define SO_DG_HEADER(className)
#define FIELD_SENSOR(field)
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog IntegerSl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog integer s...
void removeAuditor(SoDialogIntegerSliderAuditor *auditor)
Removes the specified integerSliderAuditor from the auditor list.
SoSFInt32 max
Maximum value.
SoDialogIntegerSlider()
Constructor.
void addAuditor(SoDialogIntegerSliderAuditor *auditor)
Adds a dialogIntegerSliderAuditor to the current integerSlider component.
SoSFInt32 min
Minimum value.
SoSFInt32 value
Current 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 int32_t integer.
Definition SoSFInt32.h:80
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:97
int SbBool
Boolean type.
Definition SbBase.h:87