11#ifndef CAL_CORESKELETON_H
12#define CAL_CORESKELETON_H
14#include "cal3d/global.h"
15#include "cal3d/vector.h"
16#include "cal3d/refcounted.h"
17#include "cal3d/refptr.h"
33 void calculateState();
35 const CalCoreBone *getCoreBone(
int coreBoneId)
const;
36 CalCoreBone *getCoreBone(
const std::string& strName);
37 const CalCoreBone *getCoreBone(
const std::string& strName)
const;
38 int getCoreBoneId(
const std::string& strName)
const;
39 bool mapCoreBoneName(
int coreBoneId,
const std::string& strName);
40 std::vector<int>& getVectorRootCoreBoneId();
41 const std::vector<int>& getVectorRootCoreBoneId()
const;
42 std::vector<CalCoreBone *>& getVectorCoreBone();
43 const std::vector<CalCoreBone *>& getVectorCoreBone()
const;
45 void scale(
float factor);
46 unsigned int getNumCoreBones()
const {
return (
unsigned int ) m_vectorCoreBone.size(); }
47 void setSceneAmbientColor(
CalVector const & color );
48 void getSceneAmbientColor(
CalVector & color )
const;
49 void setName(
const std::string& name);
50 const std::string& getName(
void)
const;
53 std::vector<CalCoreBone *> m_vectorCoreBone;
54 std::map< std::string, int > m_mapCoreBoneNames;
55 std::vector<int> m_vectorRootCoreBoneId;
Definition: corebone.h:35
Definition: coremodel.h:26
Definition: coreskeleton.h:25
The vector class.
Definition: vector.h:37
Derive from RefCounted to make your class have reference-counted lifetime semantics.
Definition: refcounted.h:29
A container-safe smart pointer used for refcounted classes.
Definition: refptr.h:11