Loading...
Searching...
No Matches
dataSourceGprim.h
1//
2// Copyright 2022 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_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H
8#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H
9
10#include "pxr/imaging/hd/dataSource.h"
11#include "pxr/imaging/hd/dataSourceTypeDefs.h"
12
13#include "pxr/usdImaging/usdImaging/dataSourcePrim.h"
14#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
25{
26public:
27 HD_DECLARE_DATASOURCE(UsdImagingDataSourceGprim);
28
29 USDIMAGING_API
31
32 USDIMAGING_API
33 HdDataSourceBaseHandle Get(const TfToken &name) override;
34
35 USDIMAGING_API
36 static HdDataSourceLocatorSet Invalidate(
37 UsdPrim const& prim,
38 const TfToken &subprim,
39 const TfTokenVector &properties,
40 UsdImagingPropertyInvalidationType invalidationType);
41
42protected:
43
54 USDIMAGING_API
56 const SdfPath &sceneIndexPath,
57 UsdPrim usdPrim,
58 const UsdImagingDataSourceStageGlobals &stageGlobals);
59
60};
61
62HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceGprim);
63
64PXR_NAMESPACE_CLOSE_SCOPE
65
66#endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_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:281
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Data source representing a USD gprim.
USDIMAGING_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
USDIMAGING_API UsdImagingDataSourceGprim(const SdfPath &sceneIndexPath, UsdPrim usdPrim, const UsdImagingDataSourceStageGlobals &stageGlobals)
Use to construct a new UsdImagingDataSourceGprim.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
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
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440