dataSourceNurbsCurves.h
1 //
2 // Copyright 2023 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_NURBS_CURVES_H
9 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_NURBS_CURVES_H
10 
11 #include "pxr/usdImaging/usdImaging/dataSourceGprim.h"
12 
13 PXR_NAMESPACE_OPEN_SCOPE
14 
20 {
21 public:
22  HD_DECLARE_DATASOURCE(UsdImagingDataSourceNurbsCurvesPrim);
23 
24  TfTokenVector GetNames() override;
25  HdDataSourceBaseHandle Get(const TfToken &name) override;
26 
27  static
29  Invalidate(
30  UsdPrim const& prim,
31  const TfToken &subprim,
32  const TfTokenVector &properties,
33  UsdImagingPropertyInvalidationType invalidationType);
34 
35 private:
36  // Private constructor, use static New() instead.
38  const SdfPath &sceneIndexPath,
39  UsdPrim usdPrim,
40  const UsdImagingDataSourceStageGlobals &stageGlobals);
41 };
42 
43 HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceNurbsCurvesPrim);
44 
45 PXR_NAMESPACE_CLOSE_SCOPE
46 
47 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_NURBS_CURVES_H
Data source representing a USD gprim.
A prim data source representing UsdNurbsCurves.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:80
This class is used as a context object with global stage information, that gets passed down to dataso...
Represents a set of data source locators closed under descendancy.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:489
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:280
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.