Changeset 13041 for OpenSceneGraph/trunk/include/osg/FrameStamp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/FrameStamp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/FrameStamp
r12056 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 31 31 * and other machines when using a graphics cluster. Note the calendar 32 32 * time can be an artificial simulation time or capture the real time 33 * of day etc.*/ 33 * of day etc.*/ 34 34 class OSG_EXPORT FrameStamp : public Referenced 35 35 { … … 38 38 FrameStamp(); 39 39 FrameStamp(const FrameStamp& fs); 40 40 41 41 FrameStamp& operator = (const FrameStamp& fs); 42 42 43 43 void setFrameNumber(unsigned int fnum) { _frameNumber = fnum; } 44 44 unsigned int getFrameNumber() const { return _frameNumber; } 45 45 46 46 void setReferenceTime(double refTime) { _referenceTime = refTime; } 47 47 double getReferenceTime() const { return _referenceTime; } 48 48 49 49 void setSimulationTime(double refTime) { _simulationTime = refTime; } 50 50 double getSimulationTime() const { return _simulationTime; } 51 51 52 52 void setCalendarTime(const tm& calendarTime); 53 53 void getCalendarTime(tm& calendarTime) const; 54 54 55 // keep public to allow it to be permit allocation which is 55 // keep public to allow it to be permit allocation which is 56 56 // not on the heap used osgcluster 57 57 virtual ~FrameStamp(); 58 58 59 59 protected: 60 60 61 61 62 62 // note no dynamic memory is used so that data can be passed 63 63 // via a simple memory copy or within a data packet across 64 64 // the network. 65 65 66 66 unsigned int _frameNumber; 67 67 double _referenceTime; 68 double _simulationTime; 69 68 double _simulationTime; 69 70 70 // member variables of time.h's tm structure, copied here to 71 71 // ensure that all data is not dynamic. The tm structure itself … … 82 82 int tm_yday; /* Days in year. [0-365] */ 83 83 int tm_isdst; /* DST. [-1/0/1]*/ 84 85 84 85 86 86 }; 87 87
