HDK
|
Classes | |
class | RenderInstanceTracker |
Functions | |
RenderInstanceTracker facility below provides a simple way | |
A simple facility to associate an application object managed by std::shared_ptr with a render instance id. This is useful when using the scene index callback registration facility. The callback is registered only once, but may be invoked each time the scene index graph is created (this currently happens during the render index construction). Futhermore, an application may spawn several render index instances and thus the (same) callback may be invoked several times, necessitating a way to map the callback back to the associated scene index instance. The to register, unregister and query an object that is tied to a render instance id, which is provided as a callback argument.
The UnregisterInstance method is typically invoked prior to render index destruction.
| |
HD_API bool | HasActiveRenderSettingsPrim (const HdSceneIndexBaseRefPtr &si, SdfPath *primPath=nullptr) |
HD_API CameraUtilConformWindowPolicy | ToConformWindowPolicy (const TfToken &token) |
HD_API void | PrintSceneIndex (std::ostream &out, const HdSceneIndexBaseRefPtr &si, const SdfPath &rootPath=SdfPath::AbsoluteRootPath()) |
HD_API bool HdUtils::HasActiveRenderSettingsPrim | ( | const HdSceneIndexBaseRefPtr & | si, |
SdfPath * | primPath = nullptr |
||
) |
Retreives the active render settings prim path from the input scene index si
. Returns true if a data source for the associated locator was found with the result in primPath
, and false otherwise.
HD_API void HdUtils::PrintSceneIndex | ( | std::ostream & | out, |
const HdSceneIndexBaseRefPtr & | si, | ||
const SdfPath & | rootPath = SdfPath::AbsoluteRootPath() |
||
) |
Lexicographically sorts the scene index prims in the subtree rooted at rootPath
and writes them out.
HD_API CameraUtilConformWindowPolicy HdUtils::ToConformWindowPolicy | ( | const TfToken & | token | ) |
Translate the given aspect ratio conform policy token
into an equivalent CameraUtilConformWindowPolicy enum.