Biomechanical Joint Model
 Author: Anderson Maciel

comeuniaxialjoint.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  **************************************************************************/
00020 
00022 //
00023 //  PROJECT.....: 
00024 //  RESPONSIBLE.: 
00025 //
00026 //  FILE........: comeuniaxialjoint.cpp
00027 //  DESCRIPTION.: 
00028 //
00029 //  AUTHOR......: Anderson Maciel
00030 //  DATE........: August/10/2000
00031 //  DESCRIPTION.: Methods implementation.
00032 //
00034 
00035 #include        <stdio.h>
00036 #include        <kinematics/comeuniaxialjoint.h>
00037 #include        <kinematics/comedof.h>
00038 
00039 COME_UniaxialJoint::COME_UniaxialJoint( void ):COME_Joint(){
00040 
00041         setParent( NULL );
00042         COME_Dof *d = new COME_Dof();
00043         d->setOwnerJoint( this );
00044         vpAddDof( d );
00045         vpMakeLim();
00046 }
00047 
00048 COME_UniaxialJoint::COME_UniaxialJoint( COME_Joint *parent ):COME_Joint(){
00049 
00050         setParent( parent );
00051         COME_Dof *d = new COME_Dof();
00052         d->setOwnerJoint( this );
00053         vpAddDof( d );
00054         vpMakeLim();
00055 }
00056 
00057 COME_UniaxialJoint::COME_UniaxialJoint( COME_Joint *parent, COME_Dof *dof1 ):COME_Joint(){
00058 
00059         setParent( parent );
00060         dof1->setOwnerJoint( this );
00061         vpAddDof( dof1 );
00062         vpMakeLim();
00063 }
00064 
00065 void
00066 COME_UniaxialJoint::setFlexionTo( double value ){
00067 
00068         getDofList()[0]->vpMoveTo( value );
00069         vpMakeLim();
00070 }

Generated on Thu Dec 1 10:13:36 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5