All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
stageCache.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USD_UTILS_STAGE_CACHE_H
8#define PXR_USD_USD_UTILS_STAGE_CACHE_H
9
12
13#include "pxr/pxr.h"
14#include "pxr/usd/usdUtils/api.h"
15#include "pxr/usd/usd/stageCache.h"
16
18#include "pxr/base/tf/token.h"
19
20#include <string>
21#include <vector>
22
23PXR_NAMESPACE_OPEN_SCOPE
24
25
27
35public:
36
38 USDUTILS_API
39 static UsdStageCache &Get();
40
45 USDUTILS_API
47 const TfToken& modelName,
48 const std::vector<std::pair<std::string, std::string> > &variantSelections);
49};
50
51
52PXR_NAMESPACE_CLOSE_SCOPE
53
54#endif /* PXR_USD_USD_UTILS_STAGE_CACHE_H */
A scene description container that can combine with other such containers to form simple component as...
Definition: layer.h:84
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
A strongly concurrency safe collection of UsdStageRefPtr s, enabling sharing across multiple clients ...
Definition: stageCache.h:68
The UsdUtilsStageCache class provides a simple interface for handling a singleton usd stage cache for...
Definition: stageCache.h:34
static USDUTILS_API SdfLayerRefPtr GetSessionLayerForVariantSelections(const TfToken &modelName, const std::vector< std::pair< std::string, std::string > > &variantSelections)
Given variant selections as a vector of pairs (vector in case order matters to the client),...
static USDUTILS_API UsdStageCache & Get()
Returns the singleton stage cache.
Standard pointer typedefs.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:72
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...