BoneMapVisitor 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -*-c++-*-
  2. * Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
  3. *
  4. * This library is open source and may be redistributed and/or modified under
  5. * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
  6. * (at your option) any later version. The full license is in LICENSE file
  7. * included with this distribution, and on the openscenegraph.org website.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * OpenSceneGraph Public License for more details.
  13. *
  14. * Authors:
  15. * Cedric Pinson <cedric.pinson@plopbyte.net>
  16. */
  17. #ifndef OSGANIMATION_BONEMAP_VISITOR
  18. #define OSGANIMATION_BONEMAP_VISITOR 1
  19. #include <osgAnimation/Export>
  20. #include <osgAnimation/Bone>
  21. #include <osg/NodeVisitor>
  22. namespace osgAnimation
  23. {
  24. class OSGANIMATION_EXPORT BoneMapVisitor : public osg::NodeVisitor
  25. {
  26. public:
  27. META_NodeVisitor(osgAnimation, BoneMapVisitor)
  28. BoneMapVisitor();
  29. void apply(osg::Node&);
  30. void apply(osg::Transform& node);
  31. const BoneMap& getBoneMap() const;
  32. protected:
  33. BoneMap _map;
  34. };
  35. }
  36. #endif