Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PoNumericDisplayFormat.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 : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_NUMERIC_DISPLAY_FORMAT_
25#define _PO_NUMERIC_DISPLAY_FORMAT_
26
27#include <MeshViz/nodes/PoNode.h>
28#include <Inventor/fields/SoSFShort.h>
29#include <Inventor/fields/SoSFEnum.h>
30
32class SoFieldSensor ;
33
63
64 SO_NODE_HEADER(PoNumericDisplayFormat) ;
65
66
67 public:
68
86
87 /* Fields */
88
93
99
105
106 /* Methods */
107
112
113 /*----------------------------------------------------------------------------*/
114
115
116 private:
117 virtual void doAction(SoAction *action) ;
118
119 private:
120 static void initClass() ;
121 static void exitClass() ;
122
123 private:
124 virtual ~PoNumericDisplayFormat() ;
125
126 private:
127 static void formatChangedCB(void *data, SoSensor *) ;
128
129 SbBool m_formatChanged ;
130 PbNumericDisplayFormat *m_format ;
131 SoFieldSensor *m_formatTypeSensor ;
132 SoFieldSensor *m_numDecimalSensor ;
133 SoFieldSensor *m_tenPowerSensor ;
134} ;
135/*----------------------------------------------------------------------------*/
136
137#endif /* _PO_NUMERIC_DISPLAY_FORMAT_ */
138
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to define a numeri...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoNode.h:39
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Node to define the numer...
SoSFShort numDecimal
Defines the number of decimals placed after the decimal point.
SoSFShort tenPower
Defines the power of ten divisor.
PoNumericDisplayFormat()
Constructor.
@ FLOAT_FORMAT
Floating-point numerical display format.
@ INTEGER_FORMAT
Integer numerical display format.
@ AUTO_FORMAT
Automatic numerical display format.
SoSFEnum formatType
Defines the type of format.
Abstract base class for all actions.
Definition SoAction.h:132
Sensor class that can be attached to Open Inventor fields.
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a short integer.
Definition SoSFShort.h:81
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87