All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dataSourcePoints.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
8#ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_POINTS_H
9#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_POINTS_H
10
11#include "pxr/usdImaging/usdImaging/dataSourceGprim.h"
12#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
13
14#include "pxr/imaging/hd/dataSource.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
23{
24public:
25 HD_DECLARE_DATASOURCE(UsdImagingDataSourcePointsPrim);
26
27 USDIMAGING_API
28 HdDataSourceBaseHandle Get(const TfToken &name) override;
29
30 USDIMAGING_API
31 static HdDataSourceLocatorSet Invalidate(
32 UsdPrim const& prim,
33 const TfToken &subprim,
34 const TfTokenVector &properties,
35 UsdImagingPropertyInvalidationType invalidationType);
36
37private:
39 const SdfPath &sceneIndexPath,
40 UsdPrim usdPrim,
41 const UsdImagingDataSourceStageGlobals &stageGlobals);
42};
43
44HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourcePointsPrim);
45
46PXR_NAMESPACE_CLOSE_SCOPE
47
48#endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_POINTS_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 USD gprim.
A prim data source representing a UsdGeomPoints prim.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the data source representing name, if valid.
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