fixatorframe.h

Go to the documentation of this file.
00001 // Copyright 2007 John Storrs. All rights reserved. This work may be copied, 
00002 // modified and distributed under the terms of the GNU General Public License.
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;  // 0 | 1
00029       double innerRadius, outerRadius, thickness, jointOffset, jointSize;
00030       Coords local, global;
00031       Vector3 rotation;  // for reverse transformation only
00032 };
00033 
00034 #endif

Generated on Sat Mar 24 12:07:06 2007 for CircularFixator by  doxygen 1.4.6