| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
ArmatureDataManager类 参考
格式化和管理骨骼动画的配置和骨骼动画 更多…
#include
类 ArmatureDataManager 继承关系图:
| ## Public 成员函数 | |
| virtual bool | init () |
| 初始化ArmatureDataManager 更多… | |
| void | addArmatureData (const std::string &id, ArmatureData armatureData, const std::string &configFilePath="") |
| 添加骨骼动画数据 更多… | |
| ArmatureData | getArmatureData (const std::string &id) |
| 获取骨骼动画数据 更多… | |
| void | removeArmatureData (const std::string &id) |
| 移除骨骼动画数据 更多… | |
| void | addAnimationData (const std::string &id, AnimationData animationData, const std::string &configFilePath="") |
| 添加骨骼动画数据 更多… | |
| AnimationData | getAnimationData (const std::string &id) |
| 从 _animationDatas(Dictionary)中获取骨骼动画数据 更多… | |
| void | removeAnimationData (const std::string &id) |
| 移除骨骼动画数据 更多… | |
| void | addTextureData (const std::string &id, TextureData textureData, const std::string &configFilePath="") |
| 添加纹理数据id 更多… | |
| TextureData | getTextureData (const std::string &id) |
| 获取纹理数据 更多… | |
| void | removeTextureData (const std::string &id) |
| 移除纹理数据 更多… | |
| void | addArmatureFileInfo (const std::string &configFilePath) |
| 添加ArmatureFileInfo,由ArmatureDataManager管理 更多… | |
| void | addArmatureFileInfoAsync (const std::string &configFilePath, cocos2d::Ref target, cocos2d::SEL_SCHEDULE selector) |
| 添加ArmatureFileInfo, 由ArmatureDataManager管理 将会在新的线程中加载 更多… | |
| void | addArmatureFileInfo (const std::string &imagePath, const std::string &plistPath, const std::string &configFilePath) |
| 添加ArmatureFileInfo, 由ArmatureDataManager管理 更多… | |
| void | addArmatureFileInfoAsync (const std::string &imagePath, const std::string &plistPath, const std::string &configFilePath, cocos2d::Ref target, cocos2d::SEL_SCHEDULE selector) |
| 添加ArmatureFileInfo, 由ArmatureDataManager管理 将会在新的线程中加载 更多… | |
| void | addSpriteFrameFromFile (const std::string &plistPath, const std::string &imagePath, const std::string &configFilePath="") |
| 添加精灵到CCSpriteFrameCache中, 它将保存现实的名称和对应的图片名称 更多… | |
| virtual void | removeArmatureFileInfo (const std::string &configFilePath) |
| bool | isAutoLoadSpriteFile () |
| 判断是否需要自动加载精灵的图片 更多… | |
| const cocos2d::Map < std::string, ArmatureData > & | getArmatureDatas () const |
| const cocos2d::Map < std::string, AnimationData > & | getAnimationDatas () const |
| const cocos2d::Map < std::string, TextureData > & | getTextureDatas () const |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static CC_DEPRECATED_ATTRIBUTE ArmatureDataManager | sharedArmatureDataManager () |
| static CC_DEPRECATED_ATTRIBUTE void | purge () |
| static ArmatureDataManager | getInstance () |
| static void | destroyInstance () |
| ## Protected 成员函数 | |
| void | addRelativeData (const std::string &configFilePath) |
| RelativeData * | getRelativeData (const std::string &configFilePath) |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
| ## 额外继承的成员函数 | |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
详细描述
格式化和管理骨骼动画的配置和骨骼动画
成员函数说明
| void addAnimationData | ( | const std::string & | id, |
| AnimationData * | animationData, | ||
| const std::string & | configFilePath = "" | ||
| ) |
添加骨骼动画数据
- 参数
id骨骼动画数据id
- 返回
- AnimationData *
| void addArmatureData | ( | const std::string & | id, |
| ArmatureData * | armatureData, | ||
| const std::string & | configFilePath = "" | ||
| ) |
添加骨骼动画数据
- 参数
id骨骼动画数据的id armatureDataArmatureData *
| void addArmatureFileInfo | ( | const std::string & | configFilePath | ) |
添加ArmatureFileInfo,由ArmatureDataManager管理
| void addArmatureFileInfo | ( | const std::string & | imagePath, |
| const std::string & | plistPath, | ||
| const std::string & | configFilePath | ||
| ) |
添加ArmatureFileInfo, 由ArmatureDataManager管理
| void addArmatureFileInfoAsync | ( | const std::string & | configFilePath, |
| cocos2d::Ref * | target, | ||
| cocos2d::SEL_SCHEDULE | selector | ||
| ) |
添加ArmatureFileInfo, 由ArmatureDataManager管理 将会在新的线程中加载
| void addArmatureFileInfoAsync | ( | const std::string & | imagePath, |
| const std::string & | plistPath, | ||
| const std::string & | configFilePath, | ||
| cocos2d::Ref * | target, | ||
| cocos2d::SEL_SCHEDULE | selector | ||
| ) |
添加ArmatureFileInfo, 由ArmatureDataManager管理 将会在新的线程中加载
| protected |
| void addSpriteFrameFromFile | ( | const std::string & | plistPath, |
| const std::string & | imagePath, | ||
| const std::string & | configFilePath = "" | ||
| ) |
添加精灵到CCSpriteFrameCache中, 它将保存现实的名称和对应的图片名称
| void addTextureData | ( | const std::string & | id, |
| TextureData * | textureData, | ||
| const std::string & | configFilePath = "" | ||
| ) |
添加纹理数据id
- 参数
id纹理id
- 返回
- TextureData *
| static |
| AnimationData* getAnimationData | ( | const std::string & | id | ) |
从 _animationDatas(Dictionary)中获取骨骼动画数据
- 参数
id骨骼动画数据id
- 返回
- AnimationData *
| const cocos2d::Map<std::string, AnimationData*>& getAnimationDatas | ( | ) | const |
| ArmatureData* getArmatureData | ( | const std::string & | id | ) |
获取骨骼动画数据
- 参数
id骨骼动画数据的id
- 返回
- ArmatureData *
| const cocos2d::Map<std::string, ArmatureData*>& getArmatureDatas | ( | ) | const |
| static |
| protected |
| TextureData* getTextureData | ( | const std::string & | id | ) |
获取纹理数据
- 参数
id要获取的纹理数据id
- 返回
- TextureData *
| const cocos2d::Map<std::string, TextureData*>& getTextureDatas | ( | ) | const |
| virtual |
初始化ArmatureDataManager
| bool isAutoLoadSpriteFile | ( | ) |
判断是否需要自动加载精灵的图片
| inlinestatic |
- 弃用:
- 用destoryInstance() 替换
| void removeAnimationData | ( | const std::string & | id | ) |
移除骨骼动画数据
- 参数
id骨骼动画数据id
| void removeArmatureData | ( | const std::string & | id | ) |
移除骨骼动画数据
- 参数
id骨骼动画数据的id
| virtual |
| void removeTextureData | ( | const std::string & | id | ) |
移除纹理数据
- 参数
id要获取的纹理id
| inlinestatic |
- 弃用:
- 用getInstance()替换
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/editor-support/cocostudio/CCArmatureDataManager.h
- cocostudio
- ArmatureDataManager
- 生成于 2014年 五月 29日 星期四 09:41:59 , 为 cocos2d-x使用
1.8.6
Public 成员函数 继承自 