00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef CAL_COREMESH_H
00012 #define CAL_COREMESH_H
00013
00014
00015 #include "cal3d/global.h"
00016
00017
00018 class CalCoreSubmesh;
00019
00020
00021 class CAL3D_API CalCoreMesh
00022 {
00023 public:
00024 CalCoreMesh();
00025 ~CalCoreMesh();
00026
00027 int addCoreSubmesh(CalCoreSubmesh *pCoreSubmesh);
00028 CalCoreSubmesh *getCoreSubmesh(int id);
00029 int getCoreSubmeshCount();
00030 std::vector<CalCoreSubmesh *>& getVectorCoreSubmesh();
00031 int addAsMorphTarget(CalCoreMesh *pCoreMesh);
00032 void scale(float factor);
00033 void setFilename(const std::string& filename);
00034 const std::string& getFilename(void);
00035 void setName(const std::string& name);
00036 const std::string& getName(void);
00037 void incRef();
00038 bool decRef();
00039
00040 private:
00041 std::vector<CalCoreSubmesh *> m_vectorCoreSubmesh;
00042 std::string m_name;
00043 std::string m_filename;
00044 int m_referenceCount;
00045 };
00046
00047 #endif