#include <TAPsAdvSimSupport_DS.hpp>

Public Member Functions | |
| AdvSimSupport_DS_InteractionModelAndModel (HEVertex< T > *vertexA, HEVertex< T > *vertexB, T forceRatio) | |
| Constructor. | |
| void | ClearConstraint () |
| Clear constraint. | |
| void | EnforceConstraint () |
| Enforce constraint. | |
| std::string | StrInfo () const |
| Return this object info as a string. | |
Public Attributes | |
| T | ForceRatio |
| force ratio [0-1] (1 means model one's vertex completely dominates model two's) | |
| HEVertex< T > * | VertexModelA |
| vertex of model one | |
| HEVertex< T > * | VertexModelB |
| vertex of model two | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, AdvSimSupport_DS_InteractionModelAndModel< T > const &obj) |
| Output Operator <<. | |
Definition at line 99 of file TAPsAdvSimSupport_DS.hpp.
| AdvSimSupport_DS_InteractionModelAndModel< T >::AdvSimSupport_DS_InteractionModelAndModel | ( | HEVertex< T > * | vertexA, | |
| HEVertex< T > * | vertexB, | |||
| T | forceRatio | |||
| ) | [inline] |
Constructor.
| vertexA | a vertex of model |
| vertexB | a vertex of model |
| forceRatio | force ratio between the two vertices [0-1] (1 means model one's vertex completely dominates model two's) |
Definition at line 113 of file TAPsAdvSimSupport_DS.hpp.
00117 : VertexModelA( vertexA ), VertexModelA( vertexB ), ForceRatio( forceRatio ) 00118 {}
| void AdvSimSupport_DS_InteractionModelAndModel< T >::ClearConstraint | ( | ) | [inline] |
Clear constraint.
Definition at line 55 of file TAPsAdvSimSupport_DS.cpp.
00056 { 00057 VertexModelA->SimFlags.ClearAllSimulationConstraints(); 00058 VertexModelB->SimFlags.ClearAllSimulationConstraints(); 00059 }
| void AdvSimSupport_DS_InteractionModelAndModel< T >::EnforceConstraint | ( | ) | [inline] |
Enforce constraint.
Definition at line 45 of file TAPsAdvSimSupport_DS.cpp.
00046 { 00047 Vector3<T> C = ForceRatio*VertexModelA->GetPosition() + (1.0 - ForceRatio)*VertexModelB->GetPosition(); 00048 VertexModelA->SetPosition( C ); 00049 VertexModelB->SetPosition( C ); 00050 }
| BEGIN_NAMESPACE_TAPs std::string AdvSimSupport_DS_InteractionModelAndModel< T >::StrInfo | ( | ) | const [inline] |
Return this object info as a string.
Definition at line 20 of file TAPsAdvSimSupport_DS.cpp.
00021 { 00022 std::stringstream ss; 00023 ss << "{A:" << VertexModelA << " with " << VertexModelA->SimFlags 00024 << " , B:" << VertexModelB << " with " << VertexModelB->SimFlags 00025 << " with ForceRatio of " << ForceRatio << "}\n"; 00026 return ss.str(); 00027 }
| std::ostream& operator<< | ( | std::ostream & | output, | |
| AdvSimSupport_DS_InteractionModelAndModel< T > const & | obj | |||
| ) | [friend] |
Output Operator <<.
Definition at line 103 of file TAPsAdvSimSupport_DS.hpp.
00104 { 00105 output << obj.StrInfo(); 00106 return output; 00107 }
| T AdvSimSupport_DS_InteractionModelAndModel< T >::ForceRatio |
force ratio [0-1] (1 means model one's vertex completely dominates model two's)
Definition at line 128 of file TAPsAdvSimSupport_DS.hpp.
| HEVertex<T>* AdvSimSupport_DS_InteractionModelAndModel< T >::VertexModelA |
| HEVertex<T>* AdvSimSupport_DS_InteractionModelAndModel< T >::VertexModelB |
1.5.6