Biomechanical Joint Model
 Author: Anderson Maciel

comemechatester.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 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 #ifndef COMEMECHATESTER_H
00021 #define COMEMECHATESTER_H
00022 
00023 #include <mechatester.h>
00024 #include <string>
00025 using namespace std;
00026 
00027 class COME_Simulator;
00028 class COME_Scenario;
00029 class COME_Material;
00030 class COME_Molecule;
00031 
00035 class COME_Mechatester : public mechatester
00036 {
00037 private:
00038         double initialLength, previousLenght, pressureArea;
00039         COME_Molecule* molecFixSelected;
00040         COME_Molecule* molecMobileSelected;
00041         void hourglass( bool yesno );
00042         string default_output_file;
00043 
00044 protected:
00045         
00046 
00047 public:
00048         COME_Mechatester();
00049         
00050         ~COME_Mechatester();
00051         
00052         public slots:
00053         virtual void fileOpen();
00054         virtual void fileExportAs();
00055         virtual void selectMaterial();
00056         virtual void materialChanged( int l, int c );
00057         virtual void clickedNewMaterial();
00058         virtual void clickedDelMaterial();
00059         virtual void clickedAssociate();
00060         virtual void clickedStartSim();
00061         virtual void clickedCheck();
00062         virtual void clickedReset();
00063         virtual void changedNumIntegration();
00064         
00065         void    loadFileIfArguments( int argc, char ** argv );
00066 
00067         void    rotateSelected( int rx, int ry, int rz );
00068         void    translateSelected( int dx, int dy, int dz );
00069         void    scaleSelected( int fx, int fy, int fz );
00070         
00071         void    updateMaterialsList();
00072         void    loadMaterialProperties();
00073         void    updateClampIntersections();
00074         void    updateEquation();
00075     
00076         COME_Simulator  *sim;
00077         COME_Scenario   *scene;
00078         COME_Material   *selectedMaterial;
00079 
00080 };
00081 
00082 #endif

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