|
|
|
@ -50,14 +50,14 @@ namespace SceneUtil
|
|
|
|
|
std::vector<osg::Node*> mFoundNodes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef std::unordered_map<std::string, osg::ref_ptr<osg::MatrixTransform>, Misc::StringUtils::CiHash,
|
|
|
|
|
Misc::StringUtils::CiEqual>
|
|
|
|
|
NodeMap;
|
|
|
|
|
|
|
|
|
|
/// Maps names to nodes
|
|
|
|
|
class NodeMapVisitor : public osg::NodeVisitor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
typedef std::unordered_map<std::string, osg::ref_ptr<osg::MatrixTransform>, Misc::StringUtils::CiHash,
|
|
|
|
|
Misc::StringUtils::CiEqual>
|
|
|
|
|
NodeMap;
|
|
|
|
|
|
|
|
|
|
NodeMapVisitor(NodeMap& map)
|
|
|
|
|
: osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
|
|
|
|
|
, mMap(map)
|
|
|
|
@ -74,10 +74,6 @@ namespace SceneUtil
|
|
|
|
|
class NodeMapVisitorBoneOnly : public osg::NodeVisitor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
typedef std::unordered_map<std::string, osg::ref_ptr<osg::MatrixTransform>, Misc::StringUtils::CiHash,
|
|
|
|
|
Misc::StringUtils::CiEqual>
|
|
|
|
|
NodeMap;
|
|
|
|
|
|
|
|
|
|
NodeMapVisitorBoneOnly(NodeMap& map)
|
|
|
|
|
: osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
|
|
|
|
|
, mMap(map)
|
|
|
|
|