24#ifndef PXR_USD_IMAGING_USD_IMAGING_GPRIM_ADAPTER_H
25#define PXR_USD_IMAGING_USD_IMAGING_GPRIM_ADAPTER_H
30#include "pxr/usdImaging/usdImaging/api.h"
31#include "pxr/usdImaging/usdImaging/instanceablePrimAdapter.h"
33#include "pxr/usd/usdGeom/xformCache.h"
35PXR_NAMESPACE_OPEN_SCOPE
62 UsdImagingPropertyInvalidationType invalidationType)
override;
71 HdDirtyBits* timeVaryingBits,
73 instancerContext =
nullptr)
const override;
80 HdDirtyBits requestedBits,
82 instancerContext =
nullptr)
const override;
91 TfToken const& property)
override;
94 void MarkDirty(
UsdPrim const& prim,
100 void MarkRefineLevelDirty(
UsdPrim const& prim,
105 void MarkReprDirty(
UsdPrim const& prim,
110 void MarkCullStyleDirty(
UsdPrim const& prim,
115 void MarkRenderTagDirty(
UsdPrim const& prim,
120 void MarkTransformDirty(
UsdPrim const& prim,
125 void MarkVisibilityDirty(
UsdPrim const& prim,
130 void MarkMaterialDirty(
UsdPrim const& prim,
135 void MarkCollectionsDirty(
UsdPrim const& prim,
158 VtIntArray *indices);
170 VtIntArray *indices);
178 SdfPath const& materialUsdPath,
207 VtIntArray *outIndices)
const override;
219 void _RemovePrim(
SdfPath const& cachePath,
225 virtual bool _IsBuiltinPrimvar(
TfToken const& primvarName)
const;
231 SdfPathVector
const& materialUsdPaths,
241PXR_NAMESPACE_CLOSE_SCOPE
Stores a 4x4 matrix of double elements.
Basic type: 3-dimensional floating point range.
Represents a set of data source locators closed under descendancy.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
Base class for all geometric primitives.
Delegate support for UsdGeomGrims.
USDIMAGING_API void UpdateForTime(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time, HdDirtyBits requestedBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
Thread Safe.
static USDIMAGING_API bool GetOpacity(UsdPrim const &prim, UsdTimeCode time, TfToken *interpolation, VtValue *opacity, VtIntArray *indices)
Returns opacity, Usd interpolation token, and optionally opacity indices for a given prim,...
static USDIMAGING_API bool GetColor(UsdPrim const &prim, UsdTimeCode time, TfToken *interpolation, VtValue *color, VtIntArray *indices)
Returns color, Usd interpolation token, and optionally color indices for a given prim,...
USDIMAGING_API GfRange3d GetExtent(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time) const override
Reads the extent from the given prim.
USDIMAGING_API void TrackVariability(UsdPrim const &prim, SdfPath const &cachePath, HdDirtyBits *timeVaryingBits, UsdImagingInstancerContext const *instancerContext=nullptr) const override
Thread Safe.
USDIMAGING_API HdDirtyBits ProcessPropertyChange(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &property) override
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must ...
USDIMAGING_API bool GetDoubleSided(UsdPrim const &prim, SdfPath const &cachePath, UsdTimeCode time) const override
Reads double-sided from the given prim. If not authored, returns false.
virtual USDIMAGING_API VtValue GetPoints(UsdPrim const &prim, UsdTimeCode time) const
Give derived classes an opportunity to override how we get points for a prim.
virtual USDIMAGING_API TfTokenVector const & _GetRprimPrimvarNames() const
Returns the primvar names known to be supported for the rprims this adapter produces.
USDIMAGING_API VtValue Get(UsdPrim const &prim, SdfPath const &cachePath, TfToken const &key, UsdTimeCode time, VtIntArray *outIndices) const override
Gets the value of the parameter named key for the given prim (which has the given cache path) and giv...
This proxy class exposes a subset of the private Delegate API to PrimAdapters.
An abstract adapter class for prims that are instanceable.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Object used by instancer prim adapters to pass along context about the instancer and instance prim to...
std::vector< TfToken > TfTokenVector
Convenience types.