Biomechanical Joint Model
 Author: Anderson Maciel

comemoleculescartilage.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 //  AUTHOR......: Anderson Maciel
00027 //  DATE........: August/05/2002
00028 //  DESCRIPTION.: Class declaration.
00029 //
00031 
00032 #ifndef __COME_MOLECULESCARTILAGE_H     
00033 #define __COME_MOLECULESCARTILAGE_H     
00034 
00035 
00036 
00037 #include <bio/comemoleculestissue.h>
00038 #include <bio/comecartilage.h>
00039 #include <libgeom/geom.h>
00040 
00041 using namespace geom;
00042 
00043 class COME_MoleculesCartilage : public COME_Cartilage {
00044 
00045 protected:
00046         
00047         COME_MoleculesTissue    *tissue;
00048         string                  deformationFile;
00049         ARRAY2D         *matrixJinv;
00050         
00051 public:
00052 
00053         COME_MoleculesCartilage();
00054         ~COME_MoleculesCartilage();
00055 
00056         void    setTissue( COME_MoleculesTissue *tissueN );
00057         void    setDeformationFile( string defFile );
00058 
00059         COME_MoleculesTissue    *getTissue();
00060         string                          getDeformationFile();
00061         ARRAY2D                         *getMatrixJinv();
00062 
00063         bool    update( double timestep, double simClock );
00064         void    updateSurface( bool regenerate );
00065         void    updateSurface( double skinSphere, double stiff, double resolution );
00066         void    updateSkin();
00067 
00068         void    getEnvelop( COME_Point3D& mins, COME_Point3D& maxs );
00069         void    respondCollision();
00070         
00071         void    initializeSkinning();
00072         void    discretize( int type, double dist, double radius );
00073         void    initializeJacobian();
00074 };
00075 
00076 #endif // __COME_MOLECULESCARTILAGE_H

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