Loading...
Searching...
No Matches
dataSourceBindingAPI.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_BINDING_API_H
9#define PXR_USD_IMAGING_USD_SKEL_IMAGING_DATA_SOURCE_BINDING_API_H
10
11#include "pxr/usdImaging/usdSkelImaging/api.h"
12
13#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
14#include "pxr/usdImaging/usdImaging/types.h"
15#include "pxr/usd/usd/prim.h"
16
17#include "pxr/imaging/hd/dataSource.h"
18
19PXR_NAMESPACE_OPEN_SCOPE
20
26{
27public:
28 HD_DECLARE_DATASOURCE(UsdSkelImagingDataSourceBindingAPI);
29
30 USDSKELIMAGING_API
32
33 USDSKELIMAGING_API
34 HdDataSourceBaseHandle Get(const TfToken &name) override;
35
36 USDSKELIMAGING_API
37 static
39 Invalidate(
40 UsdPrim const& prim,
41 const TfToken &subprim,
42 const TfTokenVector &properties,
43 UsdImagingPropertyInvalidationType invalidationType);
44
45private:
46 USDSKELIMAGING_API
48 const SdfPath &sceneIndexPath,
49 UsdPrim usdPrim,
50 const UsdImagingDataSourceStageGlobals &stageGlobals);
51
52 const SdfPath _sceneIndexPath;
53 const UsdPrim _usdPrim;
54 const UsdImagingDataSourceStageGlobals &_stageGlobals;
55};
56
57HD_DECLARE_DATASOURCE_HANDLES(UsdSkelImagingDataSourceBindingAPI);
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#endif
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition: dataSource.h:99
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
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 SkelBindingAPI.
USDSKELIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
USDSKELIMAGING_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440