From 93f514109f5fa033c343e92a2b97ba7988a58815 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Feb 2006 19:36:18 +0000 Subject: [PATCH] Further clean up of RefNodePath references. --- VisualStudio/highlight70.reg | 1 - VisualStudio/highlight71.reg | 1 - VisualStudio/highlight80.reg | 1 - .../osgprerendercubemap.cpp | 27 +++++++++---------- src/osgProducer/Viewer.cpp | 1 - 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/VisualStudio/highlight70.reg b/VisualStudio/highlight70.reg index e7ecdb902..52d29da08 100644 --- a/VisualStudio/highlight70.reg +++ b/VisualStudio/highlight70.reg @@ -204,7 +204,6 @@ Windows Registry Editor Version 5.00 "ReflectionMacros"="" "ReflectionMapGenerator"="" "Reflector"="" -"RefNodePath"="" "Registry"="" "RenderBin"="" "RenderLeaf"="" diff --git a/VisualStudio/highlight71.reg b/VisualStudio/highlight71.reg index c9005e539..1d5dce635 100644 --- a/VisualStudio/highlight71.reg +++ b/VisualStudio/highlight71.reg @@ -204,7 +204,6 @@ Windows Registry Editor Version 5.00 "ReflectionMacros"="" "ReflectionMapGenerator"="" "Reflector"="" -"RefNodePath"="" "Registry"="" "RenderBin"="" "RenderLeaf"="" diff --git a/VisualStudio/highlight80.reg b/VisualStudio/highlight80.reg index 703537839..fe009ec4c 100644 --- a/VisualStudio/highlight80.reg +++ b/VisualStudio/highlight80.reg @@ -204,7 +204,6 @@ Windows Registry Editor Version 5.00 "ReflectionMacros"="" "ReflectionMapGenerator"="" "Reflector"="" -"RefNodePath"="" "Registry"="" "RenderBin"="" "RenderLeaf"="" diff --git a/examples/osgprerendercubemap/osgprerendercubemap.cpp b/examples/osgprerendercubemap/osgprerendercubemap.cpp index 657503598..0a1d823a7 100644 --- a/examples/osgprerendercubemap/osgprerendercubemap.cpp +++ b/examples/osgprerendercubemap/osgprerendercubemap.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include @@ -85,27 +84,27 @@ ref_ptr _create_scene() return scene; } -osg::RefNodePath createReflector() +osg::NodePath createReflector() { - ref_ptr pat = new osg::PositionAttitudeTransform; + osg::PositionAttitudeTransform* pat = new osg::PositionAttitudeTransform; pat->setPosition(osg::Vec3(0.0f,0.0f,0.0f)); pat->setAttitude(osg::Quat(osg::inDegrees(0.0f),osg::Vec3(0.0f,0.0f,1.0f))); - ref_ptr geode_1 = new Geode; - pat->addChild(geode_1.get()); + Geode* geode_1 = new Geode; + pat->addChild(geode_1); const float radius = 0.8f; ref_ptr hints = new TessellationHints; hints->setDetailRatio(2.0f); - ref_ptr shape = new ShapeDrawable(new Sphere(Vec3(0.0f, 0.0f, 0.0f), radius * 1.5f), hints.get()); + ShapeDrawable* shape = new ShapeDrawable(new Sphere(Vec3(0.0f, 0.0f, 0.0f), radius * 1.5f), hints.get()); shape->setColor(Vec4(0.8f, 0.8f, 0.8f, 1.0f)); - geode_1->addDrawable(shape.get()); + geode_1->addDrawable(shape); - osg::RefNodePath refNodeList; - refNodeList.push_back(pat.get()); - refNodeList.push_back(geode_1.get()); + osg::NodePath nodeList; + nodeList.push_back(pat); + nodeList.push_back(geode_1); - return refNodeList; + return nodeList; } class UpdateCameraAndTexGenCallback : public osg::NodeCallback @@ -114,7 +113,7 @@ class UpdateCameraAndTexGenCallback : public osg::NodeCallback typedef std::vector< osg::ref_ptr > CameraList; - UpdateCameraAndTexGenCallback(osg::RefNodePath& reflectorNodePath, CameraList& cameraNodes): + UpdateCameraAndTexGenCallback(osg::NodePath& reflectorNodePath, CameraList& cameraNodes): _reflectorNodePath(reflectorNodePath), _cameraNodes(cameraNodes) { @@ -160,7 +159,7 @@ class UpdateCameraAndTexGenCallback : public osg::NodeCallback virtual ~UpdateCameraAndTexGenCallback() {} - osg::RefNodePath _reflectorNodePath; + osg::NodePath _reflectorNodePath; CameraList _cameraNodes; }; @@ -193,7 +192,7 @@ class TexMatCullCallback : public osg::NodeCallback }; -osg::Group* createShadowedScene(osg::Node* reflectedSubgraph, osg::RefNodePath reflectorNodePath, unsigned int unit, const osg::Vec4& clearColor, unsigned tex_width, unsigned tex_height, osg::CameraNode::RenderTargetImplementation renderImplementation) +osg::Group* createShadowedScene(osg::Node* reflectedSubgraph, osg::NodePath reflectorNodePath, unsigned int unit, const osg::Vec4& clearColor, unsigned tex_width, unsigned tex_height, osg::CameraNode::RenderTargetImplementation renderImplementation) { osg::Group* group = new osg::Group; diff --git a/src/osgProducer/Viewer.cpp b/src/osgProducer/Viewer.cpp index 167107f85..4e37d6dff 100644 --- a/src/osgProducer/Viewer.cpp +++ b/src/osgProducer/Viewer.cpp @@ -77,7 +77,6 @@ public: { osg::notify(osg::INFO)<<"getCoordinateFrame("<getCoordinateSystemNodePath(); if (!tmpPath.empty())