|
|
virtual | ~Stage () |
| | Abstraction handle for casting to underlying implementation type.
|
| |
|
bool | isValid () const |
| | True if Stage::Impl is valid (has a valid object binding.)
|
| |
|
| operator bool () const |
| |
| Stage::Handle * | getUsdStageRefPtr (int usd_version) |
| |
|
const Stage::Handle * | getUsdStageRefPtr (int usd_version) const |
| |
|
void | setEditTarget (const LayerRef &edit_layer) |
| | Sets the edit target layer of the stage.
|
| |
|
LayerRef | getRootLayer () const |
| | Returns the root layer of the stage.
|
| |
|
LayerRef | getSessionLayer () |
| | Returns the session layer of the stage.
|
| |
|
Prim | getRootPrim () const |
| | Returns the root prim of the stage.
|
| |
|
Prim | getPrimAtPath (const Path &path) const |
| | Returns the prim at path.
|
| |
| size_t | getPrimPaths (PathArray &prim_paths) const |
| |
| template<class T > |
| PathArray | findPrimsOfType (const PathArray &primPaths, bool matchDescendents=true) const |
| |
| template<class T > |
| std::vector< T > | findDescendentPrims (const PathArray &primPaths) const |
| |
| void | setPopulationMask (const PathArray &primPaths) |
| |
| PrimRange | traverse () const |
| |
|
PrimRange | traverse (const Prim::FlagsPredicate &mask) const |
| | Build a PrimRange traverser using a specific predicate mask.
|
| |
|
PrimRange | traverseAll () const |
| | Build a PrimRange traverser using the Prim::AllPrimsPredicate (ie no filtering.)
|
| |
|
fdk::Box3d | getWorldBbox (const fdk::TimeValue &time) const |
| | Compute the world-space bounding-box for the entire stage at a specific time (required.)
|
| |
|
void | setMetersPerUnit (double metersPerUnit) |
| | Set the metersPerUnit metadata tag on the stage.
|
| |
|
bool | hasMetersPerUnit () const |
| | Is the metersPerUnit metadata tag authored on the stage?
|
| |
| double | getMetersPerUnit () const |
| |
|
usg::LayerRef | flatten (bool addComment=true) |
| | Returns the flattened stage as a single anonymous layer.
|
| |
|
usg::LayerRef | flattenLayerStack () |
| | Returns the flattened stage as a single anonymous layer. Unlike 'flatten', this preserves variants and some composition arcs.
|
| |
|
bool | exportToFile (const std::string &filepath, bool addComment=true, const FileFormatArgs &fileFormatArgs=FileFormatArgs()) |
| | Exports the flattened stage to a file.
|
| |
|
bool | exportToString (std::string &text, bool addComment=true) |
| | Exports the flattened stage to a string.
|
| |
|
Path | getDefaultParentPath () const |
| | Return the attribute representing the 'default parent' from the top-most (strongest) layer.
|
| |
|
void | setStartTimeCode (fdk::TimeValue time) |
| | Start of active time sample range.
|
| |
|
fdk::TimeValue | getStartTimeCode () |
| |
|
void | setEndTimeCode (fdk::TimeValue time) |
| | End of active time sample range.
|
| |
|
fdk::TimeValue | getEndTimeCode () |
| |
|
void | setTimeCodesPerSecond (double timeCodesPerSecond) |
| | Falls back to framesPerSecond, then to a default value of 24.0.
|
| |
|
double | getTimeCodesPerSecond () const |
| |
|
void | setFramesPerSecond (double fps) |
| |
|
double | getFramesPerSecond () const |
| |
|
void | printReport (std::ostream &o, bool print_contents=true) const |
| |
|
| Stage (const Stage::Impl &) |
| | Create a stage wrapper from a Stage::Impl.
|
| |
|
Stage::Impl * | impl () |
| |
|
const Stage::Impl * | impl () const |
| |
|
void | setComposeState (const fdk::Hash &compose_state) |
| | Set the compose state hash explicitly (usually passed to the latest stage Create()).
|
| |
|
fdk::Hash | composeState () const |
| | Get the compose state hash currently assigned to the stage.
|
| |
|
void | setProcessState (const fdk::Hash &process_state) |
| | Set hashes to help track the lastest modify state affecting the stage.
|
| |
|
fdk::Hash | processState () const |
| |
|
void | setEditState (const fdk::Hash &edit_state) |
| | Set hashes to help track the latest edit state of the stage.
|
| |
|
fdk::Hash | editState () const |
| |
| void | setRootState (const fdk::Hash &root_state) |
| |
|
fdk::Hash | rootState () const |
| |
| void | setPreEditCacheMetadata (const std::string &cache_layer_id, uint64_t cache_hash) |
| |
|
bool | getPreEditCacheMetadata (std::string &cache_layer_id, uint64_t &cache_layer_hash) |
| | Retrieve the current cache layer metadata values, returning true on success. For internal use only.
|
| |
| void | retrievePreEditCacheProperties (const LayerRef &cache_layer, const fdk::TimeValue &time=fdk::defaultTimeValue()) |
| |
class Stage The wrapper class for a reference to a stage. When passing stage references, use LayerRef instead of Layer as that provides a pointer-like interface with access via the -> operator.