Removed the experiemental osgPresentation classes. These are only partially functional and not appropriate for the stable OSG-3.4 release
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14758 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -1,195 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Action>
|
||||
|
||||
#include <osgPresentation/Group>
|
||||
#include <osgPresentation/Element>
|
||||
#include <osgPresentation/Text>
|
||||
#include <osgPresentation/Model>
|
||||
#include <osgPresentation/Volume>
|
||||
#include <osgPresentation/Movie>
|
||||
#include <osgPresentation/Image>
|
||||
#include <osgPresentation/Section>
|
||||
#include <osgPresentation/Layer>
|
||||
#include <osgPresentation/Slide>
|
||||
#include <osgPresentation/Presentation>
|
||||
|
||||
#include <osg/io_utils>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Action base class
|
||||
//
|
||||
void Action::apply(osgPresentation::Group& group)
|
||||
{
|
||||
OSG_NOTICE<<"LoadAction::apply()"<<std::endl;
|
||||
|
||||
osg::NodeVisitor::apply(group);
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Element& element)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Group&>(element));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Text& text)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Element&>(text));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Volume& volume)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Element&>(volume));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Model& model)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Element&>(model));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Image& image)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Element&>(image));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Movie& movie)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Element&>(movie));
|
||||
}
|
||||
|
||||
|
||||
void Action::apply(osgPresentation::Section& section)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Group&>(section));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Layer& layer)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Group&>(layer));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Slide& slide)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Group&>(slide));
|
||||
}
|
||||
|
||||
void Action::apply(osgPresentation::Presentation& presentation)
|
||||
{
|
||||
apply(static_cast<osgPresentation::Group&>(presentation));
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Specific Action implementations
|
||||
//
|
||||
void LoadAction::apply(osgPresentation::Element& element)
|
||||
{
|
||||
OSG_NOTICE<<"LoadAction::apply()"<<std::endl;
|
||||
element.load();
|
||||
}
|
||||
|
||||
void UnloadAction::apply(osgPresentation::Element& element)
|
||||
{
|
||||
element.unload();
|
||||
}
|
||||
|
||||
void ResetAction::apply(osgPresentation::Element& element)
|
||||
{
|
||||
element.reset();
|
||||
}
|
||||
|
||||
void PauseAction::apply(osgPresentation::Element& element)
|
||||
{
|
||||
element.pause();
|
||||
}
|
||||
|
||||
void PlayAction::apply(osgPresentation::Element& element)
|
||||
{
|
||||
element.play();
|
||||
}
|
||||
|
||||
struct PrintValueVisitor: public osg::ValueObject::GetValueVisitor
|
||||
{
|
||||
PrintValueVisitor(std::ostream& output) : _output(output) {}
|
||||
|
||||
template<typename T>
|
||||
void print(const T& value) { _output << value; }
|
||||
|
||||
virtual void apply(bool value) { print(value); }
|
||||
virtual void apply(char value) { print(value); }
|
||||
virtual void apply(unsigned char value) { print(value); }
|
||||
virtual void apply(short value) { print(value); }
|
||||
virtual void apply(unsigned short value) { print(value); }
|
||||
virtual void apply(int value) { print(value); }
|
||||
virtual void apply(unsigned int value) { print(value); }
|
||||
virtual void apply(float value) { print(value); }
|
||||
virtual void apply(double value) { print(value); }
|
||||
virtual void apply(const std::string& value) { print(value); }
|
||||
virtual void apply(const osg::Vec2f& value) { print(value); }
|
||||
virtual void apply(const osg::Vec3f& value) { print(value); }
|
||||
virtual void apply(const osg::Vec4f& value) { print(value); }
|
||||
virtual void apply(const osg::Vec2d& value) { print(value); }
|
||||
virtual void apply(const osg::Vec3d& value) { print(value); }
|
||||
virtual void apply(const osg::Vec4d& value) { print(value); }
|
||||
virtual void apply(const osg::Quat& value) { print(value); }
|
||||
virtual void apply(const osg::Plane& value) { print(value); }
|
||||
virtual void apply(const osg::Matrixf& value) { print(value); }
|
||||
virtual void apply(const osg::Matrixd& value) { print(value); }
|
||||
|
||||
std::ostream& _output;
|
||||
};
|
||||
|
||||
void PrintProperties::apply(osgPresentation::Group& group)
|
||||
{
|
||||
_output<<"PrintProperties osgPresentation object : "<<group.className()<<std::endl;
|
||||
osg::UserDataContainer* udc = group.getUserDataContainer();
|
||||
if (udc)
|
||||
{
|
||||
PrintValueVisitor pvv(_output);
|
||||
|
||||
for(unsigned i=0; i<udc->getNumUserObjects(); ++i)
|
||||
{
|
||||
osg::ValueObject* value_object = dynamic_cast<osg::ValueObject*>(udc->getUserObject(i));
|
||||
if (value_object)
|
||||
{
|
||||
_output<<" "<<value_object->className()<<" : "<<value_object->getName()<<" : ";
|
||||
value_object->get(pvv);
|
||||
_output<<std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
traverse(group);
|
||||
}
|
||||
|
||||
void PrintSupportedProperties::apply(osgPresentation::Group& group)
|
||||
{
|
||||
_output<<"PrintSupportedProperties osgPresentation object : "<<group.className()<<std::endl;
|
||||
osgPresentation::PropertyList properties;
|
||||
if (group.getSupportedProperties(properties))
|
||||
{
|
||||
for(osgPresentation::PropertyList::iterator itr = properties.begin();
|
||||
itr != properties.end();
|
||||
++itr)
|
||||
{
|
||||
osgPresentation::ObjectDescription& od = *itr;
|
||||
_output<<" "<<od.first->className()<<" : "<<od.first->getName()<<", description = "<<od.second<<std::endl;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
traverse(group);
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Audio>
|
||||
#include <osg/ValueObject>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Audio::load()
|
||||
{
|
||||
OSG_NOTICE<<"Audio::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string filename;
|
||||
getPropertyValue("filename", filename);
|
||||
|
||||
double volume = 1.0;
|
||||
getPropertyValue("volume", volume);
|
||||
|
||||
OSG_NOTICE<<"Audio : filename = "<<filename<<std::endl;
|
||||
OSG_NOTICE<<" volume = "<<volume<<std::endl;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Audio::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("filename",""), std::string("Audio filename to load.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("volume",1.0), std::string("Audio volume.")));
|
||||
return true;
|
||||
}
|
||||
@@ -9,25 +9,7 @@ SET(LIB_NAME osgPresentation)
|
||||
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
|
||||
SET(TARGET_H
|
||||
${HEADER_PATH}/Export
|
||||
|
||||
${HEADER_PATH}/Action
|
||||
${HEADER_PATH}/Cursor
|
||||
${HEADER_PATH}/Group
|
||||
|
||||
${HEADER_PATH}/Presentation
|
||||
${HEADER_PATH}/Section
|
||||
${HEADER_PATH}/Slide
|
||||
${HEADER_PATH}/Layer
|
||||
|
||||
${HEADER_PATH}/Element
|
||||
${HEADER_PATH}/Audio
|
||||
${HEADER_PATH}/Image
|
||||
${HEADER_PATH}/Model
|
||||
${HEADER_PATH}/Movie
|
||||
${HEADER_PATH}/Text
|
||||
${HEADER_PATH}/Volume
|
||||
|
||||
${HEADER_PATH}/PresentationInterface
|
||||
|
||||
${HEADER_PATH}/deprecated/AnimationMaterial
|
||||
${HEADER_PATH}/deprecated/CompileSlideCallback
|
||||
@@ -41,25 +23,8 @@ SET(TARGET_H
|
||||
|
||||
# FIXME: For OS X, need flag for Framework or dylib
|
||||
SET(TARGET_SRC
|
||||
Action.cpp
|
||||
|
||||
Cursor.cpp
|
||||
Group.cpp
|
||||
|
||||
Show.cpp
|
||||
Presentation.cpp
|
||||
Section.cpp
|
||||
Slide.cpp
|
||||
Layer.cpp
|
||||
|
||||
Element.cpp
|
||||
Audio.cpp
|
||||
Image.cpp
|
||||
Model.cpp
|
||||
Movie.cpp
|
||||
Text.cpp
|
||||
Volume.cpp
|
||||
|
||||
PresentationInterface.cpp
|
||||
|
||||
deprecated/AnimationMaterial.cpp
|
||||
deprecated/CompileSlideCallback.cpp
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Element>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/UserDataContainer>
|
||||
#include <osgPresentation/Group>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
class PropertyVisitor : public osg::NodeVisitor
|
||||
{
|
||||
public:
|
||||
PropertyVisitor(const std::string& name) : _name(name), _object(0) {}
|
||||
|
||||
void apply(osg::Node& node)
|
||||
{
|
||||
osg::UserDataContainer* udc = node.getUserDataContainer();
|
||||
_object = udc ? udc->getUserObject(_name) : 0;
|
||||
if (!_object) traverse(node);
|
||||
};
|
||||
|
||||
std::string _name;
|
||||
osg::Object* _object;
|
||||
};
|
||||
|
||||
osg::Object* Group::getPropertyObject(const std::string& name, bool checkParents)
|
||||
{
|
||||
PropertyVisitor pv(name);
|
||||
if (checkParents) pv.setTraversalMode(osg::NodeVisitor::TRAVERSE_PARENTS);
|
||||
accept(pv);
|
||||
return pv._object;
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Image>
|
||||
#include <osg/ValueObject>
|
||||
#include <osg/Geometry>
|
||||
#include <osg/Texture2D>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Image::load()
|
||||
{
|
||||
OSG_NOTICE<<"Image::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string filename;
|
||||
getPropertyValue("filename", filename);
|
||||
|
||||
double scale = 1.0;
|
||||
getPropertyValue("scale", scale);
|
||||
|
||||
OSG_NOTICE<<"Image : filename = "<<filename<<std::endl;
|
||||
OSG_NOTICE<<" scale = "<<scale<<std::endl;
|
||||
|
||||
osg::ref_ptr<osg::Image> image = osgDB::readImageFile(filename);
|
||||
if (image.valid())
|
||||
{
|
||||
osg::Vec3d position(0.0,0.0,0.0);
|
||||
osg::Vec3d widthVec(1.0,0.0,0.0);
|
||||
osg::Vec3d heightVec(0.0,0.0,1.0);
|
||||
|
||||
osg::ref_ptr<osg::Geometry> geometry = osg::createTexturedQuadGeometry(position, widthVec, heightVec);
|
||||
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D(image.get());
|
||||
texture->setResizeNonPowerOfTwoHint(false);
|
||||
texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR);
|
||||
texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
|
||||
geometry->getOrCreateStateSet()->setTextureAttributeAndModes(0, texture.get(), osg::StateAttribute::ON);
|
||||
|
||||
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
|
||||
geode->addDrawable(geometry.get());
|
||||
|
||||
addChild(geode.get());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Image::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("filename",""), std::string("Image filename to load.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("scale",1.0), std::string("Image scale.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/ValueObject>
|
||||
#include <osgPresentation/Layer>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
bool Layer::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("background_colour",osg::Vec4d(0.0,0.0,0.0,0.0)), std::string("Background colour.")));
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("text_colour",osg::Vec4d(1.0,1.0,1.0,1.0)), std::string("Text colour.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Model>
|
||||
#include <osg/ValueObject>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Model::load()
|
||||
{
|
||||
OSG_NOTICE<<"Model::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string filename;
|
||||
getPropertyValue("filename", filename);
|
||||
|
||||
double scale = 1.0;
|
||||
getPropertyValue("scale", scale);
|
||||
|
||||
double character_size = 0.06;
|
||||
getPropertyValue("character_size", character_size);
|
||||
|
||||
OSG_NOTICE<<"Model : filename = "<<filename<<std::endl;
|
||||
OSG_NOTICE<<" scale = "<<scale<<std::endl;
|
||||
|
||||
osg::ref_ptr<osg::Node> model = osgDB::readNodeFile(filename);
|
||||
if (model.valid())
|
||||
{
|
||||
addChild(model.get());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Model::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("filename",""), std::string("Model filename to load.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("scale",1.0), std::string("Model scale.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Movie>
|
||||
#include <osg/ValueObject>
|
||||
#include <osg/Geometry>
|
||||
#include <osg/Texture2D>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Movie::load()
|
||||
{
|
||||
OSG_NOTICE<<"Movie::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string filename;
|
||||
getPropertyValue("filename", filename);
|
||||
|
||||
double volume = 1.0;
|
||||
getPropertyValue("volume", volume);
|
||||
|
||||
double scale = 1.0;
|
||||
getPropertyValue("scale", scale);
|
||||
|
||||
OSG_NOTICE<<"Movie : filename = "<<filename<<std::endl;
|
||||
OSG_NOTICE<<" volume = "<<volume<<std::endl;
|
||||
OSG_NOTICE<<" scale = "<<scale<<std::endl;
|
||||
|
||||
osg::ref_ptr<osg::Image> image = osgDB::readImageFile(filename);
|
||||
if (image.valid())
|
||||
{
|
||||
osg::Vec3d position(0.0,0.0,0.0);
|
||||
osg::Vec3d widthVec(1.0,0.0,0.0);
|
||||
osg::Vec3d heightVec(0.0,0.0,1.0);
|
||||
|
||||
osg::ref_ptr<osg::Geometry> geometry = osg::createTexturedQuadGeometry(position, widthVec, heightVec);
|
||||
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D(image.get());
|
||||
texture->setResizeNonPowerOfTwoHint(false);
|
||||
texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR);
|
||||
texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
|
||||
geometry->getOrCreateStateSet()->setTextureAttributeAndModes(0, texture.get(), osg::StateAttribute::ON);
|
||||
|
||||
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
|
||||
geode->addDrawable(geometry.get());
|
||||
|
||||
addChild(geode.get());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Movie::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("filename",""), std::string("Movie filename to load.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("volume",1.0), std::string("Audio volume.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("scale",1.0), std::string("Movie scale.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Presentation>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
bool Presentation::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("background_colour",osg::Vec4d(0.0,0.0,0.0,0.0)), std::string("Background colour.")));
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("text_colour",osg::Vec4d(1.0,1.0,1.0,1.0)), std::string("Text colour.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/PresentationInterface>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
osgViewer::ViewerBase* PresentationInterface::getViewer()
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
return (seh!=0) ? seh->getViewer() : 0;
|
||||
}
|
||||
|
||||
osg::Node* PresentationInterface::getPresentation()
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
return (seh!=0) ? seh->getPresentationSwitch() : 0;
|
||||
}
|
||||
|
||||
osgPresentation::SlideEventHandler* PresentationInterface::getSlideEventHandler()
|
||||
{
|
||||
return SlideEventHandler::instance();
|
||||
}
|
||||
|
||||
void PresentationInterface::jump(const osgPresentation::JumpData* jumpdata)
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
if ((seh!=0) && (jumpdata!=0)) jumpdata->jump(seh);
|
||||
}
|
||||
|
||||
void PresentationInterface::sendEventToViewer(osgGA::Event* event)
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
if ((seh!=0) && (event!=0)) seh->dispatchEvent(event);
|
||||
}
|
||||
|
||||
void PresentationInterface::sendEventToViewer(const osgPresentation::KeyPosition* kp)
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
if ((seh!=0) && (kp!=0)) seh->dispatchEvent(*kp);
|
||||
}
|
||||
|
||||
void PresentationInterface::sendEventToDevices(osgGA::Event* event)
|
||||
{
|
||||
SlideEventHandler* seh = SlideEventHandler::instance();
|
||||
if ((seh!=0) && (event!=0)) seh->forwardEventToDevices(event);
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Section>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
bool Section::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("background_colour",osg::Vec4d(0.0,0.0,0.0,0.0)), std::string("Background colour.")));
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("text_colour",osg::Vec4d(1.0,1.0,1.0,1.0)), std::string("Text colour.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Show>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
bool Show::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("background_colour",osg::Vec4d(0.0,0.0,0.0,0.0)), std::string("Background colour.")));
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("text_colour",osg::Vec4d(1.0,1.0,1.0,1.0)), std::string("Text colour.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Slide>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
bool Slide::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("background_colour",osg::Vec4d(0.0,0.0,0.0,0.0)), std::string("Background colour.")));
|
||||
pl.push_back(ObjectDescription(new osg::Vec4dValueObject("text_colour",osg::Vec4d(1.0,1.0,1.0,1.0)), std::string("Text colour.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Text>
|
||||
#include <osg/ValueObject>
|
||||
#include <osgText/Text>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Text::load()
|
||||
{
|
||||
OSG_NOTICE<<"Text::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string value;
|
||||
getPropertyValue("string", value);
|
||||
|
||||
std::string font("arial.ttf");
|
||||
getPropertyValue("font", font);
|
||||
|
||||
double width = 1.0;
|
||||
getPropertyValue("width", width);
|
||||
|
||||
double character_size = 0.06;
|
||||
getPropertyValue("character_size", character_size);
|
||||
|
||||
OSG_NOTICE<<"Text : string = "<<value<<std::endl;
|
||||
OSG_NOTICE<<" font = "<<font<<std::endl;
|
||||
OSG_NOTICE<<" width = "<<width<<std::endl;
|
||||
OSG_NOTICE<<" character_size = "<<character_size<<std::endl;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Text::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("string",""), std::string("Text to render.")));
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("font",""), std::string("Font name.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("width",1.0), std::string("Maximum width of the text.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("character_size",0.06), std::string("Character size.")));
|
||||
return true;
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2013 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/Volume>
|
||||
#include <osg/ValueObject>
|
||||
#include <osgVolume/VolumeTile>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
using namespace osgPresentation;
|
||||
|
||||
|
||||
bool Volume::load()
|
||||
{
|
||||
OSG_NOTICE<<"Volume::load() Not implemented yet"<<std::endl;
|
||||
|
||||
std::string filename;
|
||||
getPropertyValue("filename", filename);
|
||||
|
||||
double scale = 1.0;
|
||||
getPropertyValue("scale", scale);
|
||||
|
||||
std::string technique;
|
||||
getPropertyValue("technique", technique);
|
||||
|
||||
OSG_NOTICE<<"Volume : filename = "<<filename<<std::endl;
|
||||
OSG_NOTICE<<" technique = "<<technique<<std::endl;
|
||||
OSG_NOTICE<<" scale = "<<scale<<std::endl;
|
||||
|
||||
osg::ref_ptr<osg::Object> object = osgDB::readObjectFile(filename);
|
||||
if (object.valid())
|
||||
{
|
||||
osg::ref_ptr<osgVolume::VolumeTile> volume = dynamic_cast<osgVolume::VolumeTile*>(object.get());
|
||||
if (volume.valid()) addChild(volume.get());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Volume::getSupportedProperties(PropertyList& pl)
|
||||
{
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("filename",""), std::string("Volume filename to load.")));
|
||||
pl.push_back(ObjectDescription(new osg::StringValueObject("technique",""), std::string("Volume technique to use when rendering.")));
|
||||
pl.push_back(ObjectDescription(new osg::DoubleValueObject("scale",1.0), std::string("Volume scale.")));
|
||||
return true;
|
||||
}
|
||||
@@ -49,6 +49,5 @@ ADD_SUBDIRECTORY(osgGA)
|
||||
ADD_SUBDIRECTORY(osgTerrain)
|
||||
ADD_SUBDIRECTORY(osgText)
|
||||
ADD_SUBDIRECTORY(osgVolume)
|
||||
ADD_SUBDIRECTORY(osgPresentation)
|
||||
ADD_SUBDIRECTORY(osgViewer)
|
||||
ADD_SUBDIRECTORY(osgUI)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Audio>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Audio,
|
||||
new osgPresentation::Audio,
|
||||
osgPresentation::Audio,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Audio" )
|
||||
{
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
FILE(GLOB TARGET_SRC *.cpp)
|
||||
FILE(GLOB TARGET_H *.h)
|
||||
|
||||
SET(TARGET_ADDED_LIBRARIES osgPresentation )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(osgpresentation)
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Element>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Element,
|
||||
new osgPresentation::Element,
|
||||
osgPresentation::Element,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Group>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Group,
|
||||
new osgPresentation::Group,
|
||||
osgPresentation::Group,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Image>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Image,
|
||||
new osgPresentation::Image,
|
||||
osgPresentation::Image,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Image" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Layer>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Layer,
|
||||
new osgPresentation::Layer,
|
||||
osgPresentation::Layer,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Layer" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Model>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Model,
|
||||
new osgPresentation::Model,
|
||||
osgPresentation::Model,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Model" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Movie>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Movie,
|
||||
new osgPresentation::Movie,
|
||||
osgPresentation::Movie,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Movie" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Presentation>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Presentation,
|
||||
new osgPresentation::Presentation,
|
||||
osgPresentation::Presentation,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Presentation" )
|
||||
{
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
#include <osgPresentation/PresentationInterface>
|
||||
#include <osgGA/Event>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
struct PresentationInterfaceGetSlideEventHandler : public osgDB::MethodObject
|
||||
{
|
||||
virtual bool run(void* objectPtr, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
{
|
||||
osgPresentation::PresentationInterface* pi = reinterpret_cast<osgPresentation::PresentationInterface*>(objectPtr);
|
||||
outputParameters.push_back(pi->getSlideEventHandler());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
struct PresentationInterfaceGetViewer : public osgDB::MethodObject
|
||||
{
|
||||
virtual bool run(void* objectPtr, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
{
|
||||
osgPresentation::PresentationInterface* pi = reinterpret_cast<osgPresentation::PresentationInterface*>(objectPtr);
|
||||
outputParameters.push_back(pi->getViewer());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
struct PresentationInterfaceGetPresentation : public osgDB::MethodObject
|
||||
{
|
||||
virtual bool run(void* objectPtr, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
{
|
||||
osgPresentation::PresentationInterface* pi = reinterpret_cast<osgPresentation::PresentationInterface*>(objectPtr);
|
||||
outputParameters.push_back(pi->getPresentation());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
struct PresentationInterfaceSendEventToViewer : public osgDB::MethodObject
|
||||
{
|
||||
virtual bool run(void* objectPtr, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
{
|
||||
osgPresentation::PresentationInterface* pi = reinterpret_cast<osgPresentation::PresentationInterface*>(objectPtr);
|
||||
if (inputParameters.empty()) return false;
|
||||
|
||||
for(osg::Parameters::iterator itr = inputParameters.begin();
|
||||
itr != inputParameters.end();
|
||||
++itr)
|
||||
{
|
||||
osgGA::Event* event = dynamic_cast<osgGA::Event*>(itr->get());
|
||||
osgPresentation::KeyPosition* kp = dynamic_cast<osgPresentation::KeyPosition*>(itr->get());
|
||||
if (kp) pi->sendEventToViewer(kp);
|
||||
else if (event) pi->sendEventToViewer(event);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
struct PresentationInterfaceSendEventToDevices : public osgDB::MethodObject
|
||||
{
|
||||
virtual bool run(void* objectPtr, osg::Parameters& inputParameters, osg::Parameters& outputParameters) const
|
||||
{
|
||||
osgPresentation::PresentationInterface* pi = reinterpret_cast<osgPresentation::PresentationInterface*>(objectPtr);
|
||||
if (inputParameters.empty()) return false;
|
||||
|
||||
for(osg::Parameters::iterator itr = inputParameters.begin();
|
||||
itr != inputParameters.end();
|
||||
++itr)
|
||||
{
|
||||
osgGA::Event* event = dynamic_cast<osgGA::Event*>(itr->get());
|
||||
if (event) pi->sendEventToDevices(event);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_PresentationInterface,
|
||||
new osgPresentation::PresentationInterface,
|
||||
osgPresentation::PresentationInterface,
|
||||
"osg::Object osgPresentation::PresentationInterface" )
|
||||
{
|
||||
ADD_METHOD_OBJECT( "getSlideEventHandler", PresentationInterfaceGetSlideEventHandler );
|
||||
ADD_METHOD_OBJECT( "getViewer", PresentationInterfaceGetViewer );
|
||||
ADD_METHOD_OBJECT( "getPresentation", PresentationInterfaceGetPresentation );
|
||||
ADD_METHOD_OBJECT( "sendEventToViewer", PresentationInterfaceSendEventToViewer );
|
||||
ADD_METHOD_OBJECT( "sendEventToDevices", PresentationInterfaceSendEventToDevices );
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Section>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Section,
|
||||
new osgPresentation::Section,
|
||||
osgPresentation::Section,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Section" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Show>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Show,
|
||||
new osgPresentation::Show,
|
||||
osgPresentation::Show,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Show" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Slide>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Slide,
|
||||
new osgPresentation::Slide,
|
||||
osgPresentation::Slide,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Slide" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Text>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Text,
|
||||
new osgPresentation::Text,
|
||||
osgPresentation::Text,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Text" )
|
||||
{
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#include <osgPresentation/Volume>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgPresentation_Volume,
|
||||
new osgPresentation::Volume,
|
||||
osgPresentation::Volume,
|
||||
"osg::Object osg::Node osg::Group osg::Transform osg::MatrixTransform osgPresentation::Group osgPresentation::Element osgPresentation::Volume" )
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user