Loading...
Searching...
No Matches
primAdapter.h
Go to the documentation of this file.
1//
2// Copyright 2026 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_EXEC_IMAGING_PRIM_ADAPTER_H
8#define PXR_USD_IMAGING_USD_EXEC_IMAGING_PRIM_ADAPTER_H
9
11
12#include "pxr/pxr.h"
13
14#include "pxr/usdImaging/usdExecImaging/api.h"
16
17#include "pxr/imaging/hd/dataSource.h"
18
19PXR_NAMESPACE_OPEN_SCOPE
20
22class SdfPath;
25class UsdPrim;
26
33{
34public:
35 USDEXECIMAGING_API
37
46 virtual void BuildRequest(
47 const UsdPrim &prim,
48 UsdExecImagingRequestBuilder &requestBuilder) const = 0;
49
63 virtual HdContainerDataSourceHandle GetPrimData(
64 const SdfPath &primPath,
65 const UsdExecImagingRequestAccessorSharedPtr &requestAccessor) const
66 = 0;
67
81 virtual void InvalidatePrimData(
82 const SdfPath &primPath,
83 const UsdExecImagingValueKey &valueKey,
84 HdDataSourceLocatorSet &invalidLocators) const = 0;
85};
86
87PXR_NAMESPACE_CLOSE_SCOPE
88
89#endif
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
Base class for all exec imaging prim adapters.
Definition primAdapter.h:33
virtual HdContainerDataSourceHandle GetPrimData(const SdfPath &primPath, const UsdExecImagingRequestAccessorSharedPtr &requestAccessor) const =0
Invoked by UsdExecImaging to insert computed values into the hydra scene.
virtual void InvalidatePrimData(const SdfPath &primPath, const UsdExecImagingValueKey &valueKey, HdDataSourceLocatorSet &invalidLocators) const =0
Invoked by UsdExecImaging when a computed value is invalidated by authoring or by a time change.
virtual void BuildRequest(const UsdPrim &prim, UsdExecImagingRequestBuilder &requestBuilder) const =0
Invoked by UsdExecImaging when building its exec request.
Interface for building up an exec request within a UsdExecImagingPrimAdapter.
Identifies a value that is computed by exec.
Definition valueKey.h:27
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition prim.h:117