Biomechanical Joint Model
 Author: Anderson Maciel

comeforce.h

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.....: CO-ME
00024 //  RESPONSIBLE.: 
00025 //
00026 //  FILE........: comeforce.h
00027 //  DESCRIPTION.: 
00028 //                                 
00029 //
00030 //  AUTHOR......: Anderson Maciel
00031 //  DATE........: Jun/04/2002
00032 //  DESCRIPTION.: Class declaration.
00033 //
00035 
00036 #ifndef __COME_FORCE_H  
00037 #define __COME_FORCE_H  
00038 
00039 
00040 #include <general/come.h>
00041 #include <algebra/comevector3d.h>
00042 
00043 class COME_Force : public COME {
00044 
00045 protected:
00046         COME_Vector3D   force;
00047 
00048 public:
00049         COME_Force();
00050         COME_Force( double x, double y, double z );
00051         COME_Force( const COME_Vector3D& vectorN );
00052         COME_Force( COME_Point3D& pointN );
00053         virtual ~COME_Force();
00054 
00055         void    setIntensity( float intensityN );
00056         void    setDirection( COME_Vector3D &directionN );
00057         void    setForceVector( COME_Vector3D &vectorN );
00058         
00059         double                          getIntensity();
00060         COME_Vector3D*                  getDirection() const;
00061         COME_Vector3D                   getForceVector() const;
00062 
00063         COME_Force      operator+ ( const COME_Force& f );
00064         COME_Force      operator- ( const COME_Force& f );
00065         COME_Force      operator/ ( const double& f );
00066 };
00067 
00068 #endif // __COME_FORCE_H        
00069 
00070 

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