XUSD_RenderSettings contains the HdRenderSettings for the render.
More...
#include <XUSD_RenderSettings.h>
|
| XUSD_RenderSettings () |
|
virtual | ~XUSD_RenderSettings () |
|
bool | init (const UsdStageRefPtr &usd, const SdfPath &settings_path, XUSD_RenderSettingsContext &ctx) |
|
bool | init (const UsdStageRefPtr &usd, const UT_StringHolder &settings_path, XUSD_RenderSettingsContext &ctx) |
| Alternative initialization with a string path. More...
|
|
bool | updateFrame (const UsdStageRefPtr &usd, XUSD_RenderSettingsContext &ctx, bool create_dummy_raster_product) |
| Update the frame. More...
|
|
bool | resolveProducts (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx, bool create_dummy_raster_product) |
| Resolve products/vars. More...
|
|
UsdPrim | prim () const |
| Get the render settings. More...
|
|
const TfToken & | renderer () const |
| Rendering head. More...
|
|
const VtArray< TfToken > & | purpose () const |
|
SdfPath | cameraPath (const XUSD_RenderProduct *p) const |
| Properties which a render product might override. More...
|
|
double | shutterOpen (const XUSD_RenderProduct *p) const |
|
double | shutterClose (const XUSD_RenderProduct *p) const |
|
int | xres (const XUSD_RenderProduct *p) const |
|
int | yres (const XUSD_RenderProduct *p) const |
|
GfVec2i | res (const XUSD_RenderProduct *p) const |
|
float | pixelAspect (const XUSD_RenderProduct *p) const |
|
GfVec4f | dataWindowF (const XUSD_RenderProduct *p) const |
|
UT_DimRect | dataWindow (const XUSD_RenderProduct *p) const |
|
bool | disableMotionBlur (const XUSD_RenderProduct *p) const |
|
UT_StringHolder | outputName (int product_group) const |
|
const HdRenderSettingsMap & | renderSettings () const |
|
bool | expandProducts (const XUSD_RenderSettingsContext &ctx, int frame, int product_group) |
| Expand product name variables. More...
|
|
void | printSettings () const |
| Print out the settings to UT_ErrorLog. More...
|
|
void | dump () const |
|
void | dump (UT_JSONWriter &w) const |
|
bool | collectAovs (TfTokenVector &aovs, HdAovDescriptorList &descs) const |
|
template<typename T > |
bool | aspectConform (const XUSD_RenderSettingsContext &ctx, T &vaperture, T &pixel_aspect, T cam_aspect, T img_aspect) const |
| This method assumes you have render settings defined. More...
|
|
HUSD_AspectConformPolicy | conformPolicy (const XUSD_RenderSettingsContext &c) const |
|
VtValue | delegateRenderProducts (int product_group) const |
|
virtual bool | supportedDelegate (const TfToken &name) const |
|
|
const ProductGroupList & | productGroups () const |
|
const ProductList & | products () const |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
XUSD_RenderSettings contains the HdRenderSettings for the render.
Definition at line 328 of file XUSD_RenderSettings.h.
Enumerator |
---|
INVALID |
|
EXPAND_APERTURE |
|
CROP_APERTURE |
|
ADJUST_HAPERTURE |
|
ADJUST_VAPERTURE |
|
ADJUST_PIXEL_ASPECT |
|
DEFAULT |
|
Definition at line 410 of file XUSD_RenderSettings.h.
XUSD_RenderSettings::XUSD_RenderSettings |
( |
| ) |
|
virtual XUSD_RenderSettings::~XUSD_RenderSettings |
( |
| ) |
|
|
virtual |
Check to see whether there have been any unexpected products added (as in the mplay monitor or the dummy raster product). Returns true if the path list size matches.
template<typename T >
static bool XUSD_RenderSettings::aspectConform |
( |
HUSD_AspectConformPolicy |
conform, |
|
|
T & |
vaperture, |
|
|
T & |
pixel_aspect, |
|
|
T |
cam_aspect, |
|
|
T |
img_aspect |
|
) |
| |
|
static |
When the camera aspect ratio doesn't match the image aspect ratio, USD specifies five different approatches to resolving this difference. HoudiniGL and Karma only use the vertical aperture and thus have a fixed way to resolve aspect ratio differences. This method will adjust the vertical aspect or pixel aspect ratio to fit with the five different methods described in USD. The method returns true if values were changed. The method is templated on single/double precision
This method assumes you have render settings defined.
Properties which a render product might override.
VtValue XUSD_RenderSettings::delegateRenderProducts |
( |
int |
product_group | ) |
const |
void XUSD_RenderSettings::dump |
( |
| ) |
const |
Expand product name variables.
Since the settings primitive may specify values used by the render settings context (like frame count, etc.) we pass in a non-const context
so the initialization process so we can call initFromUSD() once we've found the render settings.
Alternative initialization with a string path.
bool XUSD_RenderSettings::isDefaultProduct |
( |
| ) |
const |
|
inlineprotected |
void XUSD_RenderSettings::partitionProducts |
( |
| ) |
|
|
protected |
UsdPrim XUSD_RenderSettings::prim |
( |
| ) |
const |
|
inline |
void XUSD_RenderSettings::printSettings |
( |
| ) |
const |
Properties from the render settings which cannot be overridden per product.
Definition at line 372 of file XUSD_RenderSettings.h.
virtual bool XUSD_RenderSettings::supportedDelegate |
( |
const TfToken & |
name | ) |
const |
|
virtual |
SdfPath XUSD_RenderSettings::myCameraPath |
|
protected |
GfVec4f XUSD_RenderSettings::myDataWindowF |
|
protected |
bool XUSD_RenderSettings::myDisableMotionBlur |
|
protected |
bool XUSD_RenderSettings::myFirstFrame |
|
protected |
float XUSD_RenderSettings::myPixelAspect |
|
protected |
bool XUSD_RenderSettings::myProductDataWindow |
|
protected |
exint XUSD_RenderSettings::myProductGroup |
|
protected |
TfToken XUSD_RenderSettings::myRenderer |
|
protected |
GfVec2d XUSD_RenderSettings::myShutter |
|
protected |
The documentation for this class was generated from the following file: