HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceGprim.h
Go to the documentation of this file.
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 
12 
15 
17 
18 ///
19 /// \class UsdImagingDataSourceGprim
20 ///
21 /// Data source representing a USD gprim. This is the common base for geometric
22 /// types and includes features such as materials and primvars.
23 ///
25 {
26 public:
28 
30  TfTokenVector GetNames() override;
31 
33  HdDataSourceBaseHandle Get(const TfToken &name) override;
34 
37  UsdPrim const& prim,
38  const TfToken &subprim,
39  const TfTokenVector &properties,
40  UsdImagingPropertyInvalidationType invalidationType);
41 
42 protected:
43 
44  /// Use to construct a new UsdImagingDataSourceGprim.
45  ///
46  /// \p sceneIndexPath is the path of this object in the scene index.
47  ///
48  /// \p usdPrim is the USD prim object that this data source represents.
49  ///
50  /// \p stageGlobals represents the context object for the UsdStage with
51  /// which to evaluate this attribute data source.
52  ///
53  /// Note: client code calls this via static New.
56  const SdfPath &sceneIndexPath,
57  UsdPrim usdPrim,
58  const UsdImagingDataSourceStageGlobals &stageGlobals);
59 
60 };
61 
63 
65 
66 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_GPRIM_H
HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceGprim)
#define USDIMAGING_API
Definition: api.h:23
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
static USDIMAGING_API HdDataSourceLocatorSet Invalidate(UsdPrim const &prim, const TfToken &subprim, const TfTokenVector &properties, UsdImagingPropertyInvalidationType invalidationType)
Definition: token.h:70
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
HD_DECLARE_DATASOURCE(UsdImagingDataSourceGprim)
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: path.h:280
USDIMAGING_API TfTokenVector GetNames() override
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
USDIMAGING_API UsdImagingDataSourceGprim(const SdfPath &sceneIndexPath, UsdPrim usdPrim, const UsdImagingDataSourceStageGlobals &stageGlobals)
UsdImagingPropertyInvalidationType
Definition: types.h:17