7#ifndef USDPHYSICS_PARSE_UTILS_H
8#define USDPHYSICS_PARSE_UTILS_H
14#include "pxr/usd/usdGeom/xformCache.h"
15#include "pxr/usd/sdf/path.h"
17#include "pxr/usd/usdPhysics/api.h"
21PXR_NAMESPACE_OPEN_SCOPE
95 const std::vector<SdfPath>& includePaths,
98 const std::vector<SdfPath>* excludePaths =
nullptr,
100 const std::vector<SdfPath>* simulationOwners =
nullptr);
103PXR_NAMESPACE_CLOSE_SCOPE
Represents a range of contiguous elements.
Physics object type structure for type enumeration.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
std::function< void(UsdPhysicsObjectType type, TfSpan< const SdfPath > primPaths, TfSpan< const UsdPhysicsObjectDesc > objectDescs, const VtValue &userData)> UsdPhysicsReportFn
UsdPhysicsReportFn - report function that reports parsed data in a batched manner.
std::vector< TfToken > jointTokens
Custom joints to be reported by parsing.
std::vector< TfToken > instancerTokens
Custom physics instancers, these make sure that the subhierarchy is skipped and expected to be parsed...
std::vector< TfToken > shapeTokens
Custom shapes to be reported by parsing.
USDPHYSICS_API bool LoadUsdPhysicsFromRange(const UsdStageWeakPtr stage, const std::vector< SdfPath > &includePaths, UsdPhysicsReportFn reportFn, const VtValue &userData, const std::vector< SdfPath > *excludePaths=nullptr, const CustomUsdPhysicsTokens *customPhysicsTokens=nullptr, const std::vector< SdfPath > *simulationOwners=nullptr)
Load USD physics from a given list of paths.
Token lists for custom physics objects that allow for custom physics objects to be reported by parsin...