![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsModelSurgicalSutureThread.cpp 00003 ******************************************************************************/ 00007 /****************************************************************************** 00008 SUKITTI PUNAK (07/27/2010) 00009 UPDATE (10/29/2010) 00010 ******************************************************************************/ 00011 #include "TAPsModelSurgicalSutureThread.hpp" 00012 // Using Inclusion Model (i.e. definitions are included in declarations) 00013 // (this name.cpp is included in name.hpp) 00014 // Each friend is defined directly inside its declaration. 00015 00016 BEGIN_NAMESPACE_TAPs 00017 //============================================================================= 00018 // Constructors 00019 //----------------------------------------------------------------------------- 00020 template <typename T> 00021 ModelSurgicalSutureThread<T>::ModelSurgicalSutureThread ( 00022 int iNoLinks, 00023 T tRadius, 00024 T tTotalLength, 00025 T tTotalMass, 00026 Vector3<T> & posOfVertex0, 00027 ShapeInitializationParameters ShapeParameters 00028 ) : ModelElasticRod<T>( iNoLinks, tRadius, tTotalLength, tTotalMass, posOfVertex0, ShapeParameters ) 00029 {} 00030 //----------------------------------------------------------------------------- 00031 template <typename T> 00032 ModelSurgicalSutureThread<T>::~ModelSurgicalSutureThread () 00033 {} 00034 //----------------------------------------------------------------------------- 00035 template <typename T> 00036 std::string ModelSurgicalSutureThread<T>::StrInfo () const 00037 { 00038 std::ostringstream ss; 00039 ss << "ModelSurgicalSutureThread<" << typeid(T).name() << ">"; 00040 ss << "created with " << ModelElasticRod<T>::StrInfo(); 00041 return ss.str(); 00042 } 00043 //----------------------------------------------------------------------------- 00044 template <typename T> 00045 void ModelSurgicalSutureThread<T>::Reset () 00046 { 00047 ModelElasticRod<T>::Reset(); 00048 } 00049 //----------------------------------------------------------------------------- 00050 //============================================================================= 00051 00052 00053 00054 00055 //============================================================================= 00056 // OpenGL 00057 #if defined(__gl_h_) || defined(__GL_H__) 00058 //----------------------------------------------------------------------------- 00059 template <typename T> 00060 void ModelSurgicalSutureThread<T>::Draw () 00061 { 00062 ModelElasticRod<T>::Draw(); 00063 } 00064 //----------------------------------------------------------------------------- 00065 #endif // OpenGL 00066 //============================================================================= 00067 END_NAMESPACE_TAPs 00068 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00069 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----