Skip to content

Commit

Permalink
Merge pull request #34 from envire/osgviz
Browse files Browse the repository at this point in the history
Use osgviz
  • Loading branch information
planthaber authored Feb 18, 2019
2 parents e55574a + f2d2ab8 commit e714abd
Show file tree
Hide file tree
Showing 15 changed files with 621 additions and 786 deletions.
1 change: 1 addition & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<depend package="qt4-opengl" />
<depend package="boost" />
<depend package="base/cmake" />
<depend package="gui/osgviz" />
<!-- <depend package="qt-designer" /> !-->
</package>
5 changes: 2 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ rock_library(vizkit3d
${PROPERTY_BROWSER_RESOURCES}
MOC
Vizkit3DPlugin.cpp
PickHandler.cpp
Vizkit3DWidget.cpp
QVizkitMainWindow.cpp
qtpropertybrowser/qteditorfactory.cpp
Expand All @@ -44,15 +43,15 @@ rock_library(vizkit3d
Vizkit3DPlugin.hpp
Vizkit3DWidget.hpp
QVizkitMainWindow.hpp
PickHandler.hpp
ColorConversionHelper.hpp
CoordinateFrame.hpp
EnvPluginBase.hpp
DefaultManipulator.hpp
${HEADERS_EXTRA}
LIBS ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY}
DEPS_CMAKE OpenGL
DEPS_PKGCONFIG openscenegraph openscenegraph-osgQt ${DEPS_EXTRA})
DEPS_PKGCONFIG openscenegraph openscenegraph-osgQt osgViz
PrimitivesFactory ManipulationClickHandler ${DEPS_EXTRA})

rock_library(vizkitwidgetloader
MOC QVizkitWidgetLoader.cpp
Expand Down
89 changes: 0 additions & 89 deletions src/ConnexionPlugin.cpp

This file was deleted.

75 changes: 0 additions & 75 deletions src/ConnexionPlugin.h

This file was deleted.

9 changes: 7 additions & 2 deletions src/NodeLink.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include "NodeLink.hpp"
#include <osgViz/windows/EventHandlers/NullClickObject.h>


#include <osg/Point>
#include <osgViz/Object.h>
#include <assert.h>
#include <iostream>
#include <stdexcept>
Expand Down Expand Up @@ -52,7 +55,7 @@ namespace vizkit
::osg::Node* NodeLink::create(::osg::Node *node1, ::osg::Node *node2, const ::osg::Vec4 &color)
{
assert(node1 && node2);

osgviz::Object* object = new osgviz::NullClickObject(); //click events should not propagate through nodelinks
::osg::Geode* geode = new ::osg::Geode();
geode->setName(node2->getName());
::osg::Geometry* geometry = new ::osg::Geometry();
Expand Down Expand Up @@ -89,6 +92,8 @@ namespace vizkit

NodeCallback *callback = new NodeCallback(node1,node2);
geode->setUpdateCallback(callback);
return (::osg::Node*)geode;
object->addChild(geode);

return (::osg::Node*)object;
}
}
Loading

0 comments on commit e714abd

Please sign in to comment.