root/OpenSceneGraph/trunk/src/osgSim/BlinkSequence.cpp @ 13041

Revision 13041, 1.4 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
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
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#include <osgSim/BlinkSequence>
15
16#include <stdlib.h>
17
18using namespace osgSim;
19
20BlinkSequence::BlinkSequence():
21    _pulsePeriod(0.0),
22    _phaseShift(0.0),
23    _pulseData(),
24    _sequenceGroup(0)
25{
26}
27
28BlinkSequence::BlinkSequence(const BlinkSequence& bs, const osg::CopyOp& copyop):
29    osg::Object(bs,copyop),
30    _pulsePeriod(bs._pulsePeriod),
31    _phaseShift(bs._phaseShift),
32    _pulseData(bs._pulseData),
33    _sequenceGroup(bs._sequenceGroup)
34{
35}
36
37
38SequenceGroup::SequenceGroup()
39{
40    // set a random base time between 0 and 1000.0
41    _baseTime = ((double)rand()/(double)RAND_MAX)*1000.0;
42}
43
44SequenceGroup::SequenceGroup(const SequenceGroup& sg, const osg::CopyOp& copyop):
45    osg::Object(sg, copyop),
46    _baseTime(sg._baseTime)
47{
48}
49
50SequenceGroup::SequenceGroup(double baseTime):
51    _baseTime(baseTime)
52{
53}
Note: See TracBrowser for help on using the browser.