Biomechanical Joint Model
 Author: Anderson Maciel

comemodeljoint.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 COMEMODELJOINT_H
00021 #define COMEMODELJOINT_H
00022 
00023 #include <modeljoint.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_ModelJoint : public modeljoint
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_ModelJoint();
00049         
00050         ~COME_ModelJoint();
00051 
00052         void    loadFileIfArguments( int argc, char ** argv );
00053         
00054         public slots:
00055         virtual void fileOpen();
00056         virtual void fileLoad_scene();
00057         virtual void fileExportAs();
00058         virtual void clickedStartSim();
00059         virtual void pauseSim();
00060         virtual void fpsChange();
00061         virtual void durationChange();
00062         virtual void changedNumIntegration();
00063         virtual void changedCollisionTreatment();
00064         virtual void changed2ndPass();
00065         virtual void sliderNominalReleased();
00066         virtual void exportPrecalculationChanged();
00067         virtual void animationResolutionChanged();
00068         
00069         void    rotateSelected( int rx, int ry, int rz );
00070         void    translateSelected( int dx, int dy, int dz );
00071         void    scaleSelected( int fx, int fy, int fz );
00072         
00073         void    updateClampIntersections();
00074     
00075         COME_Simulator  *sim;
00076         COME_Scenario   *scene;
00077         COME_Material   *selectedMaterial;
00078 
00079 };
00080 
00081 #endif

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