Loading...
Searching...
No Matches
primAdapterInterface.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_INTERFACE_H
8#define PXR_USD_IMAGING_USD_EXEC_IMAGING_PRIM_ADAPTER_INTERFACE_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
34{
35public:
36 USDEXECIMAGING_API
38
47 virtual void BuildRequest(
48 const UsdPrim &prim,
49 UsdExecImagingRequestBuilderInterface &requestBuilder) const = 0;
50
64 virtual HdContainerDataSourceHandle GetPrimData(
65 const SdfPath &primPath,
66 const UsdExecImagingRequestAccessorInterfaceSharedPtr &requestAccessor)
67 const = 0;
68
82 virtual void InvalidatePrimData(
83 const SdfPath &primPath,
84 const UsdExecImagingValueKey &valueKey,
85 HdDataSourceLocatorSet *invalidLocators) const = 0;
86};
87
88PXR_NAMESPACE_CLOSE_SCOPE
89
90#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
Interface to be implemented by all exec imaging prim adapters.
virtual void BuildRequest(const UsdPrim &prim, UsdExecImagingRequestBuilderInterface &requestBuilder) const =0
Invoked by UsdExecImaging when building its exec request.
virtual HdContainerDataSourceHandle GetPrimData(const SdfPath &primPath, const UsdExecImagingRequestAccessorInterfaceSharedPtr &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.
Interface for building up an exec request within an implementation of UsdExecImagingPrimAdapterInterf...
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