Added Audio, Image, Movie, Model and Volume class to osgPresentation.

This commit is contained in:
Robert Osfield
2013-09-01 17:24:35 +00:00
parent de428146b9
commit 820ba45fab
17 changed files with 326 additions and 6 deletions

View File

@@ -0,0 +1,41 @@
/* -*-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_AUDIO
#define OSGPRESENTATION_AUDIO 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Audio
*/
class OSGPRESENTATION_EXPORT Audio : public osgPresentation::Element
{
public :
Audio() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Audio(const Audio& audio,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(audio,copyop) {}
META_Node(osgPresentation, Audio);
protected :
virtual ~Audio() {}
};
}
#endif

View File

@@ -18,7 +18,7 @@
namespace osgPresentation {
/** osgPresentation::Group
/** osgPresentation::Element
*/
class OSGPRESENTATION_EXPORT Element : public osgPresentation::Group
{

View File

@@ -0,0 +1,41 @@
/* -*-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_IMAGE
#define OSGPRESENTATION_IMAGE 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Image
*/
class OSGPRESENTATION_EXPORT Image : public osgPresentation::Element
{
public :
Image() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Image(const Image& image,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(image,copyop) {}
META_Node(osgPresentation, Image);
protected :
virtual ~Image() {}
};
}
#endif

View File

@@ -18,7 +18,7 @@
namespace osgPresentation {
/** osgPresentation::Group
/** osgPresentation::Layer
*/
class OSGPRESENTATION_EXPORT Layer : public osgPresentation::Group
{

View File

@@ -0,0 +1,41 @@
/* -*-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_MODEL
#define OSGPRESENTATION_MODEL 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Model
*/
class OSGPRESENTATION_EXPORT Model : public osgPresentation::Element
{
public :
Model() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Model(const Model& model,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(model,copyop) {}
META_Node(osgPresentation, Model);
protected :
virtual ~Model() {}
};
}
#endif

View File

@@ -0,0 +1,41 @@
/* -*-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_MOVIE
#define OSGPRESENTATION_MOVIE 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Movie
*/
class OSGPRESENTATION_EXPORT Movie : public osgPresentation::Element
{
public :
Movie() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Movie(const Movie& movie,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(movie,copyop) {}
META_Node(osgPresentation, Movie);
protected :
virtual ~Movie() {}
};
}
#endif

View File

@@ -18,7 +18,7 @@
namespace osgPresentation {
/** osgPresentation::Group
/** osgPresentation::Presentation
*/
class OSGPRESENTATION_EXPORT Presentation : public osgPresentation::Group
{

View File

@@ -18,7 +18,7 @@
namespace osgPresentation {
/** osgPresentation::Group
/** osgPresentation::Slide
*/
class OSGPRESENTATION_EXPORT Slide : public osgPresentation::Group
{

View File

@@ -0,0 +1,41 @@
/* -*-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_TEXT
#define OSGPRESENTATION_TEXT 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Text
*/
class OSGPRESENTATION_EXPORT Text : public osgPresentation::Element
{
public :
Text() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Text(const Text& text,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(text,copyop) {}
META_Node(osgPresentation, Text);
protected :
virtual ~Text() {}
};
}
#endif

View File

@@ -0,0 +1,41 @@
/* -*-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_VOLUME
#define OSGPRESENTATION_VOLUME 1
#include <osgPresentation/Element>
namespace osgPresentation {
/** osgPresentation::Volume
*/
class OSGPRESENTATION_EXPORT Volume : public osgPresentation::Element
{
public :
Volume() {}
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Volume(const Volume& volume,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Element(volume,copyop) {}
META_Node(osgPresentation, Volume);
protected :
virtual ~Volume() {}
};
}
#endif