![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsModelTissueBox01.hpp 00003 00004 ModelTissueBox01 class (hpp file). 00005 00006 SUKITTI PUNAK (08/08/2008) 00007 ******************************************************************************/ 00008 #ifndef TAPs_MODEL_TISSUE_BOX_01_HPP 00009 #define TAPs_MODEL_TISSUE_BOX_01_HPP 00010 00011 #include "../TAPsModelForSurgery.hpp" 00012 00013 BEGIN_NAMESPACE_TAPs 00014 //============================================================================= 00015 template <typename T> 00016 class ModelTissueBox01 : public /*virtual*/ ModelForSurgery<T> { 00017 //============================================================================= 00018 public: 00019 // Member Functions ------------------------------------------------------- 00020 00022 friend std::ostream & operator<< ( std::ostream &output, ModelTissueBox01<T> const &obj ) 00023 { 00024 output << obj.StrInfo(); 00025 return output; 00026 } 00027 00029 ModelTissueBox01 ( 00030 std::string data_location 00031 ); 00032 00034 ModelTissueBox01 ( 00035 std::string data_location, 00036 T Kpointmass, 00037 T Kstiffness, 00038 T Kdamper, 00039 T HomeKstiffness, 00040 T HomeKdamper, 00041 int rigidity = 1, 00042 T predefinedTimeStep = 0.01, 00043 int numSimSubSteps = 10 00044 ); 00045 00047 virtual ~ModelTissueBox01 (); 00048 00050 virtual std::string StrInfo () const; 00051 00052 // Data Members ----------------------------------------------------------- 00053 //============================================================================= 00054 protected: 00055 // Member Functions ------------------------------------------------------- 00056 bool Init( int rigidity ); 00057 // Data Members ----------------------------------------------------------- 00058 //============================================================================= 00059 private: 00060 // Member Functions ------------------------------------------------------- 00061 // Data Members ----------------------------------------------------------- 00062 //============================================================================= 00063 00064 //============================================================================= 00065 }; // END CLASS ModelTissueBox01 00066 //============================================================================= 00067 //----------------------------------------------------------------------------- 00069 typedef ModelTissueBox01<int> ModelTissueBox01i; 00070 typedef ModelTissueBox01<float> ModelTissueBox01f; 00071 typedef ModelTissueBox01<double> ModelTissueBox01d; 00072 //============================================================================= 00073 END_NAMESPACE_TAPs 00074 //----------------------------------------------------------------------------- 00075 // Include definition if TAPs_USE_EXPORT is not defined 00076 00077 // If the class is template, use this 00078 //#if !defined( TAPs_USE_EXPORT ) 00079 #include "TAPsModelTissueBox01.cpp" 00080 //#endif 00081 00082 // If the class is NOT template, use this 00083 //#if !defined( TAPs_USE_EXPORT ) 00084 // #include "TAPsModelTissueBox01.cpp" 00085 //#endif 00086 00087 //----------------------------------------------------------------------------- 00088 #endif 00089 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00090 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----