#include <TAPsHEVertexPtrWithExtraInfo.hpp>
Public Member Functions | |
| HEVertex< T > * | GetHEVertexPtr () |
| HEVertex< T > const * | GetHEVertexPtr () const |
| Assignment operator. | |
| ParticleRef< T > & | GetHomeParticle () |
| ParticleRef< T > const & | GetHomeParticle () const |
| Get vertex ring list. | |
| Vector3< T > & | GetHomePosition () |
| Vector3< T > const & | GetHomePosition () const |
| Get home position. | |
| std::vector< int > & | GetListConnectedVertices () |
| std::vector< int > const & | GetListConnectedVertices () const |
| Get vertex ring list. | |
| std::vector< int > & | GetListVertexFirstRing () |
| std::vector< int > const & | GetListVertexFirstRing () const |
| Get vertex ring list. | |
| ParticleRef< T > * | GetParticleRef () |
| ParticleRef< T > const * | GetParticleRef () const |
| Get vertex ring list. | |
| HEVertexPtrWithExtraInfo (HEVertex< T > *heVertexPtr, ParticleRef< T > *particlePtr) | |
| Constructor. | |
| void | SetHomePosition (Vector3< T > const &pos) |
| Set home position. | |
| virtual std::string | StrInfo () const |
| Return this object info as a string. | |
| ~HEVertexPtrWithExtraInfo () | |
| Copy constructor. | |
Protected Attributes | |
| ParticleRef< T > | m_HomeParticle |
| home particle which links to home position | |
| HEVertex< T > * | m_pHEVertex |
| Pointer to HEVertex. | |
| ParticleRef< T > * | m_pParticleRef |
| Pointers to Particle. | |
| Vector3< T > | m_vHomePos |
| home (original) position | |
| std::vector< int > | m_viListConnectedVertices |
| List of connected vertices by, e.g., a spring. | |
| std::vector< int > | m_viListVertexFirstRing |
| First-ring neighbor vertices on mesh. | |
Private Member Functions | |
| HEVertexPtrWithExtraInfo< T > const & | operator= (HEVertexPtrWithExtraInfo< T > const &S) |
Friends | |
| std::ostream & | operator<< (std::ostream &output, HEVertexPtrWithExtraInfo< T > const &obj) |
| Output Operator <<. | |
Definition at line 17 of file TAPsHEVertexPtrWithExtraInfo.hpp.
| BEGIN_NAMESPACE_TAPs HEVertexPtrWithExtraInfo< T >::HEVertexPtrWithExtraInfo | ( | HEVertex< T > * | heVertexPtr, | |
| ParticleRef< T > * | particlePtr | |||
| ) | [inline] |
Constructor.
Definition at line 20 of file TAPsHEVertexPtrWithExtraInfo.cpp.
00022 : m_pHEVertex( heVertexPtr ), 00023 m_pParticleRef( particlePtr ), 00024 m_vHomePos( particlePtr->GetPosition() ), 00025 m_HomeParticle( m_vHomePos, true ) 00026 {}
| HEVertexPtrWithExtraInfo< T >::~HEVertexPtrWithExtraInfo | ( | ) | [inline] |
Copy constructor.
Destructor.
Destructor
Definition at line 31 of file TAPsHEVertexPtrWithExtraInfo.cpp.
| HEVertex<T>* HEVertexPtrWithExtraInfo< T >::GetHEVertexPtr | ( | ) | [inline] |
| HEVertex<T> const* HEVertexPtrWithExtraInfo< T >::GetHEVertexPtr | ( | ) | const [inline] |
Assignment operator.
Get half-edge vertex pointer
Definition at line 49 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00049 { return m_pHEVertex; }
| ParticleRef<T>& HEVertexPtrWithExtraInfo< T >::GetHomeParticle | ( | ) | [inline] |
| ParticleRef<T> const& HEVertexPtrWithExtraInfo< T >::GetHomeParticle | ( | ) | const [inline] |
Get vertex ring list.
Definition at line 69 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00069 { return m_HomeParticle; }
| Vector3<T>& HEVertexPtrWithExtraInfo< T >::GetHomePosition | ( | ) | [inline] |
| Vector3<T> const& HEVertexPtrWithExtraInfo< T >::GetHomePosition | ( | ) | const [inline] |
Get home position.
Definition at line 73 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00073 { return m_vHomePos; }
| std::vector<int>& HEVertexPtrWithExtraInfo< T >::GetListConnectedVertices | ( | ) | [inline] |
Definition at line 58 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00058 { return m_viListConnectedVertices; }
| std::vector<int> const& HEVertexPtrWithExtraInfo< T >::GetListConnectedVertices | ( | ) | const [inline] |
Get vertex ring list.
Definition at line 57 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00057 { return m_viListConnectedVertices; }
| std::vector<int>& HEVertexPtrWithExtraInfo< T >::GetListVertexFirstRing | ( | ) | [inline] |
Definition at line 54 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00054 { return m_viListVertexFirstRing; }
| std::vector<int> const& HEVertexPtrWithExtraInfo< T >::GetListVertexFirstRing | ( | ) | const [inline] |
Get vertex ring list.
Definition at line 53 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00053 { return m_viListVertexFirstRing; }
| ParticleRef<T>* HEVertexPtrWithExtraInfo< T >::GetParticleRef | ( | ) | [inline] |
| ParticleRef<T> const* HEVertexPtrWithExtraInfo< T >::GetParticleRef | ( | ) | const [inline] |
Get vertex ring list.
Get vertex ring list
Definition at line 65 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00065 { return m_pParticleRef; }
| HEVertexPtrWithExtraInfo<T> const& HEVertexPtrWithExtraInfo< T >::operator= | ( | HEVertexPtrWithExtraInfo< T > const & | S | ) | [inline, private] |
Definition at line 105 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00106 { 00107 std::cerr << "HEVertexPtrWithExtraInfo<T> operator= must not be used!\n"; 00108 exit( 1 ); 00109 }
| void HEVertexPtrWithExtraInfo< T >::SetHomePosition | ( | Vector3< T > const & | pos | ) | [inline] |
Set home position.
Definition at line 76 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00076 { m_vHomePos = pos; }
| std::string HEVertexPtrWithExtraInfo< T >::StrInfo | ( | ) | const [inline, virtual] |
Return this object info as a string.
Definition at line 37 of file TAPsHEVertexPtrWithExtraInfo.cpp.
00038 { 00039 std::ostringstream ss; 00040 ss << "HEVertexPtrWithExtraInfo<" << typeid(T).name() << ">:"; 00041 ss << "\n\tHome Position: " << m_vHomePos; 00042 ss << "\n\tHomeParticle: " << m_HomeParticle; 00043 ss << "\n\tPtr to HEVertex: " << m_pHEVertex; 00044 ss << "\n\t1st ring vertex list:"; 00045 for ( int i = 0; i < static_cast<int>(m_viListVertexFirstRing.size()); ++i ) { 00046 ss << " " << m_viListVertexFirstRing[i]; 00047 } 00048 ss << "\n\tList of connected vertices:"; 00049 for ( int i = 0; i < static_cast<int>(m_viListConnectedVertices.size()); ++i ) { 00050 ss << " " << m_viListConnectedVertices[i]; 00051 } 00052 ss << "\n\tPtr to Particle: " << m_pParticleRef; 00053 ss << "\n-------\n"; 00054 00055 return ss.str(); 00056 }
| std::ostream& operator<< | ( | std::ostream & | output, | |
| HEVertexPtrWithExtraInfo< T > const & | obj | |||
| ) | [friend] |
Output Operator <<.
Definition at line 21 of file TAPsHEVertexPtrWithExtraInfo.hpp.
00023 { 00024 output << obj.StrInfo(); 00025 return output; 00026 }
ParticleRef<T> HEVertexPtrWithExtraInfo< T >::m_HomeParticle [protected] |
home particle which links to home position
Definition at line 90 of file TAPsHEVertexPtrWithExtraInfo.hpp.
HEVertex<T>* HEVertexPtrWithExtraInfo< T >::m_pHEVertex [protected] |
ParticleRef<T>* HEVertexPtrWithExtraInfo< T >::m_pParticleRef [protected] |
Vector3<T> HEVertexPtrWithExtraInfo< T >::m_vHomePos [protected] |
std::vector<int> HEVertexPtrWithExtraInfo< T >::m_viListConnectedVertices [protected] |
List of connected vertices by, e.g., a spring.
Definition at line 94 of file TAPsHEVertexPtrWithExtraInfo.hpp.
std::vector<int> HEVertexPtrWithExtraInfo< T >::m_viListVertexFirstRing [protected] |
First-ring neighbor vertices on mesh.
Definition at line 93 of file TAPsHEVertexPtrWithExtraInfo.hpp.
1.5.6