Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

vpjointmotion.cpp

Go to the documentation of this file.
00001 //deprecated
00003 //
00004 //  PROJECT.....: vpat - Creating Virtual Patients
00005 //  RESPONSIBLE.: Carla Freitas e Luciana Nedel
00006 //
00007 //  FILE........: vpjointmotion.cpp
00008 //  DESCRIPTION.: Contain the VPJointMotion class definitions.
00009 //
00010 //  AUTHOR......: Anderson Maciel
00011 //  DATE........: June/06/2001
00012 //  DESCRIPTION.: Methods definition.
00013 //
00015 #include    <vpvector3d.h>
00016 #include    <stdio.h>
00017 #include <vpjointmotion.h>
00018 
00019 #include    <string>
00020 using namespace std;
00021 
00022 
00023 VPJointMotion::VPJointMotion(){
00024 
00025   jointName = "";
00026   motionType = FLEX;
00027   t0 = 0.0;
00028   tf = 0.0;
00029   parameter = 0.0;
00030   deltaS = 0.0;
00031 }
00032 
00033 VPJointMotion::VPJointMotion( string jn, int mt, float tini, float tfin, float param ){
00034 
00035   jointName = jn;
00036   motionType = mt;
00037   t0 = tini;
00038   tf = tfin;
00039   parameter = param;
00040   deltaS = 0.0;
00041 }
00042 
00043 VPJointMotion::~VPJointMotion(){
00044 }
00045 
00046 string
00047 VPJointMotion::vpGetJointName(){
00048   return jointName;
00049 }
00050 
00051 int
00052 VPJointMotion::vpGetMotionType(){
00053   return motionType;
00054 }
00055 
00056 float
00057 VPJointMotion::vpGetTimeIni(){
00058   return t0;
00059 }
00060 
00061 float
00062 VPJointMotion::vpGetTimeFin(){
00063   return tf;
00064 }
00065 
00066 float
00067 VPJointMotion::vpGetParameter(){
00068   return parameter;
00069 }
00070 
00071 float
00072 VPJointMotion::vpGetDeltaS(){
00073   return deltaS;
00074 }
00075 
00076 void
00077 VPJointMotion::vpSetJointName( string s ){
00078   jointName = s;
00079 }
00080 
00081 void
00082 VPJointMotion::vpSetMotionType( int mt ){
00083   motionType = mt;
00084 }
00085 
00086 void
00087 VPJointMotion::vpSetTimeIni( float ti ){
00088   t0 = ti;
00089 }
00090 
00091 void
00092 VPJointMotion::vpSetTimeFin( float tfin ){
00093   tf = tfin;
00094 }
00095 
00096 void
00097 VPJointMotion::vpSetParameter( float param ){
00098   parameter = param;
00099 }
00100 
00101 void
00102 VPJointMotion::vpSetDeltaS( float ds ){
00103   deltaS = ds;
00104 }

Generated on Tue Sep 6 10:00:04 2005 for VPAT by  doxygen 1.4.4