Changeset 10751 for OpenSceneGraph/trunk/include/osgAnimation/Skeleton
- Timestamp:
- 11/13/09 14:39:21 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgAnimation/Skeleton
r10656 r10751 1 1 /* -*-c++-*- 2 * Copyright (C) 2008 Cedric Pinson < mornifle@plopbyte.net>2 * Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net> 3 3 * 4 4 * This library is open source and may be redistributed and/or modified under … … 13 13 */ 14 14 15 #ifndef OSGANIMATION_SKELETON _H16 #define OSGANIMATION_SKELETON _H15 #ifndef OSGANIMATION_SKELETON 16 #define OSGANIMATION_SKELETON 1 17 17 18 #include <osg /MatrixTransform>18 #include <osgAnimation/Export> 19 19 #include <osgAnimation/Bone> 20 #include <osgAnimation/Export>21 20 22 21 namespace osgAnimation … … 32 31 public: 33 32 META_Object(osgAnimation, UpdateSkeleton); 34 UpdateSkeleton() : _needValidate(true) {}35 UpdateSkeleton(const UpdateSkeleton& us, const osg::CopyOp& copyop= osg::CopyOp::SHALLOW_COPY) : osg::Object(us, copyop), osg::NodeCallback(us, copyop) { _needValidate = true;}33 UpdateSkeleton(); 34 UpdateSkeleton(const UpdateSkeleton&, const osg::CopyOp&); 36 35 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv); 37 36 bool needToValidate() const; 38 37 protected: 39 38 bool _needValidate; 40 39 }; 41 40 42 Skeleton(const Skeleton& b, const osg::CopyOp& copyop= osg::CopyOp::SHALLOW_COPY) : Bone(b,copyop) {}43 41 Skeleton(); 44 void setDefaultUpdateCallback(void); 45 void computeBindMatrix() { _invBindInSkeletonSpace = osg::Matrix::inverse(_bindInBoneSpace); _needToRecomputeBindMatrix = false; } 42 Skeleton(const Skeleton&, const osg::CopyOp&); 43 44 void setDefaultUpdateCallback(); 45 void computeBindMatrix(); 46 46 }; 47 47
