24 #ifndef PXR_USD_IMAGING_USD_APP_UTILS_FRAME_RECORDER_H
25 #define PXR_USD_IMAGING_USD_APP_UTILS_FRAME_RECORDER_H
30 #include "pxr/usdImaging/usdAppUtils/api.h"
35 #include "pxr/usd/usd/timeCode.h"
42 PXR_NAMESPACE_OPEN_SCOPE
79 if (imageWidth == 0u) {
83 _imageWidth = imageWidth;
90 _complexity = complexity;
97 _colorCorrectionMode = colorCorrectionMode;
121 const UsdStagePtr& stage,
124 const std::string& outputImagePath);
135 PXR_NAMESPACE_CLOSE_SCOPE
void SetComplexity(const float complexity)
Sets the level of refinement complexity.
USDAPPUTILS_API void SetIncludedPurposes(const TfTokenVector &purposes)
Sets the UsdGeomImageable purposes to be used for rendering.
#define TF_CODING_ERROR(fmt, args)
Issue an internal programming error, but continue execution.
Low-level utilities for informing users of various internal and external diagnostic conditions...
bool SetRendererPlugin(const TfToken &id)
Sets the Hydra renderer plugin to be used for recording.
Token for efficient comparison, assignment, and hashing of known strings.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
USDAPPUTILS_API bool Record(const UsdStagePtr &stage, const UsdGeomCamera &usdCamera, const UsdTimeCode timeCode, const std::string &outputImagePath)
Records an image and writes the result to outputImagePath.
void SetColorCorrectionMode(const TfToken &colorCorrectionMode)
Sets the color correction mode to be used for recording.
std::vector< TfToken > TfTokenVector
Convenience types.
A utility class for recording images of USD stages.
USDIMAGINGGL_API TfToken GetCurrentRendererId() const
Return the id of the currently used renderer plugin.
The UsdImagingGLEngine is the main entry point API for rendering USD scenes.
void SetImageWidth(const size_t imageWidth)
Sets the width of the recorded image.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
TfToken GetCurrentRendererId() const
Gets the ID of the Hydra renderer plugin that will be used for recording.
USDIMAGINGGL_API bool SetRendererPlugin(TfToken const &id)
Set the current render-graph delegate to id.