#include <TAPsSimPropForMultiPartMeshModel.hpp>


Public Member Functions | |
| T | GetKDamper () const |
| Get spring damper. | |
| T | GetKPtMass () const |
| Get mass of point. | |
| T | GetKStiffness () const |
| Get spring stiffness. | |
| TAPs::Enum::ModelType | GetModelType () const |
| Get model type. | |
| bool | IsColDetOn () const |
| Get collision detection on/off status. | |
| bool | IsSimOn () const |
| Get simulation on/off status. | |
| SimPropForMultiPartMeshModel< T > & | operator= (SimPropForMultiPartMeshModel< T > const &obj) |
| Assignment operator. | |
| void | SetColDetOn (bool b) |
| Set collision detection on/off status. | |
| void | SetKDamper (T val) |
| Set spring damper. | |
| void | SetKPtMass (T val) |
| Set mass of point. | |
| void | SetKStiffness (T val) |
| Set spring stiffness. | |
| void | SetModelType (TAPs::Enum::ModelType type) |
| Set model type. | |
| void | SetSimOn (bool b) |
| Set simulation on/off status. | |
| SimPropForMultiPartMeshModel (SimPropForMultiPartMeshModel< T > const &obj) | |
| Copy constructor. | |
| SimPropForMultiPartMeshModel (T springStiffness=1, T springDamper=1, T massOfPoint=1, TAPs::Enum::ModelType modelType=TAPs::Enum::MODEL_DEFORM, bool enableColDet=true, bool enableSimulation=true) | |
| Constructor. | |
| virtual std::string | StrInfo () const |
| Return this object info as a string. | |
| void | ToggleColDetOn () |
| Toggle collision detection on/off status. | |
| void | ToggleSimOn () |
| Toggle simulation on/off status. | |
| ~SimPropForMultiPartMeshModel () | |
| Destructor. | |
Protected Attributes | |
| bool | m_bColDetOn |
| collision detection on/off status | |
| bool | m_bSimOn |
| simulation on/off status | |
| TAPs::Enum::ModelType | m_eModelType |
| See ModelType in TAPsEnumList.hpp for type list. | |
| T | m_tKDamper |
| spring damper value | |
| T | m_tKStiffness |
| spring stiffness value | |
| T | m_tPtMass |
| mass of point | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, SimPropForMultiPartMeshModel< T > const &obj) |
| Output Operator <<. | |
Definition at line 16 of file TAPsSimPropForMultiPartMeshModel.hpp.
| BEGIN_NAMESPACE_TAPs SimPropForMultiPartMeshModel< T >::SimPropForMultiPartMeshModel | ( | T | springStiffness = 1, |
|
| T | springDamper = 1, |
|||
| T | massOfPoint = 1, |
|||
| TAPs::Enum::ModelType | modelType = TAPs::Enum::MODEL_DEFORM, |
|||
| bool | enableColDet = true, |
|||
| bool | enableSimulation = true | |||
| ) | [inline] |
Constructor.
| springStiffness | spring stiffness value |
| springDamper | spring damper value |
| massOfPoint | mass of point |
| modelType | type of model |
| enableColDet | collision detection on/off status |
| enableSimulation | simulation on/off status |
Definition at line 20 of file TAPsSimPropForMultiPartMeshModel.cpp.
00028 : m_tKStiffness( springStiffness ), 00029 m_tKDamper( springDamper ), 00030 m_tPtMass( massOfPoint ), 00031 m_eModelType( modelType ), 00032 m_bColDetOn( enableColDet ), 00033 m_bSimOn( enableSimulation ) 00034 {}
| SimPropForMultiPartMeshModel< T >::SimPropForMultiPartMeshModel | ( | SimPropForMultiPartMeshModel< T > const & | obj | ) | [inline] |
Copy constructor.
Copy Cestructor.
Definition at line 39 of file TAPsSimPropForMultiPartMeshModel.cpp.
00041 { 00042 m_tKStiffness = obj.m_tKStiffness; 00043 m_tKDamper = obj.m_tKDamper; 00044 m_tPtMass = obj.m_tPtMass; 00045 m_bColDetOn = obj.m_bColDetOn; 00046 m_bSimOn = obj.m_bSimOn; 00047 }
| SimPropForMultiPartMeshModel< T >::~SimPropForMultiPartMeshModel | ( | ) | [inline] |
| T SimPropForMultiPartMeshModel< T >::GetKDamper | ( | ) | const [inline] |
Get spring damper.
Definition at line 64 of file TAPsSimPropForMultiPartMeshModel.hpp.
00064 { return m_tKDamper; }
| T SimPropForMultiPartMeshModel< T >::GetKPtMass | ( | ) | const [inline] |
| T SimPropForMultiPartMeshModel< T >::GetKStiffness | ( | ) | const [inline] |
Get spring stiffness.
Definition at line 59 of file TAPsSimPropForMultiPartMeshModel.hpp.
00059 { return m_tKStiffness; }
| TAPs::Enum::ModelType SimPropForMultiPartMeshModel< T >::GetModelType | ( | ) | const [inline] |
Get model type.
Definition at line 88 of file TAPsSimPropForMultiPartMeshModel.hpp.
00088 { return m_eModelType; }
| bool SimPropForMultiPartMeshModel< T >::IsColDetOn | ( | ) | const [inline] |
Get collision detection on/off status.
Definition at line 74 of file TAPsSimPropForMultiPartMeshModel.hpp.
00074 { return m_bColDetOn; }
| bool SimPropForMultiPartMeshModel< T >::IsSimOn | ( | ) | const [inline] |
Get simulation on/off status.
Definition at line 81 of file TAPsSimPropForMultiPartMeshModel.hpp.
00081 { return m_bSimOn; }
| SimPropForMultiPartMeshModel< T > & SimPropForMultiPartMeshModel< T >::operator= | ( | SimPropForMultiPartMeshModel< T > const & | obj | ) | [inline] |
Assignment operator.
Definition at line 78 of file TAPsSimPropForMultiPartMeshModel.cpp.
00080 { 00081 m_tKStiffness = obj.m_tKStiffness; 00082 m_tKDamper = obj.m_tKDamper; 00083 m_tPtMass = obj.m_tPtMass; 00084 m_bColDetOn = obj.m_bColDetOn; 00085 m_bSimOn = obj.m_bSimOn; 00086 00087 return *this; 00088 }
| void SimPropForMultiPartMeshModel< T >::SetColDetOn | ( | bool | b | ) | [inline] |
Set collision detection on/off status.
Definition at line 76 of file TAPsSimPropForMultiPartMeshModel.hpp.
00076 { m_bColDetOn = b; }
| void SimPropForMultiPartMeshModel< T >::SetKDamper | ( | T | val | ) | [inline] |
Set spring damper.
Definition at line 66 of file TAPsSimPropForMultiPartMeshModel.hpp.
00066 { m_tKDamper = val; }
| void SimPropForMultiPartMeshModel< T >::SetKPtMass | ( | T | val | ) | [inline] |
| void SimPropForMultiPartMeshModel< T >::SetKStiffness | ( | T | val | ) | [inline] |
Set spring stiffness.
Definition at line 61 of file TAPsSimPropForMultiPartMeshModel.hpp.
00061 { m_tKStiffness = val; }
| void SimPropForMultiPartMeshModel< T >::SetModelType | ( | TAPs::Enum::ModelType | type | ) | [inline] |
Set model type.
Definition at line 90 of file TAPsSimPropForMultiPartMeshModel.hpp.
00090 { m_eModelType = type; }
| void SimPropForMultiPartMeshModel< T >::SetSimOn | ( | bool | b | ) | [inline] |
Set simulation on/off status.
Definition at line 83 of file TAPsSimPropForMultiPartMeshModel.hpp.
00083 { m_bSimOn = b; }
| std::string SimPropForMultiPartMeshModel< T >::StrInfo | ( | ) | const [inline, virtual] |
Return this object info as a string.
Reimplemented in SimPropForMultiPartMeshModel_HalfEdge< T >.
Definition at line 58 of file TAPsSimPropForMultiPartMeshModel.cpp.
00059 { 00060 std::ostringstream ss; 00061 ss << "SimPropForMultiPartMeshModel<" << typeid(T).name() << "> ==>" 00062 << " Spring Stiffness(" << m_tKStiffness 00063 << ") Damper(" << m_tKDamper 00064 << ") Mass of Point (" << m_tPtMass 00065 << ") Collision Detection ("; 00066 if ( m_bColDetOn ) ss << "On"; 00067 else ss << "Off"; 00068 ss << ") Simulation ("; 00069 if ( m_bSimOn ) ss << "On"; 00070 else ss << "Off"; 00071 ss << ".\n"; 00072 return ss.str(); 00073 }
| void SimPropForMultiPartMeshModel< T >::ToggleColDetOn | ( | ) | [inline] |
Toggle collision detection on/off status.
Definition at line 78 of file TAPsSimPropForMultiPartMeshModel.hpp.
00078 { m_bColDetOn = !m_bColDetOn; }
| void SimPropForMultiPartMeshModel< T >::ToggleSimOn | ( | ) | [inline] |
Toggle simulation on/off status.
Definition at line 85 of file TAPsSimPropForMultiPartMeshModel.hpp.
| std::ostream& operator<< | ( | std::ostream & | output, | |
| SimPropForMultiPartMeshModel< T > const & | obj | |||
| ) | [friend] |
Output Operator <<.
Definition at line 20 of file TAPsSimPropForMultiPartMeshModel.hpp.
00022 { 00023 output << obj.StrInfo(); 00024 return output; 00025 }
bool SimPropForMultiPartMeshModel< T >::m_bColDetOn [protected] |
collision detection on/off status
Definition at line 105 of file TAPsSimPropForMultiPartMeshModel.hpp.
bool SimPropForMultiPartMeshModel< T >::m_bSimOn [protected] |
TAPs::Enum::ModelType SimPropForMultiPartMeshModel< T >::m_eModelType [protected] |
See ModelType in TAPsEnumList.hpp for type list.
Definition at line 107 of file TAPsSimPropForMultiPartMeshModel.hpp.
T SimPropForMultiPartMeshModel< T >::m_tKDamper [protected] |
T SimPropForMultiPartMeshModel< T >::m_tKStiffness [protected] |
T SimPropForMultiPartMeshModel< T >::m_tPtMass [protected] |
1.5.6