usdrt::UsdStage

Defined in usdrt/scenegraph/usd/usd/impl/usd_decl.h

class usdrt::UsdStage

Public Types

enum InitialLoadSet

Values:

enumerator LoadAll

Load all loadable prims.

enumerator LoadNone

Load no loadable prims.

Public Functions

~UsdStage(void)
UsdPrim GetPrimAtPath(const SdfPath &path) const
UsdPrim GetDefaultPrim() const
UsdPrim DefinePrim(const SdfPath &path, const TfToken &typeName = TfToken())
UsdPrim GetPseudoRoot() const
bool RemovePrim(const SdfPath &path) const
UsdAttribute GetAttributeAtPath(const SdfPath &path) const
UsdRelationship GetRelationshipAtPath(const SdfPath &path) const
UsdPrimRange Traverse()
carb::flatcache::UsdStageId GetStageId() const
carb::flatcache::StageInProgressId GetStageInProgressId() const
bool OwnsStageWithHistory() const
void SetStageWithHistoryOwnership(bool isOwner)
void WriteToStage() const
void WriteToLayer(const std::string &filePath) const
bool HasPrimAtPath(const SdfPath &path) const

Public Members

omni::core::ObjectPtr<usdrt::IRtStage> m_stage
bool m_attached = false

Public Static Functions

static UsdStageRefPtr CreateNew(const std::string &identifier, InitialLoadSet load = LoadAll)
static UsdStageRefPtr Open(const std::string &filePath, InitialLoadSet load = LoadAll)
static UsdStageRefPtr CreateInMemory(const std::string &identifier, InitialLoadSet load = LoadAll)
static UsdStageRefPtr Attach(carb::flatcache::UsdStageId stageId, carb::flatcache::StageInProgressId stageInProgressId = {0})
static bool StageWithHistoryExists(carb::flatcache::UsdStageId stageId)