18#include <pxr/usd/usd/stage.h>
21static const Interface_ID IUSDStageProvider_ID(0x6be93509, 0x325e2773);
24constexpr const auto REFMSG__IUSDSTAGEPROVIDER_MSGBASE = REFMSG_USER + 9560;
25constexpr const auto REFMSG_IUSDSTAGEPROVIDER_STAGE_CHANGED = REFMSG__IUSDSTAGEPROVIDER_MSGBASE + 1;
31 fnIdGetUsdPreviewSurfaceMaterials,
32 fnIdSetPrimvarChannelMappingDefaults,
33 fnIdSetPrimvarChannelMapping,
34 fnIdGetPrimvarChannel,
36 fnIdGetMappedPrimvars,
37 fnIdClearMappedPrimvars
52 FN_1(fnIdGetUsdPreviewSurfaceMaterials, TYPE_MTL, GetUsdPreviewSurfaceMaterials, TYPE_BOOL);
53 VFN_0(fnIdSetPrimvarChannelMappingDefaults, SetPrimvarChannelMappingDefaults);
54 VFN_2(fnIdSetPrimvarChannelMapping, SetPrimvarChannelMapping, TYPE_STRING, TYPE_VALUE);
55 FN_1(fnIdGetPrimvarChannel, TYPE_VALUE, GetPrimvarChannel, TYPE_STRING);
56 FN_0(fnIdGetMappedPrimvars, TYPE_STRING_TAB_BV, GetMappedPrimvars);
57 FN_1(fnIdIsMappedPrimvar, TYPE_BOOL, IsMappedPrimvar, TYPE_STRING);
58 VFN_0(fnIdClearMappedPrimvars, ClearMappedPrimvars);
68 virtual void SetRootLayer(
const wchar_t* rootLayer,
const wchar_t* stageMask) = 0;
71 virtual void SetRootLayerMXS(
const wchar_t* rootLayer,
const wchar_t* stageMask) = 0;
74 virtual Mtl* GetUsdPreviewSurfaceMaterials(
bool update) = 0;
77 virtual void SetPrimvarChannelMappingDefaults() = 0;
80 virtual void SetPrimvarChannelMapping(
const wchar_t* primvarName, Value* channel) = 0;
83 virtual Value* GetPrimvarChannel(
const wchar_t* primvarName) = 0;
86 virtual Tab<const wchar_t*> GetMappedPrimvars()
const = 0;
89 virtual bool IsMappedPrimvar(
const wchar_t* primvarName) = 0;
92 virtual void ClearMappedPrimvars() = 0;
Exposes an interface for proxies able to provide a USDStage.
Definition: IUSDStageProvider.h:44
virtual void Reload()=0
Reload all layers of the stage held by this provider.
virtual void SetRootLayer(const wchar_t *rootLayer, const wchar_t *stageMask)=0
Set the root layer and mask of the stage held by this provider.
virtual END_FUNCTION_MAP pxr::UsdStageWeakPtr GetUSDStage()=0
Return a weak pointer to the stage held by this provider.
virtual void SetRootLayerMXS(const wchar_t *rootLayer, const wchar_t *stageMask)=0
Set the root layer and mask of the stage held by this provider. MXS function.