MorphTransformSoftware 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_MORPHTRANSFORM_SOFTWARE
  15. #define OSGANIMATION_MORPHTRANSFORM_SOFTWARE 1
  16. #include <osgAnimation/Export>
  17. #include <osgAnimation/RigTransform>
  18. #include <osgAnimation/Bone>
  19. #include <osg/observer_ptr>
  20. namespace osgAnimation
  21. {
  22. class MorphGeometry;
  23. /// This class manage format for software morphing
  24. class OSGANIMATION_EXPORT MorphTransformSoftware : public MorphTransform
  25. {
  26. public:
  27. MorphTransformSoftware():_needInit(true) {}
  28. MorphTransformSoftware(const MorphTransformSoftware& rts,const osg::CopyOp& copyop): MorphTransform(rts, copyop), _needInit(true) {}
  29. META_Object(osgAnimation,MorphTransformSoftware)
  30. bool init(MorphGeometry&);
  31. virtual void operator()(MorphGeometry&);
  32. protected:
  33. bool _needInit;
  34. };
  35. }
  36. #endif