|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include <momentum/character/marker.h>#include <momentum/character/types.h>#include <momentum/common/filesystem.h>#include <momentum/io/file_save_options.h>#include <momentum/math/types.h>#include <fx/gltf.h>#include <span>#include <tuple>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| Character | momentum::loadGltfCharacter (const fx::gltf::Document &model) |
| Load a glTF character from a document. | |
| Character | momentum::loadGltfCharacter (const filesystem::path &gltfFilename) |
| Load a glTF character from a file path. | |
| Character | momentum::loadGltfCharacter (std::span< const std::byte > byteSpan) |
| Load a glTF character from a byte buffer. | |
| std::tuple< MotionParameters, IdentityParameters, float > | momentum::loadMotion (const filesystem::path &gltfFilename) |
| Load motion data from a glTF file. | |
| std::vector< int64_t > | momentum::loadMotionTimestamps (const filesystem::path &gltfFilename) |
| Load per-frame timestamps from a glTF file. | |
| std::tuple< Character, MatrixXf, JointParameters, float > | momentum::loadCharacterWithMotion (const filesystem::path &gltfFilename) |
| Load a glTF character with motion from a file path. | |
| std::tuple< Character, MatrixXf, JointParameters, float > | momentum::loadCharacterWithMotion (std::span< const std::byte > byteSpan) |
| Load a glTF character from a buffer. | |
| std::tuple< Character, MatrixXf, ModelParameters, float > | momentum::loadCharacterWithMotionModelParameterScales (std::span< const std::byte > byteSpan) |
| Load a glTF character with motion and apply scale parameters to the motion. | |
| std::tuple< Character, MatrixXf, ModelParameters, float > | momentum::loadCharacterWithMotionModelParameterScales (const filesystem::path &gltfFilename) |
| Load a glTF character with motion and apply scale parameters to the motion. | |
| std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > | momentum::loadCharacterWithSkeletonStates (std::span< const std::byte > byteSpan) |
| Load a glTF character with motion in the form of skeleton states. | |
| std::tuple< Character, std::vector< SkeletonState >, std::vector< float > > | momentum::loadCharacterWithSkeletonStates (const filesystem::path &gltfFilename) |
| Load a glTF character with motion in the form of skeleton states. | |
| std::tuple< MatrixXf, JointParameters, float > | momentum::loadMotionOnCharacter (const filesystem::path &gltfFilename, const Character &character) |
| Load motion from a glTF file and map it to a character. | |
| std::tuple< MatrixXf, JointParameters, float > | momentum::loadMotionOnCharacter (std::span< const std::byte > byteSpan, const Character &character) |
| Load motion from a buffer and map it to a character. | |
| MarkerSequence | momentum::loadMarkerSequence (const filesystem::path &filename) |
| Load a marker sequence from a glTF file. | |
| MarkerSequence | momentum::loadMarkerSequence (std::span< const std::byte > byteSpan) |
| Load a marker sequence from an in-memory glTF byte buffer. | |
| fx::gltf::Document | momentum::makeCharacterDocument (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, bool embedResource=true, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Create a glTF document from a character. | |
| void | momentum::saveGltfCharacter (const filesystem::path &filename, const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Save a character with motion to a glTF file. | |
| void | momentum::saveGltfCharacter (const filesystem::path &filename, const Character &character, float fps, std::span< const SkeletonState > skeletonStates, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions()) |
| Save a character with skeleton states to a glTF file. | |
| std::vector< std::byte > | momentum::saveCharacterToBytes (const Character &character, float fps=120.0f, const MotionParameters &motion={}, const IdentityParameters &offsets={}, std::span< const std::vector< Marker > > markerSequence={}, const FileSaveOptions &options=FileSaveOptions(), std::span< const int64_t > timestamps={}) |
| Save a character with motion to a byte buffer. | |