HDK
|
#include "pxr/pxr.h"
#include "pxr/usd/usdUtils/api.h"
#include "pxr/usd/sdf/declareHandles.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/usd/usd/stage.h"
#include "pxr/base/tf/envSetting.h"
#include "pxr/base/vt/dictionary.h"
Go to the source code of this file.
Macros | |
#define | USDUTILS_USDSTAGE_STATS |
Functions | |
PXR_NAMESPACE_OPEN_SCOPE | SDF_DECLARE_HANDLES (SdfLayer) |
TF_DECLARE_PUBLIC_TOKENS (UsdUtilsUsdStageStatsKeys, USDUTILS_API, USDUTILS_USDSTAGE_STATS) | |
USDUTILS_API UsdStageRefPtr | UsdUtilsComputeUsdStageStats (const std::string &rootLayerPath, VtDictionary *stats) |
USDUTILS_API size_t | UsdUtilsComputeUsdStageStats (const UsdStageWeakPtr &stage, VtDictionary *stats) |
Collection of module-scoped utilities for introspecting a given USD stage. Future additions might include full-on dependency extraction, queries like "Does this stage contain this asset?", "usd grep" functionality, etc.
Definition in file introspection.h.
#define USDUTILS_USDSTAGE_STATS |
Definition at line 48 of file introspection.h.
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES | ( | SdfLayer | ) |
TF_DECLARE_PUBLIC_TOKENS | ( | UsdUtilsUsdStageStatsKeys | , |
USDUTILS_API | , | ||
USDUTILS_USDSTAGE_STATS | |||
) |
USDUTILS_API UsdStageRefPtr UsdUtilsComputeUsdStageStats | ( | const std::string & | rootLayerPath, |
VtDictionary * | stats | ||
) |
Opens the given layer on a USD stage and collects various stats. The stats are populated in the dictionary-valued output param stats
.
The set of stats include:
Returns the stage that was opened.
The "prototypes" subdictionary is populated only if the stage has one or more instanced models.
USDUTILS_API size_t UsdUtilsComputeUsdStageStats | ( | const UsdStageWeakPtr & | stage, |
VtDictionary * | stats | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Computes stats on an already opened USD stage.
Returns the total number of prims on the stage, including active, inactive. pure overs, prims inside prototypes etc.