50 #ifndef SKELETONOBJECTDATA_HH
51 #define SKELETONOBJECTDATA_HH
55 #define OBJECTDATA_SKELETON "Skeleton Object Data"
88 int skin(
unsigned int _index ){
89 if ( _index >= skins_.size() )
91 return skins_[_index];
106 for(
unsigned int i=0; i < skins_.size(); i++)
107 if ( skins_[i] == _objectId )
110 skins_.push_back(_objectId);
118 for(
unsigned int i=0; i < skins_.size(); i++)
119 if ( skins_[i] == _objectId ){
120 skins_.erase( skins_.begin() + i );
124 std::cerr <<
"Cannot remove skin with object id:" << _objectId <<
". Not found!" << std::endl;
136 std::vector< int > skins_;
139 #endif //SKELETONOBJECTDATA_HH
void clearSkins()
Remove all skins from the skeleton.
PerObjectData * copyPerObjectData()
Copy Function.
void removeSkin(int _objectId)
Remove a skin from the skeleton.
unsigned int skinCount()
Get the number of associated skins.
void addSkin(int _objectId)
Add a skin to the skeleton.
PerObjectData()
You have to provide your own constructor for your object.
int skin(unsigned int _index)
Get the skin with given index (0 <= _index < skinCount())
Data object attached to the skeleton.