HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
binding.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_USD_SKEL_BINDING_H
8 #define PXR_USD_USD_SKEL_BINDING_H
9 
10 /// \file usdSkel/binding.h
11 
12 #include "pxr/pxr.h"
13 #include "pxr/usd/usdSkel/api.h"
14 
17 
19 
20 
21 /// \class UsdSkelBinding
22 ///
23 /// Helper object that describes the binding of a skeleton to a set of
24 /// skinnable objects. The set of skinnable objects is given as
25 /// UsdSkelSkinningQuery prims, which can be used both to identify the
26 /// skinned prim as well compute skinning properties of the prim.
28 {
29 public:
31 
33  const VtArray<UsdSkelSkinningQuery>& skinningQueries)
34  : _skel(skel), _skinningQueries(skinningQueries) {}
35 
36  /// Returns the bound skeleton.
37  const UsdSkelSkeleton& GetSkeleton() const { return _skel; }
38 
39  /// Returns the set skinning targets.
41  { return _skinningQueries; }
42 
43 private:
44  UsdSkelSkeleton _skel;
45  VtArray<UsdSkelSkinningQuery> _skinningQueries;
46 };
47 
48 
50 
51 #endif // USDSKEL_SKINNING_MAP
UsdSkelBinding(const UsdSkelSkeleton &skel, const VtArray< UsdSkelSkinningQuery > &skinningQueries)
Definition: binding.h:32
const UsdSkelSkeleton & GetSkeleton() const
Returns the bound skeleton.
Definition: binding.h:37
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const VtArray< UsdSkelSkinningQuery > & GetSkinningTargets() const
Returns the set skinning targets.
Definition: binding.h:40
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
UsdSkelBinding()
Definition: binding.h:30