HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdUnitTestDelegate Class Reference

#include <unitTestDelegate.h>

+ Inheritance diagram for HdUnitTestDelegate:

Public Member Functions

HD_API HdUnitTestDelegate (HdRenderIndex *parentIndex, SdfPath const &delegateID)
 
void SetUseInstancePrimvars (bool v)
 
HD_API void SetRefineLevel (int level)
 
HD_API void SetVisibility (bool vis)
 
HD_API void AddMesh (SdfPath const &id)
 
HD_API void AddMesh (SdfPath const &id, GfMatrix4f const &transform, VtVec3fArray const &points, VtIntArray const &numVerts, VtIntArray const &verts, bool guide=false, SdfPath const &instancerId=SdfPath(), TfToken const &scheme=PxOsdOpenSubdivTokens->catmullClark, TfToken const &orientation=HdTokens->rightHanded, bool doubleSided=false)
 
HD_API void AddMesh (SdfPath const &id, GfMatrix4f const &transform, VtVec3fArray const &points, VtIntArray const &numVerts, VtIntArray const &verts, VtIntArray const &holes, PxOsdSubdivTags const &subdivTags, VtValue const &color, HdInterpolation colorInterpolation, VtValue const &opacity, HdInterpolation opacityInterpolation, bool guide=false, SdfPath const &instancerId=SdfPath(), TfToken const &scheme=PxOsdOpenSubdivTokens->catmullClark, TfToken const &orientation=HdTokens->rightHanded, bool doubleSided=false)
 
HD_API void AddMesh (SdfPath const &id, GfMatrix4f const &transform, VtVec3fArray const &points, VtIntArray const &numVerts, VtIntArray const &verts, VtIntArray const &holes, PxOsdSubdivTags const &subdivTags, VtValue const &color, VtIntArray const &colorIndices, HdInterpolation colorInterpolation, VtValue const &opacity, VtIntArray const &opacityIndices, HdInterpolation opacityInterpolation, bool guide=false, SdfPath const &instancerId=SdfPath(), TfToken const &scheme=PxOsdOpenSubdivTokens->catmullClark, TfToken const &orientation=HdTokens->rightHanded, bool doubleSided=false)
 
HD_API void AddCube (SdfPath const &id, GfMatrix4f const &transform, bool guide=false, SdfPath const &instancerId=SdfPath(), TfToken const &scheme=PxOsdOpenSubdivTokens->catmullClark)
 Add a cube. More...
 
HD_API void AddGrid (SdfPath const &id, int x, int y, GfMatrix4f const &transform, bool rightHanded=true, bool doubleSided=false, SdfPath const &instancerId=SdfPath())
 Add a grid with division x*y. More...
 
HD_API void AddGridWithFaceColor (SdfPath const &id, int x, int y, GfMatrix4f const &transform, bool rightHanded=true, bool doubleSided=false, SdfPath const &instancerId=SdfPath())
 Add a grid with division x*y. More...
 
HD_API void AddGridWithVertexColor (SdfPath const &id, int x, int y, GfMatrix4f const &transform, bool rightHanded=true, bool doubleSided=false, SdfPath const &instancerId=SdfPath())
 Add a grid with division x*y. More...
 
HD_API void AddGridWithFaceVaryingColor (SdfPath const &id, int x, int y, GfMatrix4f const &transform, bool rightHanded=true, bool doubleSided=false, SdfPath const &instancerId=SdfPath())
 Add a grid with division x*y. More...
 
HD_API void AddGridWithCustomColor (SdfPath const &id, int nx, int ny, GfMatrix4f const &transform, VtValue const &color, HdInterpolation colorInterpolation, bool rightHanded=true, bool doubleSided=false, SdfPath const &instancerId=SdfPath())
 
HD_API void AddPolygons (SdfPath const &id, GfMatrix4f const &transform, HdInterpolation colorInterp, SdfPath const &instancerId=SdfPath())
 Add a triangle, quad and pentagon. More...
 
HD_API void AddFaceVaryingPolygons (SdfPath const &id, GfMatrix4f const &transform, SdfPath const &instancerId=SdfPath())
 
HD_API void AddSubdiv (SdfPath const &id, GfMatrix4f const &transform, SdfPath const &insatancerId=SdfPath())
 Add a subdiv with various tags. More...
 
HD_API void AddBasisCurves (SdfPath const &id, VtVec3fArray const &points, VtIntArray const &curveVertexCounts, VtVec3fArray const &normals, TfToken const &type, TfToken const &basis, VtValue const &color, HdInterpolation colorInterpolation, VtValue const &opacity, HdInterpolation opacityInterpolation, VtValue const &width, HdInterpolation widthInterpolation, SdfPath const &instancerId=SdfPath())
 
HD_API void AddCurves (SdfPath const &id, TfToken const &type, TfToken const &basis, GfMatrix4f const &transform, HdInterpolation colorInterp=HdInterpolationConstant, HdInterpolation widthInterp=HdInterpolationConstant, bool authoredNormals=false, SdfPath const &instancerId=SdfPath())
 Add a basis curves prim containing two curves. More...
 
HD_API void AddPoints (SdfPath const &id, VtVec3fArray const &points, VtValue const &color, HdInterpolation colorInterpolation, VtValue const &opacity, HdInterpolation opacityInterpolation, VtValue const &width, HdInterpolation widthInterpolation, SdfPath const &instancerId=SdfPath())
 
HD_API void AddPoints (SdfPath const &id, GfMatrix4f const &transform, HdInterpolation colorInterp=HdInterpolationConstant, HdInterpolation widthInterp=HdInterpolationConstant, SdfPath const &instancerId=SdfPath())
 Add a points prim. More...
 
HD_API void AddInstancer (SdfPath const &id, SdfPath const &parentId=SdfPath(), GfMatrix4f const &rootTransform=GfMatrix4f(1))
 Instancer. More...
 
HD_API void SetInstancerProperties (SdfPath const &id, VtIntArray const &prototypeIndex, VtVec3fArray const &scale, VtVec4fArray const &rotate, VtVec3fArray const &translate)
 
HD_API void UpdateInstancer (SdfPath const &rprimId, SdfPath const &instancerId)
 
HD_API void AddPrimvar (SdfPath const &id, TfToken const &name, VtValue const &value, HdInterpolation const &interp, TfToken const &role, VtIntArray const &indices=VtIntArray(0))
 Primvars. More...
 
HD_API void UpdatePrimvarValue (SdfPath const &id, TfToken const &name, VtValue const &value, VtIntArray const &indices=VtIntArray(0))
 
HD_API void RemovePrimvar (SdfPath const &id, TfToken const &name)
 
HD_API void UpdateTransform (SdfPath const &id, GfMatrix4f const &mat)
 Transform. More...
 
HD_API void AddMaterialResource (SdfPath const &id, VtValue materialResource)
 Material. More...
 
HD_API void UpdateMaterialResource (SdfPath const &materialId, VtValue materialResource)
 Update a material resource. More...
 
HD_API void BindMaterial (SdfPath const &rprimId, SdfPath const &materialId)
 
HD_API void RebindMaterial (SdfPath const &rprimId, SdfPath const &materialId)
 Example to update a material binding on the fly. More...
 
HD_API void AddRenderBuffer (SdfPath const &id, GfVec3i const &dims, HdFormat format, bool multiSampled)
 Render buffers. More...
 
HD_API void AddCamera (SdfPath const &id)
 Camera. More...
 
HD_API void UpdateCamera (SdfPath const &id, TfToken const &key, VtValue value)
 
template<typename T >
void AddTask (SdfPath const &id)
 Tasks. More...
 
HD_API void UpdateTask (SdfPath const &id, TfToken const &key, VtValue value)
 
HD_API void Remove (SdfPath const &id)
 Remove a prim. More...
 
HD_API void Clear ()
 Clear all prims. More...
 
HD_API void HideRprim (SdfPath const &id)
 
HD_API void UnhideRprim (SdfPath const &id)
 
HD_API void SetReprSelector (SdfPath const &id, HdReprSelector const &reprSelector)
 
HD_API void SetRefineLevel (SdfPath const &id, int refineLevel)
 
HD_API void SetVisibility (SdfPath const &id, bool vis)
 
HD_API void MarkRprimDirty (SdfPath path, HdDirtyBits flag)
 Marks an rprim in the RenderIndex as dirty with the given dirty flags. More...
 
HD_API void UpdatePositions (SdfPath const &id, float time)
 
HD_API void UpdateRprims (float time)
 
HD_API void UpdateInstancerPrimvars (float time)
 
HD_API void UpdateInstancerPrototypes (float time)
 
HD_API void UpdateCurvePrimvarsInterpMode (float time)
 
HD_API GfVec3f PopulateBasicTestSet ()
 
HD_API GfVec3f PopulateInvalidPrimsSet ()
 
virtual HD_API HdMeshTopology GetMeshTopology (SdfPath const &id) override
 Gets the topological mesh data for a given prim. More...
 
virtual HD_API
HdBasisCurvesTopology 
GetBasisCurvesTopology (SdfPath const &id) override
 Gets the topological curve data for a given prim. More...
 
virtual HD_API TfToken GetRenderTag (SdfPath const &id) override
 
virtual HD_API PxOsdSubdivTags GetSubdivTags (SdfPath const &id) override
 Gets the subdivision surface tags (sharpness, holes, etc). More...
 
virtual HD_API GfRange3d GetExtent (SdfPath const &id) override
 
virtual HD_API GfMatrix4d GetTransform (SdfPath const &id) override
 Returns the object space transform, including all parent transforms. More...
 
virtual HD_API bool GetVisible (SdfPath const &id) override
 Returns the authored visible state of the prim. More...
 
virtual HD_API bool GetDoubleSided (SdfPath const &id) override
 Returns the doubleSided state for the given prim. More...
 
virtual HD_API HdDisplayStyle GetDisplayStyle (SdfPath const &id) override
 
virtual HD_API VtValue Get (SdfPath const &id, TfToken const &key) override
 Returns a named value. More...
 
virtual HD_API VtValue GetIndexedPrimvar (SdfPath const &id, TfToken const &key, VtIntArray *outIndices) override
 
virtual HD_API HdReprSelector GetReprSelector (SdfPath const &id) override
 Returns the authored repr (if any) for the given prim. More...
 
virtual HD_API
HdPrimvarDescriptorVector 
GetPrimvarDescriptors (SdfPath const &id, HdInterpolation interpolation) override
 Returns descriptors for all primvars of the given interpolation type. More...
 
virtual HD_API VtIntArray GetInstanceIndices (SdfPath const &instancerId, SdfPath const &prototypeId) override
 
virtual HD_API GfMatrix4d GetInstancerTransform (SdfPath const &instancerId) override
 Returns the instancer transform. More...
 
virtual HD_API SdfPath GetMaterialId (SdfPath const &rprimId) override
 Returns the material ID bound to the rprim rprimId. More...
 
virtual HD_API SdfPath GetInstancerId (SdfPath const &primId) override
 Returns the parent instancer of the given rprim or instancer. More...
 
virtual HD_API VtValue GetMaterialResource (SdfPath const &materialId) override
 Returns the material ID bound to the rprim rprimId. More...
 
virtual HD_API VtValue GetCameraParamValue (SdfPath const &cameraId, TfToken const &paramName) override
 
virtual HD_API
HdRenderBufferDescriptor 
GetRenderBufferDescriptor (SdfPath const &id) override
 Returns the allocation descriptor for a given render buffer prim. More...
 
- Public Member Functions inherited from HdSceneDelegate
HD_API HdSceneDelegate (HdRenderIndex *parentIndex, SdfPath const &delegateID)
 Constructor used for nested delegate objects which share a RenderIndex. More...
 
virtual HD_API ~HdSceneDelegate ()
 
HdRenderIndexGetRenderIndex ()
 Returns the RenderIndex owned by this delegate. More...
 
SdfPath constGetDelegateID () const
 
virtual HD_API void Sync (HdSyncRequestVector *request)
 Synchronizes the delegate state for the given request vector. More...
 
virtual HD_API void PostSyncCleanup ()
 
virtual HD_API bool IsEnabled (TfToken const &option) const
 Returns true if the named option is enabled by the delegate. More...
 
virtual HD_API HdCullStyle GetCullStyle (SdfPath const &id)
 Returns the cullstyle for the given prim. More...
 
virtual HD_API VtValue GetShadingStyle (SdfPath const &id)
 Returns the shading style for the given prim. More...
 
virtual HD_API VtArray< TfTokenGetCategories (SdfPath const &id)
 Returns the prim categories. More...
 
virtual HD_API std::vector
< VtArray< TfToken > > 
GetInstanceCategories (SdfPath const &instancerId)
 Returns the categories for all instances in the instancer. More...
 
virtual HD_API HdIdVectorSharedPtr GetCoordSysBindings (SdfPath const &id)
 Returns the coordinate system bindings, or a nullptr if none are bound. More...
 
virtual HD_API size_t SampleTransform (SdfPath const &id, size_t maxSampleCount, float *sampleTimes, GfMatrix4d *sampleValues)
 
template<unsigned int CAPACITY>
void SampleTransform (SdfPath const &id, HdTimeSampleArray< GfMatrix4d, CAPACITY > *sa)
 
virtual HD_API size_t SampleInstancerTransform (SdfPath const &instancerId, size_t maxSampleCount, float *sampleTimes, GfMatrix4d *sampleValues)
 
template<unsigned int CAPACITY>
void SampleInstancerTransform (SdfPath const &instancerId, HdTimeSampleArray< GfMatrix4d, CAPACITY > *sa)
 
virtual HD_API size_t SamplePrimvar (SdfPath const &id, TfToken const &key, size_t maxSampleCount, float *sampleTimes, VtValue *sampleValues)
 
template<unsigned int CAPACITY>
void SamplePrimvar (SdfPath const &id, TfToken const &key, HdTimeSampleArray< VtValue, CAPACITY > *sa)
 
virtual HD_API size_t SampleIndexedPrimvar (SdfPath const &id, TfToken const &key, size_t maxSampleCount, float *sampleTimes, VtValue *sampleValues, VtIntArray *sampleIndices)
 
template<unsigned int CAPACITY>
void SampleIndexedPrimvar (SdfPath const &id, TfToken const &key, HdIndexedTimeSampleArray< VtValue, CAPACITY > *sa)
 
virtual HD_API SdfPathVector GetInstancerPrototypes (SdfPath const &instancerId)
 
virtual HD_API SdfPath GetScenePrimPath (SdfPath const &rprimId, int instanceIndex, HdInstancerContext *instancerContext=nullptr)
 
virtual HD_API SdfPathVector GetScenePrimPaths (SdfPath const &rprimId, std::vector< int > instanceIndices, std::vector< HdInstancerContext > *instancerContexts=nullptr)
 
virtual HD_API SdfPath GetDataSharingId (SdfPath const &primId)
 
virtual HD_API VtValue GetLightParamValue (SdfPath const &id, TfToken const &paramName)
 
virtual HD_API
HdVolumeFieldDescriptorVector 
GetVolumeFieldDescriptors (SdfPath const &volumeId)
 
virtual HD_API TfTokenVector GetExtComputationSceneInputNames (SdfPath const &computationId)
 
virtual HD_API
HdExtComputationInputDescriptorVector 
GetExtComputationInputDescriptors (SdfPath const &computationId)
 
virtual HD_API
HdExtComputationOutputDescriptorVector 
GetExtComputationOutputDescriptors (SdfPath const &computationId)
 
virtual HD_API
HdExtComputationPrimvarDescriptorVector 
GetExtComputationPrimvarDescriptors (SdfPath const &id, HdInterpolation interpolationMode)
 
virtual HD_API VtValue GetExtComputationInput (SdfPath const &computationId, TfToken const &input)
 
virtual HD_API size_t SampleExtComputationInput (SdfPath const &computationId, TfToken const &input, size_t maxSampleCount, float *sampleTimes, VtValue *sampleValues)
 
template<unsigned int CAPACITY>
void SampleExtComputationInput (SdfPath const &computationId, TfToken const &input, HdTimeSampleArray< VtValue, CAPACITY > *sa)
 
virtual HD_API std::string GetExtComputationKernel (SdfPath const &computationId)
 
virtual HD_API void InvokeExtComputation (SdfPath const &computationId, HdExtComputationContext *context)
 
virtual HD_API TfTokenVector GetTaskRenderTags (SdfPath const &taskId)
 

Detailed Description

A simple delegate class for unit test driver.

Definition at line 51 of file unitTestDelegate.h.

Constructor & Destructor Documentation

HD_API HdUnitTestDelegate::HdUnitTestDelegate ( HdRenderIndex parentIndex,
SdfPath const delegateID 
)

Member Function Documentation

HD_API void HdUnitTestDelegate::AddBasisCurves ( SdfPath const id,
VtVec3fArray const points,
VtIntArray const curveVertexCounts,
VtVec3fArray const normals,
TfToken const type,
TfToken const basis,
VtValue const color,
HdInterpolation  colorInterpolation,
VtValue const opacity,
HdInterpolation  opacityInterpolation,
VtValue const width,
HdInterpolation  widthInterpolation,
SdfPath const instancerId = SdfPath() 
)
HD_API void HdUnitTestDelegate::AddCamera ( SdfPath const id)

Camera.

HD_API void HdUnitTestDelegate::AddCube ( SdfPath const id,
GfMatrix4f const transform,
bool  guide = false,
SdfPath const instancerId = SdfPath(),
TfToken const scheme = PxOsdOpenSubdivTokens->catmullClark 
)

Add a cube.

HD_API void HdUnitTestDelegate::AddCurves ( SdfPath const id,
TfToken const type,
TfToken const basis,
GfMatrix4f const transform,
HdInterpolation  colorInterp = HdInterpolationConstant,
HdInterpolation  widthInterp = HdInterpolationConstant,
bool  authoredNormals = false,
SdfPath const instancerId = SdfPath() 
)

Add a basis curves prim containing two curves.

HD_API void HdUnitTestDelegate::AddFaceVaryingPolygons ( SdfPath const id,
GfMatrix4f const transform,
SdfPath const instancerId = SdfPath() 
)

Add a triangle, quad and pentagon with face-varying displayColor and displayOpacity

HD_API void HdUnitTestDelegate::AddGrid ( SdfPath const id,
int  x,
int  y,
GfMatrix4f const transform,
bool  rightHanded = true,
bool  doubleSided = false,
SdfPath const instancerId = SdfPath() 
)

Add a grid with division x*y.

HD_API void HdUnitTestDelegate::AddGridWithCustomColor ( SdfPath const id,
int  nx,
int  ny,
GfMatrix4f const transform,
VtValue const color,
HdInterpolation  colorInterpolation,
bool  rightHanded = true,
bool  doubleSided = false,
SdfPath const instancerId = SdfPath() 
)
HD_API void HdUnitTestDelegate::AddGridWithFaceColor ( SdfPath const id,
int  x,
int  y,
GfMatrix4f const transform,
bool  rightHanded = true,
bool  doubleSided = false,
SdfPath const instancerId = SdfPath() 
)

Add a grid with division x*y.

HD_API void HdUnitTestDelegate::AddGridWithFaceVaryingColor ( SdfPath const id,
int  x,
int  y,
GfMatrix4f const transform,
bool  rightHanded = true,
bool  doubleSided = false,
SdfPath const instancerId = SdfPath() 
)

Add a grid with division x*y.

HD_API void HdUnitTestDelegate::AddGridWithVertexColor ( SdfPath const id,
int  x,
int  y,
GfMatrix4f const transform,
bool  rightHanded = true,
bool  doubleSided = false,
SdfPath const instancerId = SdfPath() 
)

Add a grid with division x*y.

HD_API void HdUnitTestDelegate::AddInstancer ( SdfPath const id,
SdfPath const parentId = SdfPath(),
GfMatrix4f const rootTransform = GfMatrix4f(1) 
)

Instancer.

HD_API void HdUnitTestDelegate::AddMaterialResource ( SdfPath const id,
VtValue  materialResource 
)

Material.

HD_API void HdUnitTestDelegate::AddMesh ( SdfPath const id)
HD_API void HdUnitTestDelegate::AddMesh ( SdfPath const id,
GfMatrix4f const transform,
VtVec3fArray const points,
VtIntArray const numVerts,
VtIntArray const verts,
bool  guide = false,
SdfPath const instancerId = SdfPath(),
TfToken const scheme = PxOsdOpenSubdivTokens->catmullClark,
TfToken const orientation = HdTokens->rightHanded,
bool  doubleSided = false 
)
HD_API void HdUnitTestDelegate::AddMesh ( SdfPath const id,
GfMatrix4f const transform,
VtVec3fArray const points,
VtIntArray const numVerts,
VtIntArray const verts,
VtIntArray const holes,
PxOsdSubdivTags const subdivTags,
VtValue const color,
HdInterpolation  colorInterpolation,
VtValue const opacity,
HdInterpolation  opacityInterpolation,
bool  guide = false,
SdfPath const instancerId = SdfPath(),
TfToken const scheme = PxOsdOpenSubdivTokens->catmullClark,
TfToken const orientation = HdTokens->rightHanded,
bool  doubleSided = false 
)
HD_API void HdUnitTestDelegate::AddMesh ( SdfPath const id,
GfMatrix4f const transform,
VtVec3fArray const points,
VtIntArray const numVerts,
VtIntArray const verts,
VtIntArray const holes,
PxOsdSubdivTags const subdivTags,
VtValue const color,
VtIntArray const colorIndices,
HdInterpolation  colorInterpolation,
VtValue const opacity,
VtIntArray const opacityIndices,
HdInterpolation  opacityInterpolation,
bool  guide = false,
SdfPath const instancerId = SdfPath(),
TfToken const scheme = PxOsdOpenSubdivTokens->catmullClark,
TfToken const orientation = HdTokens->rightHanded,
bool  doubleSided = false 
)
HD_API void HdUnitTestDelegate::AddPoints ( SdfPath const id,
VtVec3fArray const points,
VtValue const color,
HdInterpolation  colorInterpolation,
VtValue const opacity,
HdInterpolation  opacityInterpolation,
VtValue const width,
HdInterpolation  widthInterpolation,
SdfPath const instancerId = SdfPath() 
)
HD_API void HdUnitTestDelegate::AddPoints ( SdfPath const id,
GfMatrix4f const transform,
HdInterpolation  colorInterp = HdInterpolationConstant,
HdInterpolation  widthInterp = HdInterpolationConstant,
SdfPath const instancerId = SdfPath() 
)

Add a points prim.

HD_API void HdUnitTestDelegate::AddPolygons ( SdfPath const id,
GfMatrix4f const transform,
HdInterpolation  colorInterp,
SdfPath const instancerId = SdfPath() 
)

Add a triangle, quad and pentagon.

HD_API void HdUnitTestDelegate::AddPrimvar ( SdfPath const id,
TfToken const name,
VtValue const value,
HdInterpolation const interp,
TfToken const role,
VtIntArray const indices = VtIntArray(0) 
)

Primvars.

HD_API void HdUnitTestDelegate::AddRenderBuffer ( SdfPath const id,
GfVec3i const dims,
HdFormat  format,
bool  multiSampled 
)

Render buffers.

HD_API void HdUnitTestDelegate::AddSubdiv ( SdfPath const id,
GfMatrix4f const transform,
SdfPath const insatancerId = SdfPath() 
)

Add a subdiv with various tags.

template<typename T >
void HdUnitTestDelegate::AddTask ( SdfPath const id)
inline

Tasks.

Definition at line 293 of file unitTestDelegate.h.

HD_API void HdUnitTestDelegate::BindMaterial ( SdfPath const rprimId,
SdfPath const materialId 
)
HD_API void HdUnitTestDelegate::Clear ( )

Clear all prims.

virtual HD_API VtValue HdUnitTestDelegate::Get ( SdfPath const id,
TfToken const key 
)
overridevirtual

Returns a named value.

Reimplemented from HdSceneDelegate.

virtual HD_API HdBasisCurvesTopology HdUnitTestDelegate::GetBasisCurvesTopology ( SdfPath const id)
overridevirtual

Gets the topological curve data for a given prim.

Reimplemented from HdSceneDelegate.

virtual HD_API VtValue HdUnitTestDelegate::GetCameraParamValue ( SdfPath const cameraId,
TfToken const paramName 
)
overridevirtual

Returns a single value for a given camera and parameter. See HdCameraTokens for the list of paramters.

Reimplemented from HdSceneDelegate.

virtual HD_API HdDisplayStyle HdUnitTestDelegate::GetDisplayStyle ( SdfPath const id)
overridevirtual

Returns the refinement level for the given prim in the range [0,8].

The refinement level indicates how many iterations to apply when subdividing subdivision surfaces or other refinable primitives.

Reimplemented from HdSceneDelegate.

virtual HD_API bool HdUnitTestDelegate::GetDoubleSided ( SdfPath const id)
overridevirtual

Returns the doubleSided state for the given prim.

Reimplemented from HdSceneDelegate.

virtual HD_API GfRange3d HdUnitTestDelegate::GetExtent ( SdfPath const id)
overridevirtual

Gets the axis aligned bounds of a prim. The returned bounds are in the local space of the prim (transform is yet to be applied) and should contain the bounds of any child prims.

The returned bounds does not include any displacement that might occur as the result of running shaders on the prim.

Reimplemented from HdSceneDelegate.

virtual HD_API VtValue HdUnitTestDelegate::GetIndexedPrimvar ( SdfPath const id,
TfToken const key,
VtIntArray *  outIndices 
)
overridevirtual

Returns a named primvar value. If *outIndices is not nullptr and the primvar has indices, it will return the unflattened primvar and set *outIndices to the primvar's associated indices, clearing the array if the primvar is not indexed.

Reimplemented from HdSceneDelegate.

virtual HD_API VtIntArray HdUnitTestDelegate::GetInstanceIndices ( SdfPath const instancerId,
SdfPath const prototypeId 
)
overridevirtual

Gets the extracted indices array of the prototype id used in the instancer.

example instances: 0, 1, 2, 3, 4, 5 protoypes: A, B, A, A, B, C

GetInstanceIndices(A) : [0, 2, 3] GetInstanceIndices(B) : [1, 4] GetInstanceIndices(C) : [5] GetInstanceIndices(D) : []

Reimplemented from HdSceneDelegate.

virtual HD_API SdfPath HdUnitTestDelegate::GetInstancerId ( SdfPath const primId)
overridevirtual

Returns the parent instancer of the given rprim or instancer.

Reimplemented from HdSceneDelegate.

virtual HD_API GfMatrix4d HdUnitTestDelegate::GetInstancerTransform ( SdfPath const instancerId)
overridevirtual

Returns the instancer transform.

Reimplemented from HdSceneDelegate.

virtual HD_API SdfPath HdUnitTestDelegate::GetMaterialId ( SdfPath const rprimId)
overridevirtual

Returns the material ID bound to the rprim rprimId.

Reimplemented from HdSceneDelegate.

virtual HD_API VtValue HdUnitTestDelegate::GetMaterialResource ( SdfPath const materialId)
overridevirtual

Returns the material ID bound to the rprim rprimId.

Reimplemented from HdSceneDelegate.

virtual HD_API HdMeshTopology HdUnitTestDelegate::GetMeshTopology ( SdfPath const id)
overridevirtual

Gets the topological mesh data for a given prim.

Reimplemented from HdSceneDelegate.

virtual HD_API HdPrimvarDescriptorVector HdUnitTestDelegate::GetPrimvarDescriptors ( SdfPath const id,
HdInterpolation  interpolation 
)
overridevirtual

Returns descriptors for all primvars of the given interpolation type.

Reimplemented from HdSceneDelegate.

virtual HD_API HdRenderBufferDescriptor HdUnitTestDelegate::GetRenderBufferDescriptor ( SdfPath const id)
overridevirtual

Returns the allocation descriptor for a given render buffer prim.

Reimplemented from HdSceneDelegate.

virtual HD_API TfToken HdUnitTestDelegate::GetRenderTag ( SdfPath const id)
overridevirtual

Returns the render tag that will be used to bucket prims during render pass bucketing.

Reimplemented from HdSceneDelegate.

virtual HD_API HdReprSelector HdUnitTestDelegate::GetReprSelector ( SdfPath const id)
overridevirtual

Returns the authored repr (if any) for the given prim.

Reimplemented from HdSceneDelegate.

virtual HD_API PxOsdSubdivTags HdUnitTestDelegate::GetSubdivTags ( SdfPath const id)
overridevirtual

Gets the subdivision surface tags (sharpness, holes, etc).

Reimplemented from HdSceneDelegate.

virtual HD_API GfMatrix4d HdUnitTestDelegate::GetTransform ( SdfPath const id)
overridevirtual

Returns the object space transform, including all parent transforms.

Reimplemented from HdSceneDelegate.

virtual HD_API bool HdUnitTestDelegate::GetVisible ( SdfPath const id)
overridevirtual

Returns the authored visible state of the prim.

Reimplemented from HdSceneDelegate.

HD_API void HdUnitTestDelegate::HideRprim ( SdfPath const id)
HD_API void HdUnitTestDelegate::MarkRprimDirty ( SdfPath  path,
HdDirtyBits  flag 
)

Marks an rprim in the RenderIndex as dirty with the given dirty flags.

HD_API GfVec3f HdUnitTestDelegate::PopulateBasicTestSet ( )
HD_API GfVec3f HdUnitTestDelegate::PopulateInvalidPrimsSet ( )
HD_API void HdUnitTestDelegate::RebindMaterial ( SdfPath const rprimId,
SdfPath const materialId 
)

Example to update a material binding on the fly.

HD_API void HdUnitTestDelegate::Remove ( SdfPath const id)

Remove a prim.

HD_API void HdUnitTestDelegate::RemovePrimvar ( SdfPath const id,
TfToken const name 
)
HD_API void HdUnitTestDelegate::SetInstancerProperties ( SdfPath const id,
VtIntArray const prototypeIndex,
VtVec3fArray const scale,
VtVec4fArray const rotate,
VtVec3fArray const translate 
)
HD_API void HdUnitTestDelegate::SetRefineLevel ( int  level)
HD_API void HdUnitTestDelegate::SetRefineLevel ( SdfPath const id,
int  refineLevel 
)
HD_API void HdUnitTestDelegate::SetReprSelector ( SdfPath const id,
HdReprSelector const reprSelector 
)
void HdUnitTestDelegate::SetUseInstancePrimvars ( bool  v)
inline

Definition at line 57 of file unitTestDelegate.h.

HD_API void HdUnitTestDelegate::SetVisibility ( bool  vis)
HD_API void HdUnitTestDelegate::SetVisibility ( SdfPath const id,
bool  vis 
)
HD_API void HdUnitTestDelegate::UnhideRprim ( SdfPath const id)
HD_API void HdUnitTestDelegate::UpdateCamera ( SdfPath const id,
TfToken const key,
VtValue  value 
)
HD_API void HdUnitTestDelegate::UpdateCurvePrimvarsInterpMode ( float  time)
HD_API void HdUnitTestDelegate::UpdateInstancer ( SdfPath const rprimId,
SdfPath const instancerId 
)
HD_API void HdUnitTestDelegate::UpdateInstancerPrimvars ( float  time)
HD_API void HdUnitTestDelegate::UpdateInstancerPrototypes ( float  time)
HD_API void HdUnitTestDelegate::UpdateMaterialResource ( SdfPath const materialId,
VtValue  materialResource 
)

Update a material resource.

HD_API void HdUnitTestDelegate::UpdatePositions ( SdfPath const id,
float  time 
)
HD_API void HdUnitTestDelegate::UpdatePrimvarValue ( SdfPath const id,
TfToken const name,
VtValue const value,
VtIntArray const indices = VtIntArray(0) 
)
HD_API void HdUnitTestDelegate::UpdateRprims ( float  time)
HD_API void HdUnitTestDelegate::UpdateTask ( SdfPath const id,
TfToken const key,
VtValue  value 
)
HD_API void HdUnitTestDelegate::UpdateTransform ( SdfPath const id,
GfMatrix4f const mat 
)

Transform.


The documentation for this class was generated from the following file: