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

#include <freeCameraSceneDelegate.h>

+ Inheritance diagram for HdxFreeCameraSceneDelegate:

Public Member Functions

HDX_API HdxFreeCameraSceneDelegate (HdRenderIndex *renderIndex, SdfPath const &delegateId)
 
HDX_API ~HdxFreeCameraSceneDelegate () override
 
const SdfPathGetCameraId () const
 
HDX_API void SetCamera (const GfCamera &camera)
 Set state of camera from GfCamera. More...
 
HDX_API void SetWindowPolicy (CameraUtilConformWindowPolicy policy)
 Set window policy of camera. More...
 
HDX_API void SetMatrices (GfMatrix4d const &viewMatrix, GfMatrix4d const &projMatrix)
 
HDX_API void SetClipPlanes (std::vector< GfVec4f > const &clipPlanes)
 For transition, set clip planes for camera. GfCamera is preferred. More...
 
HDX_API GfMatrix4d GetTransform (SdfPath const &id) override
 Returns the object space transform, including all parent transforms. More...
 
HDX_API VtValue GetCameraParamValue (SdfPath const &id, TfToken const &key) override
 
- 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 HdMeshTopology GetMeshTopology (SdfPath const &id)
 Gets the topological mesh data for a given prim. More...
 
virtual HD_API
HdBasisCurvesTopology 
GetBasisCurvesTopology (SdfPath const &id)
 Gets the topological curve data for a given prim. More...
 
virtual HD_API PxOsdSubdivTags GetSubdivTags (SdfPath const &id)
 Gets the subdivision surface tags (sharpness, holes, etc). More...
 
virtual HD_API GfRange3d GetExtent (SdfPath const &id)
 
virtual HD_API bool GetVisible (SdfPath const &id)
 Returns the authored visible state of the prim. More...
 
virtual HD_API bool GetDoubleSided (SdfPath const &id)
 Returns the doubleSided state for the given prim. 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 HdDisplayStyle GetDisplayStyle (SdfPath const &id)
 
virtual HD_API VtValue Get (SdfPath const &id, TfToken const &key)
 Returns a named value. More...
 
virtual HD_API VtValue GetIndexedPrimvar (SdfPath const &id, TfToken const &key, VtIntArray *outIndices)
 
virtual HD_API HdReprSelector GetReprSelector (SdfPath const &id)
 Returns the authored repr (if any) for the given prim. More...
 
virtual HD_API TfToken GetRenderTag (SdfPath const &id)
 
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 VtIntArray GetInstanceIndices (SdfPath const &instancerId, SdfPath const &prototypeId)
 
virtual HD_API GfMatrix4d GetInstancerTransform (SdfPath const &instancerId)
 Returns the instancer transform. More...
 
virtual HD_API SdfPath GetInstancerId (SdfPath const &primId)
 Returns the parent instancer of the given rprim or instancer. More...
 
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 SdfPath GetMaterialId (SdfPath const &rprimId)
 Returns the material ID bound to the rprim rprimId. More...
 
virtual HD_API VtValue GetMaterialResource (SdfPath const &materialId)
 Returns the material ID bound to the rprim rprimId. More...
 
virtual HD_API
HdRenderBufferDescriptor 
GetRenderBufferDescriptor (SdfPath const &id)
 Returns the allocation descriptor for a given render buffer prim. More...
 
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
HdPrimvarDescriptorVector 
GetPrimvarDescriptors (SdfPath const &id, HdInterpolation interpolation)
 Returns descriptors for all primvars of the given interpolation type. More...
 
virtual HD_API TfTokenVector GetTaskRenderTags (SdfPath const &taskId)
 

Detailed Description

A simple scene delegate adding a camera prim to the given render index.

Definition at line 42 of file freeCameraSceneDelegate.h.

Constructor & Destructor Documentation

HDX_API HdxFreeCameraSceneDelegate::HdxFreeCameraSceneDelegate ( HdRenderIndex renderIndex,
SdfPath const delegateId 
)

Constructs delegate and adds camera to render index if cameras are supported by render delegate.

HDX_API HdxFreeCameraSceneDelegate::~HdxFreeCameraSceneDelegate ( )
override

Member Function Documentation

const SdfPath& HdxFreeCameraSceneDelegate::GetCameraId ( ) const
inline

Path of added camera (in render index). Empty if cameras are not supported by render delegate.

Definition at line 56 of file freeCameraSceneDelegate.h.

HDX_API VtValue HdxFreeCameraSceneDelegate::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.

HDX_API GfMatrix4d HdxFreeCameraSceneDelegate::GetTransform ( SdfPath const id)
overridevirtual

Returns the object space transform, including all parent transforms.

Reimplemented from HdSceneDelegate.

HDX_API void HdxFreeCameraSceneDelegate::SetCamera ( const GfCamera camera)

Set state of camera from GfCamera.

HDX_API void HdxFreeCameraSceneDelegate::SetClipPlanes ( std::vector< GfVec4f > const clipPlanes)

For transition, set clip planes for camera. GfCamera is preferred.

HDX_API void HdxFreeCameraSceneDelegate::SetMatrices ( GfMatrix4d const viewMatrix,
GfMatrix4d const projMatrix 
)

For transition, set camera state from OpenGL-style view and projection matrix. GfCamera is preferred.

HDX_API void HdxFreeCameraSceneDelegate::SetWindowPolicy ( CameraUtilConformWindowPolicy  policy)

Set window policy of camera.


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