Loading...
Searching...
No Matches
dataSourceAnimationPrim.h
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_DATA_SOURCE_ANIMATION_H
9#define PXR_USD_IMAGING_USD_SKEL_IMAGING_DATA_SOURCE_ANIMATION_H
10
11#include "pxr/pxr.h"
12#include "pxr/usdImaging/usdSkelImaging/api.h"
13
14#include "pxr/usdImaging/usdImaging/dataSourceGprim.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
24{
25public:
26 HD_DECLARE_DATASOURCE(UsdSkelImagingDataSourceAnimationPrim);
27
28 USDSKELIMAGING_API
30
31 USDSKELIMAGING_API
32 HdDataSourceBaseHandle Get(const TfToken &name) override;
33
34 USDSKELIMAGING_API
35 static
37 Invalidate(
38 UsdPrim const& prim,
39 const TfToken &subprim,
40 const TfTokenVector &properties,
41 UsdImagingPropertyInvalidationType invalidationType);
42
43private:
44 // Private constructor, use static New() instead.
45 USDSKELIMAGING_API
47 const SdfPath &sceneIndexPath,
48 UsdPrim usdPrim,
49 const UsdImagingDataSourceStageGlobals &stageGlobals);
50};
51
52HD_DECLARE_DATASOURCE_HANDLES(UsdSkelImagingDataSourceAnimationPrim);
53
54PXR_NAMESPACE_CLOSE_SCOPE
55
56#endif // PXR_USD_IMAGING_USD_SKEL_IMAGING_DATA_SOURCE_ANIMATION_H
Represents a set of data source locators closed under descendancy.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Data source representing a basic USD prim.
This class is used as a context object with global stage information, that gets passed down to dataso...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
A prim data source for UsdSkel's SkelAnimation.
USDSKELIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
USDSKELIMAGING_API TfTokenVector GetNames() override
Returns the names for which this data source can return meaningful results.
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440