Biomechanical Joint Model
 Author: Anderson Maciel

comematerial.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2000 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 
00031 
00032 #include <general/come.h>
00033 #include <algebra/comevector3d.h>
00034 
00035 #ifndef __COME_MATERIAL_H
00036 #define __COME_MATERIAL_H
00037 
00043 
00044 class COME_Material : public COME {
00045 
00046 protected:
00047         COME_Vector3D   color;
00048         double          density;
00049         double          dampingConst;
00050         double          youngsModulus;
00051         double          mediumDensity; // This attribute will migrate to somewhere else after including multi-phasic system
00052         double          liquidFraction;
00053         double          permeability;
00054         double          maxStress;
00055         
00056         COME_Vector3D   anisotropyVector;
00057 
00058 public:
00059         COME_Material();
00060         COME_Material( const COME_Material &materialN );
00061         COME_Material( const COME_Vector3D &colorN, double densityN, double dampingN, double youngs, double mediumDensityN, double liquidFractionN, double permeabilityN  );
00062         COME_Material( const COME_Vector3D &colorN, double densityN, double dampingN, double youngs, double mediumDensityN, double liquidFractionN, double permeabilityN, const COME_Vector3D &anisoN  );
00063         virtual ~COME_Material();
00064 
00065         void    setColor( const COME_Vector3D &colorN );
00066         void    setDensity( double densityN );
00067         void    setDamping( double dampingN );
00068         void    setYoungsModulus( double youngsN );
00069         void    setMediumDensity( double mediumDensityN );
00070         void    setLiquidFraction( double liquidN );
00071         void    setPermeability( double permeabN );
00072         void    setMaxStress( double maxStressN );
00073         void    setAnisotropyVector( const COME_Vector3D &anisoN );
00074 
00075         COME_Vector3D   getColor() const;
00076         double          getColorRGB() const;
00077         double          getDensity() const;
00078         double          getDamping() const;
00079         double          getYoungsModulus() const;
00080         double          getMediumDensity() const;
00081         double          getLiquidFraction() const;
00082         double          getPermeability() const;
00083         double          getMaxStress() const;
00084         COME_Vector3D   getAnisotropyVector() const;
00085 
00086 };
00087 
00088 #endif // COME_MATERIAL

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