H3D API  2.4.1
SFTime.h
Go to the documentation of this file.
1 // Copyright 2004-2019, SenseGraphics AB
3 //
4 // This file is part of H3D API.
5 //
6 // H3D API is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // H3D API is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with H3D API; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // A commercial license is also available. Please contact us at
21 // www.sensegraphics.com for more information.
22 //
23 //
26 //
28 #ifndef __SFTIME_H__
29 #define __SFTIME_H__
30 
31 #include <H3D/SField.h>
32 #include <H3D/SFDouble.h>
33 
34 namespace H3D {
35 
38  class H3DAPI_API SFTime: public TypedField< SFDouble, void,
39  AnyNumber< SFTime > > {
40  public:
41  SFTime( const H3DTime &_value = 0 ) { value = _value; }
42  virtual string getTypeName() { return classTypeName(); }
43  static string classTypeName() { return "SFTime"; }
44  virtual X3DTypes::X3DType getX3DType() { return X3DTypes::SFTIME; }
45  };
46 }
47 
48 #endif
49 
Contains the SFDouble field class.
Contains the SField template class.
The SFTime field contains a single time value.
Definition: SFTime.h:39
virtual string getTypeName()
Returns a string name for this field type e.g. SFInt32.
Definition: SFTime.h:42
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
double H3DTime
H3D API namespace.
Definition: Anchor.h:38