Added shell of Timeout class

This commit is contained in:
Robert Osfield 2013-01-15 11:31:44 +00:00
parent 93334e7df0
commit 81008c24df
3 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,43 @@
/* -*-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.
*/
#ifndef OSGPRESENTATION_TIMOUTOUT
#define OSGPRESENTATION_TIMOUTOUT 1
#include <osg/Group>
#include <osgPresentation/Export>
namespace osgPresentation {
class OSGPRESENTATION_EXPORT Timeout : public osg::Group
{
public:
Timeout();
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
Timeout(const Timeout&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Node(osgPresentation, Timeout);
virtual void traverse(osg::NodeVisitor& nv);
protected:
virtual ~Timeout();
};
}
#endif

View File

@ -16,6 +16,7 @@ SET(TARGET_H
${HEADER_PATH}/KeyEventHandler
${HEADER_PATH}/SlideEventHandler
${HEADER_PATH}/SlideShowConstructor
${HEADER_PATH}/Timeout
)
# FIXME: For OS X, need flag for Framework or dylib
@ -27,6 +28,7 @@ SET(TARGET_SRC
KeyEventHandler.cpp
SlideEventHandler.cpp
SlideShowConstructor.cpp
Timeout.cpp
${OPENSCENEGRAPH_VERSIONINFO_RC}
)

View File

@ -0,0 +1,37 @@
/* -*-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 <osgPresentation/Timeout>
using namespace osgPresentation;
Timeout::Timeout()
{
}
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
Timeout::Timeout(const Timeout& timeout,const osg::CopyOp& copyop):
osg::Group(timeout, copyop)
{
}
Timeout::~Timeout()
{
}
void Timeout::traverse(osg::NodeVisitor& nv)
{
OSG_NOTICE<<"Timeout::traverse"<<std::endl;
Group::traverse(nv);
}