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

#include <taskController.h>

Public Member Functions

HDX_API HdxTaskController (HdRenderIndex *renderIndex, SdfPath const &controllerId)
 
HDX_API ~HdxTaskController ()
 
HdRenderIndexGetRenderIndex ()
 Return the render index this controller is bound to. More...
 
HdRenderIndex constGetRenderIndex () const
 
SdfPath constGetControllerId () const
 
HDX_API HdTaskSharedPtrVector const GetRenderingTasks () const
 
HDX_API HdTaskSharedPtrVector const GetPickingTasks () const
 
HDX_API void SetCollection (HdRprimCollection const &collection)
 Set the collection to be rendered. More...
 
HDX_API void SetRenderParams (HdxRenderTaskParams const &params)
 
HDX_API void SetRenderTags (TfTokenVector const &renderTags)
 
HDX_API void SetRenderOutputs (TfTokenVector const &names)
 
HDX_API void SetViewportRenderOutput (TfToken const &name)
 
HDX_API HdRenderBufferGetRenderOutput (TfToken const &name)
 
HDX_API void SetRenderOutputSettings (TfToken const &name, HdAovDescriptor const &desc)
 Set custom parameters for an AOV. More...
 
HDX_API HdAovDescriptor GetRenderOutputSettings (TfToken const &name) const
 
HDX_API void SetLightingState (GlfSimpleLightingContextPtr const &src)
 
HDX_API void SetRenderViewport (GfVec4d const &viewport)
 Set the viewport param on tasks. More...
 
HDX_API void SetCameraPath (SdfPath const &id)
 
HDX_API void SetFreeCameraMatrices (GfMatrix4d const &viewMatrix, GfMatrix4d const &projectionMatrix)
 
HDX_API void SetFreeCameraClipPlanes (std::vector< GfVec4d > const &clipPlanes)
 
HDX_API void SetEnableSelection (bool enable)
 Turns the selection task on or off. More...
 
HDX_API void SetSelectionColor (GfVec4f const &color)
 Set the selection color. More...
 
HDX_API void SetSelectionEnableOutline (bool enableOutline)
 
HDX_API void SetSelectionOutlineRadius (unsigned int radius)
 
HDX_API void SetEnableShadows (bool enable)
 Turns the shadow task on or off. More...
 
HDX_API void SetShadowParams (HdxShadowTaskParams const &params)
 
HDX_API bool IsConverged () const
 Return whether the image has converged. More...
 
HDX_API void SetColorCorrectionParams (HdxColorCorrectionTaskParams const &params)
 Configure color correction by settings params. More...
 
HDX_API void SetColorChannelParams (HdxColorChannelTaskParams const &params)
 Configure color channel by settings params. More...
 

Detailed Description

Definition at line 54 of file taskController.h.

Constructor & Destructor Documentation

HDX_API HdxTaskController::HdxTaskController ( HdRenderIndex renderIndex,
SdfPath const controllerId 
)
HDX_API HdxTaskController::~HdxTaskController ( )

Member Function Documentation

SdfPath const& HdxTaskController::GetControllerId ( ) const
inline

Return the controller's scene-graph id (prefixed to any scene graph objects it creates).

Definition at line 68 of file taskController.h.

HDX_API HdTaskSharedPtrVector const HdxTaskController::GetPickingTasks ( ) const

Obtain the set of tasks managed by the task controller, for picking.

HdRenderIndex* HdxTaskController::GetRenderIndex ( )
inline

Return the render index this controller is bound to.

Definition at line 63 of file taskController.h.

HdRenderIndex const* HdxTaskController::GetRenderIndex ( ) const
inline

Definition at line 64 of file taskController.h.

HDX_API HdTaskSharedPtrVector const HdxTaskController::GetRenderingTasks ( ) const

Execution API Obtain the set of tasks managed by the task controller, for image generation. The tasks returned will be different based on current renderer state.

HDX_API HdRenderBuffer* HdxTaskController::GetRenderOutput ( TfToken const name)

Get the buffer for a rendered output. Note: the caller should call Resolve(), as HdxTaskController doesn't guarantee the buffer will be resolved.

HDX_API HdAovDescriptor HdxTaskController::GetRenderOutputSettings ( TfToken const name) const
HDX_API bool HdxTaskController::IsConverged ( ) const

Return whether the image has converged.


Progressive Image Generation

HDX_API void HdxTaskController::SetCameraPath ( SdfPath const id)

– Scene camera – Set the camera param on tasks to a USD camera path.

HDX_API void HdxTaskController::SetCollection ( HdRprimCollection const collection)

Set the collection to be rendered.


Rendering API

HDX_API void HdxTaskController::SetColorChannelParams ( HdxColorChannelTaskParams const params)

Configure color channel by settings params.


Color Channel API

HDX_API void HdxTaskController::SetColorCorrectionParams ( HdxColorCorrectionTaskParams const params)

Configure color correction by settings params.


Color Correction API

HDX_API void HdxTaskController::SetEnableSelection ( bool  enable)

Turns the selection task on or off.


Selection API

HDX_API void HdxTaskController::SetEnableShadows ( bool  enable)

Turns the shadow task on or off.


Shadow API

HDX_API void HdxTaskController::SetFreeCameraClipPlanes ( std::vector< GfVec4d > const clipPlanes)

Set the free camera clip planes. (Note: Scene cameras use clipping planes authored on the camera prim)

HDX_API void HdxTaskController::SetFreeCameraMatrices ( GfMatrix4d const viewMatrix,
GfMatrix4d const projectionMatrix 
)

– Free camera – Set the view and projection matrices for the free camera. Note: The projection matrix must be pre-adjusted for the window policy.

HDX_API void HdxTaskController::SetLightingState ( GlfSimpleLightingContextPtr const src)

Lighting API Set the lighting state for the scene. HdxTaskController maintains a set of light sprims with data set from the lights in "src".

Parameters
srcLighting state to implement.
HDX_API void HdxTaskController::SetRenderOutputs ( TfTokenVector const names)

AOV API Set the list of outputs to be rendered. If outputs.size() == 1, this will send that output to the viewport via a colorizer task. Note: names should come from HdAovTokens.

HDX_API void HdxTaskController::SetRenderOutputSettings ( TfToken const name,
HdAovDescriptor const desc 
)

Set custom parameters for an AOV.

HDX_API void HdxTaskController::SetRenderParams ( HdxRenderTaskParams const params)

Set the render params. Note: params.viewport will be overwritten, since it comes from SetRenderViewport. XXX: For GL renders, HdxTaskController relies on the caller to correctly set GL_SAMPLE_ALPHA_TO_COVERAGE.

HDX_API void HdxTaskController::SetRenderTags ( TfTokenVector const renderTags)

Set the "view" opinion of the scenes render tags. The opinion is the base opinion for the entire scene. Individual tasks (such as the shadow task) may have a stronger opinion and override this opinion

HDX_API void HdxTaskController::SetRenderViewport ( GfVec4d const viewport)

Set the viewport param on tasks.


Camera and Framing API

HDX_API void HdxTaskController::SetSelectionColor ( GfVec4f const color)

Set the selection color.

HDX_API void HdxTaskController::SetSelectionEnableOutline ( bool  enableOutline)

Set if the selection highlight should be rendered as an outline around the selected objects or as a solid color overlaid on top of them.

HDX_API void HdxTaskController::SetSelectionOutlineRadius ( unsigned int  radius)

Set the selection outline radius (thickness) in pixels. This is only relevant if the highlight is meant to be rendered as an outline (if SetSelectionRenderOutline(true) is called).

HDX_API void HdxTaskController::SetShadowParams ( HdxShadowTaskParams const params)

Set the shadow params. Note: params.camera will be overwritten, since it comes from SetCameraPath/SetCameraState.

HDX_API void HdxTaskController::SetViewportRenderOutput ( TfToken const name)

Set which output should be rendered to the viewport. The empty token disables viewport rendering.


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