Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::USDReader Class Reference

Trax reader for a USD stage. More...

#include <C:/Trend/Development/Trax3/Code/usd/SupportUSD_Reader.h>

Inheritance diagram for trax::USDReader:

Public Member Functions

 USDReader (pxr::UsdStageRefPtr pStage)
std::vector< std::shared_ptr< TrackSystem > > Read ()
std::shared_ptr< TrackSystemReadTrackSystem (const pxr::UsdPrim &trackSystem)
 Called to reads a track system from and USD definition.
pxr::UsdStageRefPtr GetStage () const noexcept

Static Public Member Functions

static spat::Frame< dim::Length, dim::OneReadTransformationNormalized (const pxr::UsdPrim &prim, double metersPerUnit)
static spat::Frame< dim::Length, dim::OneReadTransformation (const pxr::UsdPrim &prim, double metersPerUnit)
static spat::Frame< dim::Length, dim::OneReadTransformation (const pxr::UsdAttribute &xformOpOrderAttribute, double metersPerUnit)
static spat::Frame< dim::Length, dim::OneReadChildFrame (const pxr::UsdPrim &prim)
static spat::Frame< dim::Length, dim::OneReadFrame (const pxr::UsdAttribute &opAttribute, double metersPerUnit)

Protected Member Functions

virtual std::shared_ptr< TrackBuilderReadTrack (const pxr::UsdPrim &track, double metersPerUnit)
virtual TrackBuilder::TrackType ReadTrackType (const pxr::UsdPrim &track) const noexcept
virtual std::shared_ptr< TrackBuilderMakeTrack (TrackBuilder::TrackType type) const noexcept

Protected Attributes

std::shared_ptr< TrackSystemm_pTrackSystem

Detailed Description

Trax reader for a USD stage.

The USD reader reads trax objects from an USD stage.

Member Function Documentation

◆ ReadTrackSystem()

std::shared_ptr< TrackSystem > trax::USDReader::ReadTrackSystem ( const pxr::UsdPrim & trackSystem)

Called to reads a track system from and USD definition.

Returns
Pointer to a newly created track system.

The documentation for this class was generated from the following file: