First cut of osg::ImageSequence class
This commit is contained in:
49
src/osg/ImageSequence.cpp
Normal file
49
src/osg/ImageSequence.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#include <osg/ImageSequence>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
ImageSequence::ImageSequence()
|
||||
{
|
||||
_referenceTime = 0.0;
|
||||
_timeMultiplier = 1.0;
|
||||
}
|
||||
|
||||
ImageSequence::ImageSequence(const ImageSequence& is,const CopyOp& copyop):
|
||||
osg::ImageStream(is,copyop),
|
||||
_referenceTime(is._referenceTime),
|
||||
_timeMultiplier(is._timeMultiplier)
|
||||
{
|
||||
}
|
||||
|
||||
int ImageSequence::compare(const Image& rhs) const
|
||||
{
|
||||
return ImageStream::compare(rhs);
|
||||
}
|
||||
|
||||
void ImageSequence::addImageFile(double time, std::string& fileName)
|
||||
{
|
||||
_timeFileNameSequence[time] = fileName;
|
||||
}
|
||||
|
||||
void ImageSequence::addImage(double time, osg::Image* image)
|
||||
{
|
||||
_timeImageSequence.push_back(TimeImagePair(time,image));
|
||||
}
|
||||
|
||||
void ImageSequence::update(osg::FrameStamp* fs)
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user