载入中...
搜索中...
未找到
eve::animation::AnimImporter类 参考

Animation import helpers. 更多...

#include <AnimImporter.h>

静态 Public 成员函数

static AnimSkeleton * loadSkeleton (const aiScene *scene)
 Build skeleton from the scene node hierarchy (depth-first).
 
static AnimClip * loadClip (const aiScene *scene, const AnimSkeleton *skeleton, int animIndex=0)
 Load clip by index; maps node-name channels onto skeleton bones.
 
static AnimSkeleton * loadSkeletonFromModel (const model3d::ModelData *model)
 ModelData wrappers (AnimImporterModel.cpp; requires model3d).
 
static AnimClip * loadClipFromModel (const model3d::ModelData *model, const AnimSkeleton *skeleton, int animIndex=0)
 Loads clip from model.
 
static int getAnimationCountFromModel (const model3d::ModelData *model)
 Returns the animation count from model.
 
static std::string getAnimationNameFromModel (const model3d::ModelData *model, int animIndex)
 Returns the animation name from model.
 
static int getAnimationCount (const aiScene *scene)
 Assimp scene helpers (AnimImporterAssimp.cpp; requires model3d).
 
static std::string getAnimationName (const aiScene *scene, int animIndex)
 Returns the animation name.
 
static std::string exportAnimationFixtureText (const AnimSkeleton *skeleton, const AnimClip *clip)
 Serialize skeleton + clip to a compact text format (no mesh). Used to ship Mixamo-derived test fixtures without redistributing skins.
 
static void importAnimationFixtureText (const std::string &text, AnimSkeleton **skeletonOut, AnimClip **clipOut)
 Load skeleton+clip from fixture text (new'd; caller owns).
 
static void importAnimationFixtureTextFile (const std::string &path, AnimSkeleton **skeletonOut, AnimClip **clipOut)
 Load from an *.anim.txt fixture path.
 

详细描述

Animation import helpers.

Compact *.anim.txt fixtures (export/import*) always link with the animation module. Assimp aiScene / ModelData loaders live in optional bridge TUs (AnimImporterAssimp.cpp, AnimImporterModel.cpp) compiled only when OPTIONAL_DEPS model3d is present.

在文件 AnimImporter.h 第 30 行定义.

成员函数说明

◆ exportAnimationFixtureText()

◆ getAnimationCount()

int eve::animation::AnimImporter::getAnimationCount ( const aiScene *  scene)
static

Assimp scene helpers (AnimImporterAssimp.cpp; requires model3d).

在文件 AnimImporterAssimp.cpp 第 116 行定义.

引用了 scene.

被这些函数引用 getAnimationCountFromModel(), getAnimationName() , 以及 loadClip().

◆ getAnimationCountFromModel()

int eve::animation::AnimImporter::getAnimationCountFromModel ( const model3d::ModelData *  model)
static

Returns the animation count from model.

在文件 AnimImporterModel.cpp 第 19 行定义.

引用了 getAnimationCount() , 以及 model.

◆ getAnimationName()

std::string eve::animation::AnimImporter::getAnimationName ( const aiScene *  scene,
int  animIndex 
)
static

Returns the animation name.

在文件 AnimImporterAssimp.cpp 第 121 行定义.

引用了 a, getAnimationCount() , 以及 scene.

被这些函数引用 getAnimationNameFromModel().

◆ getAnimationNameFromModel()

std::string eve::animation::AnimImporter::getAnimationNameFromModel ( const model3d::ModelData *  model,
int  animIndex 
)
static

Returns the animation name from model.

在文件 AnimImporterModel.cpp 第 23 行定义.

引用了 getAnimationName() , 以及 model.

◆ importAnimationFixtureText()

void eve::animation::AnimImporter::importAnimationFixtureText ( const std::string &  text,
AnimSkeleton **  skeletonOut,
AnimClip **  clipOut 
)
static

Load skeleton+clip from fixture text (new'd; caller owns).

在文件 AnimImporter.cpp 第 69 行定义.

引用了 clip, d, idx, line, name, parent, px, py, pz, qw, qx, qy, qz, r, sx, sy, sz, t, tag, text, v, w, x, y , 以及 z.

被这些函数引用 importAnimationFixtureTextFile().

◆ importAnimationFixtureTextFile()

void eve::animation::AnimImporter::importAnimationFixtureTextFile ( const std::string &  path,
AnimSkeleton **  skeletonOut,
AnimClip **  clipOut 
)
static

◆ loadClip()

AnimClip * eve::animation::AnimImporter::loadClip ( const aiScene *  scene,
const AnimSkeleton *  skeleton,
int  animIndex = 0 
)
static

Load clip by index; maps node-name channels onto skeleton bones.

备注
Requires the model3d/Assimp bridge TU.

在文件 AnimImporterAssimp.cpp 第 77 行定义.

引用了 bone, c, clip, eve::animation::AnimSkeleton::findBone(), getAnimationCount(), scene , 以及 eve::animation::AnimClip::setDuration().

被这些函数引用 loadClipFromModel().

◆ loadClipFromModel()

AnimClip * eve::animation::AnimImporter::loadClipFromModel ( const model3d::ModelData *  model,
const AnimSkeleton *  skeleton,
int  animIndex = 0 
)
static

Loads clip from model.

在文件 AnimImporterModel.cpp 第 13 行定义.

引用了 loadClip() , 以及 model.

被这些函数引用 eve::animation::Animation::newClipFromModel().

◆ loadSkeleton()

AnimSkeleton * eve::animation::AnimImporter::loadSkeleton ( const aiScene *  scene)
static

Build skeleton from the scene node hierarchy (depth-first).

备注
Requires the model3d/Assimp bridge TU.

在文件 AnimImporterAssimp.cpp 第 63 行定义.

引用了 order , 以及 scene.

被这些函数引用 loadSkeletonFromModel().

◆ loadSkeletonFromModel()

AnimSkeleton * eve::animation::AnimImporter::loadSkeletonFromModel ( const model3d::ModelData *  model)
static

ModelData wrappers (AnimImporterModel.cpp; requires model3d).

在文件 AnimImporterModel.cpp 第 8 行定义.

引用了 loadSkeleton() , 以及 model.

被这些函数引用 eve::animation::Animation::newSkeletonFromModel() , 以及 eve::avatar::VrmRuntime::prepare().


该类的文档由以下文件生成: