Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoDateFormatMapping.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_DATE_FORMAT_MAPPING_
25#define _PO_DATE_FORMAT_MAPPING_
26
27#include <MeshViz/nodes/PoNode.h>
28#include <Inventor/fields/SoSFFloat.h>
29#include <Inventor/fields/SoSFString.h>
30
32class SoFieldSensor ;
33
107
108 SO_NODE_HEADER(PoDateFormatMapping) ;
109
110
111 public:
112
113 /* Fields */
114
121
127
133
139
144
145 /* Methods */
146
151
158 SbBool getCoordinate(const char *date, float &coord) ;
159
160 /*----------------------------------------------------------------------------*/
161
162
163 private:
164 virtual void doAction(SoAction *action) ;
165
166 private:
167 static void initClass() ;
168 static void exitClass() ;
169
170 private:
171 virtual ~PoDateFormatMapping() ;
172
173 private:
174 static void formatChangedCB(void *data, SoSensor *) ;
175 static void dateCoordChangedCB(void *data, SoSensor *) ;
176
177 void updateDateFormatMapping() ;
178
179 SbBool m_formatChanged ;
180 SbBool m_dateCoordChanged ;
181 PbDateFormatMapping *m_format ;
182 SoFieldSensor *m_date1Sensor ;
183 SoFieldSensor *m_date2Sensor ;
184 SoFieldSensor *m_coord1Sensor ;
185 SoFieldSensor *m_coord2Sensor ;
186 SoFieldSensor *m_formatSensor ;
187
188} ;
189/*----------------------------------------------------------------------------*/
190
191#endif /* _PO_DATE_FORMAT_MAPPING_ */
192
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines the date format ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Node to define date form...
SoSFString format
Defines the format for dates.
SoSFString date1
Defines the first date for the association between dates and coordinates (date mapping).
SoSFFloat coord1
Defines the first coordinate for the association between dates and coordinates (date mapping).
SbBool getCoordinate(const char *date, float &coord)
Returns the coordinate associated to a date.
PoDateFormatMapping()
Constructor.
SoSFString date2
Defines the second date for the association between dates and coordinates (date mapping).
SoSFFloat coord2
Defines the second coordinate for the association between dates and coordinates (date mapping).
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoNode.h:39
Abstract base class for all actions.
Definition SoAction.h:132
Sensor class that can be attached to Open Inventor fields.
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a string.
Definition SoSFString.h:117
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87