00001
00002
00003
00004 #ifndef FixatorFrameClass
00005 #define FixatorFrameClass
00006
00007 #include "Vector3.H"
00008
00009 struct Coords {
00010 Vector3 centreCoords;
00011 Vector3 frameCoords[6];
00012 Vector3 jointCoords[6];
00013 Vector3 boneCoords[2];
00014 };
00015
00016 class FixatorFrame
00017 {
00018 public:
00019 FixatorFrame();
00020 void setParameters
00021 (int id, double innerRadius, double outerRadius,
00022 double thickness, double jointOffset, double jointSize);
00023 void setLocalFrameCoords(int jointId, Vector3 frameCoords);
00024 void setLocalBoneCoords(Vector3 end1, Vector3 end2);
00025 void transformLocal(Vector3 rotation, Vector3 translation);
00026 void transformGlobal(Vector3 rotation, Vector3 translation);
00027
00028 int id;
00029 double innerRadius, outerRadius, thickness, jointOffset, jointSize;
00030 Coords local, global;
00031 Vector3 rotation;
00032 };
00033
00034 #endif