- Cal3D 0.11 API Reference -

skeleton.h
1//****************************************************************************//
2// skeleton.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_SKELETON_H
12#define CAL_SKELETON_H
13
14#include "cal3d/global.h"
15
16 class CalCoreSkeleton;
17 class CalCoreModel;
18 class CalBone;
19
20 class CAL3D_API CalSkeleton
21{
22 public:
23 CalSkeleton(CalCoreSkeleton* pCoreSkeleton);
24 ~CalSkeleton();
25
26 void calculateState();
27 void clearState();
28 bool create(CalCoreSkeleton *pCoreSkeleton);
29 CalBone *getBone(int boneId) const;
30 CalCoreSkeleton *getCoreSkeleton() const;
31 std::vector<CalBone *>& getVectorBone();
32 void lockState();
33 void getBoneBoundingBox(float *min, float *max);
34 void calculateBoundingBoxes();
35
36 // DEBUG-CODE
37 int getBonePoints(float *pPoints);
38 int getBonePointsStatic(float *pPoints);
39 int getBoneLines(float *pLines);
40 int getBoneLinesStatic(float *pLines);
41
42 private:
43 CalCoreSkeleton *m_pCoreSkeleton;
44 std::vector<CalBone *> m_vectorBone;
45 bool m_isBoundingBoxesComputed;
46};
47
48#endif
49
50//****************************************************************************//
CalBone
Definition bone.h:29
CalCoreModel
Definition coremodel.h:26
CalCoreSkeleton
Definition coreskeleton.h:24
CalSkeleton::getBoneBoundingBox
void getBoneBoundingBox(float *min, float *max)
Calculates axis aligned bounding box of skeleton bones.
Definition skeleton.cpp:188
CalSkeleton::lockState
void lockState()
Locks the state of the skeleton instance.
Definition skeleton.cpp:170
CalSkeleton::getVectorBone
std::vector< CalBone * > & getVectorBone()
Returns the bone vector.
Definition skeleton.cpp:158
CalSkeleton::clearState
void clearState()
Clears the state of the skeleton instance.
Definition skeleton.cpp:104
CalSkeleton::getBone
CalBone * getBone(int boneId) const
Provides access to a bone.
Definition skeleton.cpp:128
CalSkeleton::CalSkeleton
CalSkeleton(CalCoreSkeleton *pCoreSkeleton)
Constructs the skeleton instance.
Definition skeleton.cpp:32
CalSkeleton::calculateState
void calculateState()
Calculates the state of the skeleton instance.
Definition skeleton.cpp:84
CalSkeleton::calculateBoundingBoxes
void calculateBoundingBoxes()
Calculates bounding boxes.
Definition skeleton.cpp:237
CalSkeleton::getCoreSkeleton
CalCoreSkeleton * getCoreSkeleton() const
Provides access to the core skeleton.
Definition skeleton.cpp:144

Generated by The Cal3D Team with Doxygen 1.15.0