Loading...
Searching...
No Matches
instanceablePrimAdapter.h
1//
2// Copyright 2024 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_IMAGING_INSTANCEABLE_PRIM_ADAPTER_H
8#define PXR_USD_IMAGING_USD_IMAGING_INSTANCEABLE_PRIM_ADAPTER_H
9
10#include "pxr/usdImaging/usdImaging/api.h"
12
13#include "pxr/usd/sdf/path.h"
14
15#include "pxr/pxr.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
23{
24public:
26
27protected:
28 friend class UsdImagingInstanceAdapter;
30 // ---------------------------------------------------------------------- //
32 // ---------------------------------------------------------------------- //
33
34 // Given the USD path for a prim of this adapter's type, returns
35 // the prim's Hydra cache path.
36 USDIMAGING_API
38 ResolveCachePath(
39 const SdfPath& usdPath,
41 instancerContext = nullptr) const override;
42
43 // Given the cachePath and instancerContext, resolve the proxy prim path
44 USDIMAGING_API
46 ResolveProxyPrimPath(
47 const SdfPath& cachePath,
49 instancerContext = nullptr) const;
50};
51
52PXR_NAMESPACE_CLOSE_SCOPE
53
54#endif // PXR_USD_IMAGING_USD_IMAGING_INSTANCEABLE_PRIM_ADAPTER_H
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Delegate support for instanced prims.
An abstract adapter class for prims that are instanceable.
Delegate support for UsdGeomPointInstancer.
Base class for all PrimAdapters.
Definition: primAdapter.h:54
Object used by instancer prim adapters to pass along context about the instancer and instance prim to...