RigTransform 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #ifndef OSGANIMATION_RIGTRANSFORM
  15. #define OSGANIMATION_RIGTRANSFORM 1
  16. #include <osg/Object>
  17. namespace osgAnimation
  18. {
  19. class RigGeometry;
  20. class RigTransform : public osg::Object
  21. {
  22. public:
  23. RigTransform() {}
  24. RigTransform(const RigTransform& org, const osg::CopyOp& copyop):
  25. osg::Object(org, copyop) {}
  26. META_Object(osgAnimation,RigTransform)
  27. virtual void operator()(RigGeometry&) {}
  28. /// to call manually when a skeleton is reacheable from the rig
  29. /// in order to prepare technic data before rendering
  30. virtual bool prepareData(RigGeometry&) { return true; }
  31. protected:
  32. virtual ~RigTransform() {}
  33. };
  34. class MorphGeometry;
  35. class MorphTransform : public osg::Object
  36. {
  37. public:
  38. MorphTransform() {}
  39. MorphTransform(const MorphTransform& org, const osg::CopyOp& copyop):
  40. osg::Object(org, copyop) {}
  41. META_Object(osgAnimation,MorphTransform)
  42. virtual void operator()(MorphGeometry&) {}
  43. protected:
  44. virtual ~MorphTransform() {}
  45. };
  46. }
  47. #endif