Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

  1. //====== Copyright (c) 1996-2009, Valve Corporation, All rights reserved. =====
  2. //
  3. // vsskinnerutils
  4. //
  5. //=============================================================================
  6. #ifndef VSSKINNERUTILS_H
  7. #define VSSKINNERUTILS_H
  8. // Maya includes
  9. #include <maya/MDagPath.h>
  10. #include <maya/MSelectionList.h>
  11. #include <maya/MMatrix.h>
  12. // Valve includes
  13. #include "mathlib/vmatrix.h"
  14. #if defined( _WIN32 )
  15. #pragma once
  16. #endif
  17. //-----------------------------------------------------------------------------
  18. //
  19. //-----------------------------------------------------------------------------
  20. class CVsSkinnerUtils
  21. {
  22. public:
  23. static MDagPath GetSpecifiedSkinnerNode( const MSelectionList &iList );
  24. static MStatus GetSpecifiedSkinnerNodes( const MSelectionList &iList, MSelectionList &oList );
  25. static MStatus FindSkinnerNodesInHierarchy( const MDagPath &iDagPath, MSelectionList &oList );
  26. static MStatus ConnectedToSkinnerNode( const MDagPath &iDagPath, MDagPath &oDagPath );
  27. static MStatus IsSkinnerNode( const MObject &iObject );
  28. static MStatus IsSkinnerNode( const MDagPath &iDagPath );
  29. static MStatus IsSkinnerVol( const MObject &iObject );
  30. static MStatus IsSkinnerVol( const MDagPath &iDagPath );
  31. static MStatus IsSkinnerJoint( const MObject &iObject );
  32. static MStatus IsSkinnerJoint( const MDagPath &mDagPath );
  33. static MStatus IsSkinnerBone( const MObject &iObject );
  34. static MObject GetSkinnerBoneFromSkinnerJoint( const MObject &iObject );
  35. static MObject GetSkinnerBoneFromSkinnerJoint( const MDagPath &iDagPath );
  36. static VMatrix MMatrixToVMatrix( const MMatrix &mMatrix );
  37. };
  38. #endif // VSSKINNERUTILS_H