HDK
|
#include <primAdapter.h>
Initialization | |
UsdImagingPrimAdapter () | |
virtual USDIMAGING_API | ~UsdImagingPrimAdapter () |
virtual SdfPath | Populate (UsdPrim const &prim, UsdImagingIndexProxy *index, UsdImagingInstancerContext const *instancerContext=NULL)=0 |
virtual USDIMAGING_API bool | ShouldCullChildren () const |
virtual USDIMAGING_API bool | IsInstancerAdapter () const |
virtual USDIMAGING_API bool | CanPopulateMaster () const |
static USDIMAGING_API bool | ShouldCullSubtree (UsdPrim const &prim) |
Render Index Compatibility | |
typedef UsdImagingValueCache::Key | Keys |
Returns true if the adapter can be populated into the target index. More... | |
virtual bool | IsSupported (UsdImagingIndexProxy const *index) const |
Returns true if the adapter can be populated into the target index. More... | |
template<typename T > | |
T | _Get (UsdPrim const &prim, TfToken const &attrToken, UsdTimeCode time) const |
Returns true if the adapter can be populated into the target index. More... | |
template<typename T > | |
void | _GetPtr (UsdPrim const &prim, TfToken const &key, UsdTimeCode time, T *out) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdImagingValueCache * | _GetValueCache () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdPrim | _GetPrim (SdfPath const &usdPath) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API const UsdImagingPrimAdapterSharedPtr & | _GetPrimAdapter (UsdPrim const &prim, bool ignoreInstancing=false) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API const UsdImagingPrimAdapterSharedPtr & | _GetAdapter (TfToken const &adapterKey) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API SdfPath | _GetPrimPathFromInstancerChain (SdfPathVector const &instancerChain) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdTimeCode | _GetTimeWithOffset (float offset) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API SdfPath | _ConvertCachePathToIndexPath (SdfPath const &cachePath) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API SdfPath | _ConvertIndexPathToCachePath (SdfPath const &indexPath) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API TfToken | _GetMaterialBindingPurpose () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API TfToken | _GetMaterialNetworkSelector () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API bool | _IsPrimvarFilteringNeeded () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API TfTokenVector | _GetShaderSourceTypes () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API bool | _IsInInvisedPaths (SdfPath const &usdPath) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API bool | _IsVarying (UsdPrim prim, TfToken const &attrName, HdDirtyBits dirtyFlag, TfToken const &perfToken, HdDirtyBits *dirtyFlags, bool isInherited, bool *exists=nullptr) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API bool | _IsTransformVarying (UsdPrim prim, HdDirtyBits dirtyFlag, TfToken const &perfToken, HdDirtyBits *dirtyFlags) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API void | _MergePrimvar (HdPrimvarDescriptorVector *vec, TfToken const &name, HdInterpolation interp, TfToken const &role=TfToken()) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API void | _RemovePrimvar (HdPrimvarDescriptorVector *vec, TfToken const &name) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API void | _ComputeAndMergePrimvar (UsdPrim const &prim, SdfPath const &cachePath, UsdGeomPrimvar const &primvar, UsdTimeCode time, UsdImagingValueCache *valueCache, HdInterpolation *interpOverride=nullptr) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API HdDirtyBits | _ProcessNonPrefixedPrimvarPropertyChange (UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName, TfToken const &primvarName, HdInterpolation const &primvarInterp, HdDirtyBits valueChangeDirtyBit=HdChangeTracker::DirtyPrimvar) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API HdDirtyBits | _ProcessPrefixedPrimvarPropertyChange (UsdPrim const &prim, SdfPath const &cachePath, TfToken const &propertyName, HdDirtyBits valueChangeDirtyBit=HdChangeTracker::DirtyPrimvar, bool inherited=true) const |
Returns true if the adapter can be populated into the target index. More... | |
virtual void | _RemovePrim (SdfPath const &cachePath, UsdImagingIndexProxy *index)=0 |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdImaging_CollectionCache & | _GetCollectionCache () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdImaging_CoordSysBindingStrategy::value_type | _GetCoordSysBindings (UsdPrim const &prim) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API UsdImaging_InheritedPrimvarStrategy::value_type | _GetInheritedPrimvars (UsdPrim const &prim) const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API GfInterval | _GetCurrentTimeSamplingInterval () |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API Usd_PrimFlagsConjunction | _GetDisplayPredicate () const |
Returns true if the adapter can be populated into the target index. More... | |
USDIMAGING_API bool | _DoesDelegateSupportCoordSys () const |
Returns true if the adapter can be populated into the target index. More... | |
static USDIMAGING_API bool | _HasPrimvarsPrefix (TfToken const &propertyName) |
Returns true if the adapter can be populated into the target index. More... | |
static USDIMAGING_API HdInterpolation | _UsdToHdInterpolation (TfToken const &usdInterp) |
Returns true if the adapter can be populated into the target index. More... | |
static USDIMAGING_API TfToken | _UsdToHdRole (TfToken const &usdRole) |
Returns true if the adapter can be populated into the target index. More... | |
Base class for all PrimAdapters.
Definition at line 66 of file primAdapter.h.
|
protected |
Returns true if the adapter can be populated into the target index.
Definition at line 432 of file primAdapter.h.
|
inline |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
Definition at line 74 of file primAdapter.h.
|
virtual |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
inlineprotected |
Returns true if the adapter can be populated into the target index.
Definition at line 435 of file primAdapter.h.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
inlineprotected |
Returns true if the adapter can be populated into the target index.
Definition at line 443 of file primAdapter.h.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
staticprotected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protected |
Returns true if the adapter can be populated into the target index.
|
protectedpure virtual |
Returns true if the adapter can be populated into the target index.
Implemented in UsdImagingInstanceAdapter, UsdImagingPointInstancerAdapter, UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingFieldAdapter, UsdImagingGLDrawModeAdapter, UsdImagingCameraAdapter, UsdImagingCoordSysAdapter, UsdImagingMaterialAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingCylinderLightAdapter, UsdImagingDiskLightAdapter, UsdImagingDistantLightAdapter, UsdImagingRectLightAdapter, UsdImagingSphereLightAdapter, UsdRiImagingPxrBarnLightFilterAdapter, UsdRiImagingPxrIntMultLightFilterAdapter, and UsdRiImagingPxrRodLightFilterAdapter.
|
protected |
Returns true if the adapter can be populated into the target index.
|
staticprotected |
Returns true if the adapter can be populated into the target index.
|
staticprotected |
Returns true if the adapter can be populated into the target index.
|
virtual |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
Reimplemented in UsdImagingGLDrawModeAdapter.
USDIMAGING_API TfToken UsdImagingPrimAdapter::GetInheritablePurpose | ( | UsdPrim const & | prim | ) | const |
Returns the purpose token for prim
, but only if it is inheritable by child prims (i.e. it is an explicitly authored purpose on the prim itself or one of the prim's ancestors), otherwise it returns the empty token.
|
virtual |
Return an array of the categories used by each instance.
Reimplemented in UsdImagingInstanceAdapter.
USDIMAGING_API SdfPath UsdImagingPrimAdapter::GetMaterialUsdPath | ( | UsdPrim const & | prim | ) | const |
Gets the material path for the given prim, walking up namespace if necessary.
USDIMAGING_API TfToken UsdImagingPrimAdapter::GetModelDrawMode | ( | UsdPrim const & | prim | ) |
Gets the model:drawMode attribute for the given prim, walking up the namespace if necessary.
USDIMAGING_API VtArray<VtIntArray> UsdImagingPrimAdapter::GetPerPrototypeIndices | ( | UsdPrim const & | prim, |
UsdTimeCode | time | ||
) | const |
Computes the per-prototype instance indices for a UsdGeomPointInstancer. XXX: This needs to be defined on the base class, to have access to the delegate, but it's a clear violation of abstraction. This call is only legal for prims of type UsdGeomPointInstancer; in other cases, the returned array will be empty and the computation will issue errors.
USDIMAGING_API TfToken UsdImagingPrimAdapter::GetPurpose | ( | UsdPrim const & | prim, |
UsdImagingInstancerContext const * | instancerContext | ||
) | const |
Returns the purpose token for prim
. If an instancerContext
is provided and the prim doesn't have an explicitly authored or inherited purpose, it may inherit the instancerContext's purpose if the instance has an explicit purpose.
|
virtual |
Returns the transform of protoInstancerPath
relative to instancerPath
. instancerPath
must be managed by this adapter.
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
USDIMAGING_API GfMatrix4d UsdImagingPrimAdapter::GetRootTransform | ( | ) | const |
The root transform provided by the delegate.
|
virtual |
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Get the subdiv tags for this prim.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingInstanceAdapter, UsdImagingPointInstancerAdapter, and UsdImagingMeshAdapter.
|
virtual |
|
virtual |
USDIMAGING_API GfMatrix4d UsdImagingPrimAdapter::GetTransform | ( | UsdPrim const & | prim, |
UsdTimeCode | time, | ||
bool | ignoreRootTransform = false |
||
) | const |
Fetches the transform for the given prim at the given time from a pre-computed cache of prim transforms. Requesting transforms at incoherent times is currently inefficient.
USDIMAGING_API bool UsdImagingPrimAdapter::GetVisible | ( | UsdPrim const & | prim, |
UsdTimeCode | time | ||
) | const |
Returns true if the given prim is visible, taking into account inherited visibility values. Inherited values are strongest, Usd has no notion of "super vis/invis".
|
virtual |
Reimplemented in UsdImagingInstanceAdapter, UsdImagingPointInstancerAdapter, and UsdImagingVolumeAdapter.
|
virtual |
Reimplemented in UsdSkelImagingSkeletonAdapter.
USDIMAGING_API bool UsdImagingPrimAdapter::IsChildPath | ( | SdfPath const & | path | ) | const |
The root transform provided by the delegate.
|
virtual |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
Reimplemented in UsdImagingPointInstancerAdapter, and UsdImagingInstanceAdapter.
|
inlinevirtual |
Returns true if the adapter can be populated into the target index.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGLDrawModeAdapter, UsdImagingHermiteCurvesAdapter, UsdImagingSphereAdapter, UsdImagingCameraAdapter, UsdImagingCubeAdapter, UsdImagingFieldAdapter, UsdImagingMeshAdapter, UsdImagingCapsuleAdapter, UsdImagingConeAdapter, UsdImagingCylinderAdapter, UsdImagingCylinderLightAdapter, UsdImagingDiskLightAdapter, UsdImagingDistantLightAdapter, UsdImagingRectLightAdapter, UsdImagingSphereLightAdapter, UsdRiImagingPxrBarnLightFilterAdapter, UsdRiImagingPxrIntMultLightFilterAdapter, UsdRiImagingPxrRodLightFilterAdapter, UsdImagingBasisCurvesAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingPointsAdapter, UsdImagingCoordSysAdapter, UsdImagingMaterialAdapter, and UsdImagingVolumeAdapter.
Definition at line 427 of file primAdapter.h.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
pure virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Implemented in UsdSkelImagingSkeletonAdapter, UsdImagingGLDrawModeAdapter, UsdImagingCoordSysAdapter, UsdImagingFieldAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingCameraAdapter, UsdImagingMaterialAdapter, UsdImagingGprimAdapter, UsdImagingInstanceAdapter, UsdImagingLightAdapter, UsdImagingPointInstancerAdapter, and UsdImagingLightFilterAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingGLDrawModeAdapter, and UsdImagingMaterialAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingInstanceAdapter, UsdImagingGprimAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingInstanceAdapter, UsdImagingGprimAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingInstanceAdapter, UsdImagingPointInstancerAdapter, UsdImagingGLDrawModeAdapter, UsdImagingCoordSysAdapter, UsdImagingFieldAdapter, UsdImagingCameraAdapter, UsdImagingLightAdapter, and UsdImagingLightFilterAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingGprimAdapter, UsdImagingInstanceAdapter, UsdImagingPointInstancerAdapter, UsdImagingGLDrawModeAdapter, UsdImagingFieldAdapter, UsdImagingLightAdapter, and UsdImagingLightFilterAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
Reimplemented in UsdImagingCameraAdapter.
|
pure virtual |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
Implemented in UsdSkelImagingSkeletonAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingHermiteCurvesAdapter, UsdImagingFieldAdapter, UsdImagingMeshAdapter, UsdImagingCameraAdapter, UsdImagingCubeAdapter, UsdImagingCylinderLightAdapter, UsdImagingDiskLightAdapter, UsdImagingDistantLightAdapter, UsdImagingRectLightAdapter, UsdImagingSphereAdapter, UsdImagingSphereLightAdapter, UsdRiImagingPxrBarnLightFilterAdapter, UsdRiImagingPxrIntMultLightFilterAdapter, UsdRiImagingPxrRodLightFilterAdapter, UsdImagingCapsuleAdapter, UsdImagingConeAdapter, UsdImagingCylinderAdapter, UsdImagingGLDrawModeAdapter, UsdImagingBasisCurvesAdapter, UsdImagingCoordSysAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingPointsAdapter, UsdImagingInstanceAdapter, UsdImagingMaterialAdapter, UsdImagingPointInstancerAdapter, and UsdImagingVolumeAdapter.
|
virtual |
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
changedFields
contains a list of changed scene description fields for this prim. This may be empty in certain cases, like the addition of an inert prim spec for the given prim
.
The default implementation returns HdChangeTracker::AllDirty if any of the changed fields are plugin metadata fields, HdChangeTracker::Clean otherwise.
|
virtual |
Removes all associated Rprims and dependencies from the render index without scheduling them for repopulation.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingPointInstancerAdapter, and UsdImagingInstanceAdapter.
|
virtual |
When a PrimResync event occurs, the prim may have been deleted entirely, adapter plug-ins should override this method to free any per-prim state that was accumulated in the adapter.
Reimplemented in UsdSkelImagingSkeletonAdapter, UsdImagingPointInstancerAdapter, UsdImagingInstanceAdapter, and UsdImagingCoordSysAdapter.
|
pure virtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
Implemented in UsdSkelImagingSkeletonAdapter, UsdImagingGLDrawModeAdapter, UsdImagingHermiteCurvesAdapter, UsdImagingCoordSysAdapter, UsdImagingFieldAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingMeshAdapter, UsdImagingCameraAdapter, UsdImagingBasisCurvesAdapter, UsdImagingPointsAdapter, UsdImagingMaterialAdapter, UsdImagingGprimAdapter, UsdImagingLightAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingLightFilterAdapter, UsdImagingPointInstancerAdapter, UsdImagingInstanceAdapter, UsdImagingSphereAdapter, UsdImagingCubeAdapter, UsdImagingCapsuleAdapter, UsdImagingConeAdapter, and UsdImagingCylinderAdapter.
|
virtual |
Sample the instancer transform for the given prim.
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Sample the primvar for the given prim.
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
|
virtual |
Samples the transform for the given prim.
Reimplemented in UsdImagingInstanceAdapter, and UsdImagingPointInstancerAdapter.
USDIMAGING_API void UsdImagingPrimAdapter::SetDelegate | ( | UsdImagingDelegate * | delegate | ) |
A thread-local XformCache provided by the delegate.
|
virtual |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
Reimplemented in UsdImagingGLDrawModeAdapter, UsdImagingPointInstancerAdapter, and UsdImagingInstanceAdapter.
|
static |
Called to populate the RenderIndex for this UsdPrim. The adapter is expected to create one or more prims in the render index using the given proxy.
|
pure virtual |
For the given prim
, variability is detected and stored in timeVaryingBits
. Initial values are cached into the value cache.
This method is expected to be called from multiple threads.
Implemented in UsdSkelImagingSkeletonAdapter, UsdImagingGLDrawModeAdapter, UsdImagingCubeAdapter, UsdImagingSphereAdapter, UsdImagingCapsuleAdapter, UsdImagingConeAdapter, UsdImagingCylinderAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingHermiteCurvesAdapter, UsdImagingMeshAdapter, UsdImagingCameraAdapter, UsdImagingFieldAdapter, UsdImagingBasisCurvesAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingPointsAdapter, UsdImagingCoordSysAdapter, UsdImagingGprimAdapter, UsdImagingMaterialAdapter, UsdImagingPointInstancerAdapter, UsdImagingInstanceAdapter, UsdImagingLightAdapter, UsdImagingVolumeAdapter, and UsdImagingLightFilterAdapter.
|
pure virtual |
Populates the cache
for the given prim
, time
and requestedBits
.
This method is expected to be called from multiple threads.
Implemented in UsdSkelImagingSkeletonAdapter, UsdImagingCubeAdapter, UsdImagingSphereAdapter, UsdImagingGLDrawModeAdapter, UsdImagingCapsuleAdapter, UsdImagingConeAdapter, UsdImagingCylinderAdapter, UsdImagingHermiteCurvesAdapter, UsdSkelImagingSkelRootAdapter, UsdImagingMeshAdapter, UsdImagingCameraAdapter, UsdImagingCoordSysAdapter, UsdImagingFieldAdapter, UsdImagingBasisCurvesAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingPointsAdapter, UsdImagingGprimAdapter, UsdImagingMaterialAdapter, UsdImagingLightAdapter, UsdImagingLightFilterAdapter, UsdImagingPointInstancerAdapter, UsdImagingInstanceAdapter, and UsdImagingVolumeAdapter.