/* -*-c++-*- 
 * 
 * osgART - ARToolKit for OpenSceneGraph
 * Copyright (C) 2005-2008 Human Interface Technology Laboratory New Zealand
 * 
 * This file is part of osgART 2.0
 *
 * osgART 2.0 is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * osgART 2.0 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
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with osgART 2.0.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef OSGART_IMAGESTREAMCALLBACK
#define OSGART_IMAGESTREAMCALLBACK 1

#include <osgART/Export>

#include <osg/NodeCallback>
#include <osg/ImageStream>
#include <osg/FrameStamp>

namespace osgART {
	
	class ImageStreamCallback : public osg::NodeCallback 
	{
	public:

		ImageStreamCallback(osg::ImageStream* imagestream);

		virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
		
	protected:
	
		int _framenumber;
		osg::ImageStream* _imagestream;
	
	};
}


#endif
