Loading...
Searching...
No Matches
dataSourceParticleField.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_VOL_IMAGING_DATA_SOURCE_PARTICLE_FIELD_H
9#define PXR_USD_IMAGING_USD_VOL_IMAGING_DATA_SOURCE_PARTICLE_FIELD_H
10
11#include "pxr/pxr.h"
12#include "pxr/usdImaging/usdVolImaging/api.h"
13#include "pxr/usdImaging/usdImaging/dataSourceGprim.h"
14#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
15#include "pxr/imaging/hd/dataSource.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class UsdImagingDataSourceParticleFieldPrim : public UsdImagingDataSourceGprim {
20 public:
21 HD_DECLARE_DATASOURCE(UsdImagingDataSourceParticleFieldPrim);
22
23 USDVOLIMAGING_API
24 HdDataSourceBaseHandle Get(const TfToken& name) override;
25
26 USDVOLIMAGING_API
27 TfTokenVector GetNames() override;
28
29 USDVOLIMAGING_API
30 static HdDataSourceLocatorSet Invalidate(
31 UsdPrim const& prim, const TfToken& subprim,
32 const TfTokenVector& properties,
33 UsdImagingPropertyInvalidationType invalidationType);
34
35 private:
36 UsdImagingDataSourceParticleFieldPrim(
37 const SdfPath& sceneIndexPath, UsdPrim usdPrim,
38 const UsdImagingDataSourceStageGlobals& stageGlobals);
39};
40
41HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceParticleFieldPrim);
42
43PXR_NAMESPACE_CLOSE_SCOPE
44
45#endif // PXR_USD_IMAGING_USD_VOL_IMAGING_DATA_SOURCE_PARTICLE_FIELD_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:81
Data source representing a USD gprim.
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:489