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 static HdDataSourceLocatorSet Invalidate(
28 UsdPrim const& prim, const TfToken& subprim,
29 const TfTokenVector& properties,
30 UsdImagingPropertyInvalidationType invalidationType);
31
32 private:
33 UsdImagingDataSourceParticleFieldPrim(
34 const SdfPath& sceneIndexPath, UsdPrim usdPrim,
35 const UsdImagingDataSourceStageGlobals& stageGlobals);
36};
37
38HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceParticleFieldPrim);
39
40PXR_NAMESPACE_CLOSE_SCOPE
41
42#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:71
Data source representing a USD gprim.
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