|
HDK
|
XUSD_RenderSettings contains the HdRenderSettings for the render. More...
#include <XUSD_RenderSettings.h>
Inheritance diagram for XUSD_RenderSettings:Public Types | |
| using | ProductList = UT_Array< UT_UniquePtr< XUSD_RenderProduct >> |
| using | ProductGroup = UT_Array< int > |
| using | ProductGroupList = UT_Array< ProductGroup > |
| using | const_iterator = ProductList::const_iterator |
Public Member Functions | |
| 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, HUSD_CustomProductAction custom_product_action) |
| Update the frame. More... | |
| bool | resolveProducts (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx, HUSD_CustomProductAction custom_product_action) |
| Resolve products/vars. More... | |
| UsdPrim | prim () const |
| Get the render settings. 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 |
| bool | disableDepthOfField (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, bool delegate_products) |
| 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, HUSD_CustomProductAction custom_product_action, HdAovDescriptorList &descs) const |
| bool | collectImageFilterLists (const UsdStageRefPtr &usd, UT_StringArray &paths, UT_Array< UsdPrim > &prims, bool collect_products) 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 |
| VtValue | rasterRenderProducts (int product_group) const |
| virtual bool | supportedDelegate (const TfToken &name) const |
| bool | getKarmaRandomSeed (int64 &seed, const XUSD_RenderSettingsContext &ctx) const |
| Check if the karma random seed was authored. More... | |
| const ProductGroupList & | productGroups () const |
| const ProductList & | products () const |
| const_iterator | begin () const |
| const_iterator | end () const |
Static Public Member Functions | |
| static void | findCameras (UT_Array< SdfPath > &list, UsdPrim prim) |
| static HUSD_AspectConformPolicy | conformPolicy (const TfToken &t) |
| static const TfToken & | conformPolicy (HUSD_AspectConformPolicy policy) |
| static UT_InclusiveRect | computeDataWindow (const GfVec2i &res, const GfVec4f &win) |
| template<typename T > | |
| static bool | aspectConform (HUSD_AspectConformPolicy conform, T &vaperture, T &pixel_aspect, T cam_aspect, T img_aspect) |
| static void | splitAOVs (const UT_StringMap< HdAovDescriptor > &aovs, UT_StringSet &color_aovs, UT_StringSet &non_color_aovs) |
| static bool | updateHoudiniImageFilterList (const UsdStageRefPtr &stage, const SdfPath &usdprim, const UT_StringHolder &coppath, fpreal frame, const UT_StringSet &color_aov_set, const UT_StringSet &non_color_aov_set) |
| Update HoudiniImageFilterList. More... | |
| static SYS_HashType | hashHoudiniImageFilterList (const UsdPrim &prim, fpreal frame) |
Protected Member Functions | |
| virtual UT_UniquePtr < XUSD_RenderProduct > | newRenderProduct () const |
| void | partitionProducts () |
| void | computeImageWindows (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx) |
| void | setDefaults (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx) |
| bool | loadFromPrim (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx) |
| bool | loadFromOptions (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx) |
| void | buildRenderSettings (const UsdStageRefPtr &usd, const XUSD_RenderSettingsContext &ctx) |
| bool | isDefaultProduct () const |
| bool | accountForExtraProducts (const SdfPathVector &paths) const |
| VtValue | renderProducts (int product_group, bool raster) const |
Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable | |
| UT_NonCopyable ()=default | |
| ~UT_NonCopyable ()=default | |
| UT_NonCopyable (const UT_NonCopyable &)=delete | |
| UT_NonCopyable & | operator= (const UT_NonCopyable &)=delete |
XUSD_RenderSettings contains the HdRenderSettings for the render.
Definition at line 350 of file XUSD_RenderSettings.h.
Definition at line 357 of file XUSD_RenderSettings.h.
| using XUSD_RenderSettings::ProductGroup = UT_Array<int> |
Definition at line 355 of file XUSD_RenderSettings.h.
Definition at line 356 of file XUSD_RenderSettings.h.
Definition at line 354 of file XUSD_RenderSettings.h.
| XUSD_RenderSettings::XUSD_RenderSettings | ( | ) |
|
virtual |
|
protected |
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.
|
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
| bool XUSD_RenderSettings::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.
|
inline |
Render Products
Definition at line 413 of file XUSD_RenderSettings.h.
|
protected |
| SdfPath XUSD_RenderSettings::cameraPath | ( | const XUSD_RenderProduct * | p | ) | const |
Properties which a render product might override.
| bool XUSD_RenderSettings::collectAovs | ( | TfTokenVector & | aovs, |
| HUSD_CustomProductAction | custom_product_action, | ||
| HdAovDescriptorList & | descs | ||
| ) | const |
| bool XUSD_RenderSettings::collectImageFilterLists | ( | const UsdStageRefPtr & | usd, |
| UT_StringArray & | paths, | ||
| UT_Array< UsdPrim > & | prims, | ||
| bool | collect_products | ||
| ) | const |
|
static |
|
protected |
|
static |
|
static |
| HUSD_AspectConformPolicy XUSD_RenderSettings::conformPolicy | ( | const XUSD_RenderSettingsContext & | c | ) | const |
| UT_DimRect XUSD_RenderSettings::dataWindow | ( | const XUSD_RenderProduct * | p | ) | const |
| GfVec4f XUSD_RenderSettings::dataWindowF | ( | const XUSD_RenderProduct * | p | ) | const |
Definition at line 469 of file XUSD_RenderSettings.h.
| bool XUSD_RenderSettings::disableDepthOfField | ( | const XUSD_RenderProduct * | p | ) | const |
| bool XUSD_RenderSettings::disableMotionBlur | ( | const XUSD_RenderProduct * | p | ) | const |
| void XUSD_RenderSettings::dump | ( | ) | const |
| void XUSD_RenderSettings::dump | ( | UT_JSONWriter & | w | ) | const |
|
inline |
Render Products
Definition at line 414 of file XUSD_RenderSettings.h.
| bool XUSD_RenderSettings::expandProducts | ( | const XUSD_RenderSettingsContext & | ctx, |
| int | frame, | ||
| int | product_group, | ||
| bool | delegate_products | ||
| ) |
Expand product name variables.
| bool XUSD_RenderSettings::getKarmaRandomSeed | ( | int64 & | seed, |
| const XUSD_RenderSettingsContext & | ctx | ||
| ) | const |
Check if the karma random seed was authored.
|
static |
| bool XUSD_RenderSettings::init | ( | const UsdStageRefPtr & | usd, |
| const SdfPath & | settings_path, | ||
| XUSD_RenderSettingsContext & | ctx | ||
| ) |
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.
| bool XUSD_RenderSettings::init | ( | const UsdStageRefPtr & | usd, |
| const UT_StringHolder & | settings_path, | ||
| XUSD_RenderSettingsContext & | ctx | ||
| ) |
Alternative initialization with a string path.
|
inlineprotected |
Definition at line 515 of file XUSD_RenderSettings.h.
|
protected |
|
protected |
|
inlineprotectedvirtual |
Definition at line 501 of file XUSD_RenderSettings.h.
| UT_StringHolder XUSD_RenderSettings::outputName | ( | int | product_group | ) | const |
|
protected |
| float XUSD_RenderSettings::pixelAspect | ( | const XUSD_RenderProduct * | p | ) | const |
|
inline |
Get the render settings.
Definition at line 387 of file XUSD_RenderSettings.h.
| void XUSD_RenderSettings::printSettings | ( | ) | const |
Print out the settings to UT_ErrorLog.
|
inline |
Render Products
Definition at line 411 of file XUSD_RenderSettings.h.
|
inline |
Render Products
Definition at line 412 of file XUSD_RenderSettings.h.
Properties from the render settings which cannot be overridden per product.
Definition at line 391 of file XUSD_RenderSettings.h.
Definition at line 473 of file XUSD_RenderSettings.h.
|
inline |
Definition at line 407 of file XUSD_RenderSettings.h.
| GfVec2i XUSD_RenderSettings::res | ( | const XUSD_RenderProduct * | p | ) | const |
| bool XUSD_RenderSettings::resolveProducts | ( | const UsdStageRefPtr & | usd, |
| const XUSD_RenderSettingsContext & | ctx, | ||
| HUSD_CustomProductAction | custom_product_action | ||
| ) |
Resolve products/vars.
|
protected |
| double XUSD_RenderSettings::shutterClose | ( | const XUSD_RenderProduct * | p | ) | const |
| double XUSD_RenderSettings::shutterOpen | ( | const XUSD_RenderProduct * | p | ) | const |
|
static |
Given a set of AOV names/descriptors, split them into two mutially exclusive sets. The set of all AOVs which generate a color buffer, and the set of AOVs which don't (e.g. depth, normal or velocity).
|
virtual |
| bool XUSD_RenderSettings::updateFrame | ( | const UsdStageRefPtr & | usd, |
| XUSD_RenderSettingsContext & | ctx, | ||
| HUSD_CustomProductAction | custom_product_action | ||
| ) |
Update the frame.
|
static |
Update HoudiniImageFilterList.
| int XUSD_RenderSettings::xres | ( | const XUSD_RenderProduct * | p | ) | const |
| int XUSD_RenderSettings::yres | ( | const XUSD_RenderProduct * | p | ) | const |
|
protected |
Definition at line 525 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 533 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 532 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 537 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 536 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 539 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 531 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 538 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 535 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 528 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 527 of file XUSD_RenderSettings.h.
Definition at line 534 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 530 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 526 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 529 of file XUSD_RenderSettings.h.
|
protected |
Definition at line 524 of file XUSD_RenderSettings.h.