Added initial classes for present3D refactor
This commit is contained in:
41
include/osgPresentation/Element
Normal file
41
include/osgPresentation/Element
Normal 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_ELEMENT
|
||||
#define OSGPRESENTATION_ELEMENT 1
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Element : public osgPresentation::Group
|
||||
{
|
||||
public :
|
||||
|
||||
Element() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Element(const Element& element,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Group(element,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Element);
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Element() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
59
include/osgPresentation/Group
Normal file
59
include/osgPresentation/Group
Normal file
@@ -0,0 +1,59 @@
|
||||
/* -*-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_GROUP
|
||||
#define OSGPRESENTATION_GROUP 1
|
||||
|
||||
#include <osg/MatrixTransform>
|
||||
#include <osgPresentation/Export>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Group : public osg::MatrixTransform
|
||||
{
|
||||
public :
|
||||
|
||||
Group() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Group(const Group& group,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osg::MatrixTransform(group,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Group);
|
||||
|
||||
/** Convinience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value.
|
||||
* To use this template method you need to include the osg/ValueObject header.*/
|
||||
template<typename T>
|
||||
bool getProperty(const std::string& name, T& value) const
|
||||
{
|
||||
return getUserValue(name, value);
|
||||
}
|
||||
|
||||
/** Convinience method that creates the osg::TemplateValueObject<T> to store the
|
||||
* specified value and adds it as a named UserObject.
|
||||
* To use this template method you need to include the osg/ValueObject header. */
|
||||
template<typename T>
|
||||
void setProperty(const std::string& name, const T& value)
|
||||
{
|
||||
return setUserValue(name, value);
|
||||
}
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Group() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
41
include/osgPresentation/Layer
Normal file
41
include/osgPresentation/Layer
Normal 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_LAYER
|
||||
#define OSGPRESENTATION_LAYER 1
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Layer : public osgPresentation::Group
|
||||
{
|
||||
public :
|
||||
|
||||
Layer() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Layer(const Layer& layer,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Group(layer,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Layer);
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Layer() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
41
include/osgPresentation/Presentation
Normal file
41
include/osgPresentation/Presentation
Normal 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_PRESENTATION
|
||||
#define OSGPRESENTATION_PRESENTATION 1
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Presentation : public osgPresentation::Group
|
||||
{
|
||||
public :
|
||||
|
||||
Presentation() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Presentation(const Presentation& presentation,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Group(presentation,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Presentation);
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Presentation() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
41
include/osgPresentation/Section
Normal file
41
include/osgPresentation/Section
Normal 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_SECTION
|
||||
#define OSGPRESENTATION_SECTION 1
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Section : public osgPresentation::Group
|
||||
{
|
||||
public :
|
||||
|
||||
Section() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Section(const Section& section,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Group(section,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Section);
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Section() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
41
include/osgPresentation/Slide
Normal file
41
include/osgPresentation/Slide
Normal 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_SLIDE
|
||||
#define OSGPRESENTATION_SLIDE 1
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
namespace osgPresentation {
|
||||
|
||||
/** osgPresentation::Group
|
||||
*/
|
||||
class OSGPRESENTATION_EXPORT Slide : public osgPresentation::Group
|
||||
{
|
||||
public :
|
||||
|
||||
Slide() {}
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
|
||||
Slide(const Slide& slide,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osgPresentation::Group(slide,copyop) {}
|
||||
|
||||
META_Node(osgPresentation, Slide);
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~Slide() {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user