HDK
|
#include <gprimAdapter.h>
Public Types | |
using | BaseAdapter = UsdImagingPrimAdapter |
Public Types inherited from UsdImagingPrimAdapter | |
enum | PopulationMode { RepresentsSelf, RepresentsSelfAndDescendents, RepresentedByAncestor } |
Delegate support for UsdGeomGrims.
This adapter is provided as a base class for all adapters that want basic Gprim data support, such as visibility, doubleSided, extent, displayColor, displayOpacity, purpose, and transform.
Definition at line 48 of file gprimAdapter.h.
Definition at line 51 of file gprimAdapter.h.
|
inline |
Definition at line 53 of file gprimAdapter.h.
|
override |
USDIMAGING_API SdfPath UsdImagingGprimAdapter::_AddRprim | ( | TfToken const & | primType, |
UsdPrim const & | usdPrim, | ||
UsdImagingIndexProxy * | index, | ||
SdfPath const & | materialUsdPath, | ||
UsdImagingInstancerContext const * | instancerContext | ||
) |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
|
protectedvirtual |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
|
protectedvirtual |
Returns the primvar names known to be supported for the rprims this adapter produces. These primvar names are excepted from primvar filtering.
Reimplemented in UsdImagingBasisCurvesAdapter.
|
protectedvirtual |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
Reimplemented in UsdImagingMeshAdapter, UsdImagingBasisCurvesAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingPointsAdapter, and UsdImagingHermiteCurvesAdapter.
|
overrideprotectedvirtual |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
Implements UsdImagingPrimAdapter.
|
static |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
|
overridevirtual |
Gets the value of the parameter named key for the given prim (which has the given cache path) and given time. If outIndices is not nullptr and the value has indices, it will return the unflattened value and set outIndices to the value's associated indices.
Reimplemented from UsdImagingPrimAdapter.
Reimplemented in UsdImagingMeshAdapter, UsdImagingNurbsCurvesAdapter, and UsdImagingPointsAdapter.
|
static |
Returns color, Usd interpolation token, and optionally color indices for a given prim, taking into account surface shader colors and explicitly authored color on the prim. If indices is not nullptr and the color value has indices, color will be set to the unflattened color value and indices set to the color value's indices.
|
overridevirtual |
Reads double-sided from the given prim. If not authored, returns false.
Reimplemented from UsdImagingPrimAdapter.
|
overridevirtual |
Reads the extent from the given prim. If the extent is not authored, an empty GfRange3d is returned, the extent will not be computed.
Reimplemented from UsdImagingPrimAdapter.
|
static |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
|
overridevirtual |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
Reimplemented from UsdImagingPrimAdapter.
|
static |
Returns opacity, Usd interpolation token, and optionally opacity indices for a given prim, taking into account surface shader opacity and explicitly authored opacity on the prim. If indices is not nullptr and the opacity value has indices, opacity will be set to the unflattened opacity value and indices set to the opacity value's indices.
|
virtual |
Give derived classes an opportunity to override how we get points for a prim. This is useful for implicit primitives.
Reimplemented in UsdImagingSphereAdapter, UsdImagingCapsuleAdapter, UsdImagingCylinderAdapter, UsdImagingConeAdapter, UsdImagingCubeAdapter, UsdImagingNurbsPatchAdapter, and UsdImagingPlaneAdapter.
|
overridevirtual |
Returns the prim's behavior with regard to population and invalidation. See PopulationMode for possible values.
Reimplemented from UsdImagingPrimAdapter.
Reimplemented in UsdImagingSphereAdapter, UsdImagingMeshAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingPointsAdapter, UsdImagingNurbsPatchAdapter, and UsdImagingVolumeAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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.
Implements UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
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 from UsdImagingPrimAdapter.
|
overridevirtual |
Returns a bit mask of attributes to be updated, or HdChangeTracker::AllDirty if the entire prim must be resynchronized.
Implements UsdImagingPrimAdapter.
Reimplemented in UsdImagingMeshAdapter, UsdImagingBasisCurvesAdapter, UsdImagingPointsAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingNurbsPatchAdapter, UsdImagingSphereAdapter, UsdImagingCapsuleAdapter, UsdImagingCylinderAdapter, UsdImagingConeAdapter, UsdImagingCubeAdapter, UsdImagingHermiteCurvesAdapter, and UsdImagingPlaneAdapter.
|
overridevirtual |
Thread Safe.
Implements UsdImagingPrimAdapter.
Reimplemented in UsdImagingSphereAdapter, UsdImagingMeshAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingPointsAdapter, UsdImagingNurbsPatchAdapter, UsdImagingVolumeAdapter, UsdImagingPlaneAdapter, and UsdImagingHermiteCurvesAdapter.
|
overridevirtual |
Thread Safe.
Implements UsdImagingPrimAdapter.
Reimplemented in UsdImagingMeshAdapter, UsdImagingNurbsCurvesAdapter, UsdImagingPointsAdapter, and UsdImagingVolumeAdapter.