![]() |
VectorEntity
1.1.0
Medical Data Segmentation Toolkit
|
A vertex representation used by polygonal meshes. More...
#include <mcvertex.h>

Public Member Functions | |
| template<class S > | |
| void | DeserializeEntity (mds::mod::CChannelSerializer< S > &Reader) |
| Reads the Vertex data. | |
| unsigned int | GetHashCode () const |
| Returns hash code of vertex coordinates. | |
| unsigned int | GetIndex () const |
| Returns the vertex index;. | |
| MCEdge * | GetRegisteredEdge () |
| Returns pointer to a first registered edge. | |
| const MCEdge * | GetRegisteredEdge () const |
| void | GetRegisteredEdgeList (std::vector< MCEdge * > &_edge_list) |
| Returns vector of all linked edges. | |
| MCTetra * | GetRegisteredTetra () |
| Returns pointer to a registered tetrahedron. | |
| const MCTetra * | GetRegisteredTetra () const |
| void | GetRegisteredTetraList (std::vector< MCTetra * > &_tetra_list) |
| Returns vector of all linked tetrahedra. | |
| MCTri * | GetRegisteredTri () |
| Returns pointer to a registered triangle. | |
| const MCTri * | GetRegisteredTri () const |
| void | GetRegisteredTriList (std::vector< MCTri * > &_tri_list) |
| Returns vector of all linked triangles. | |
| void | GetRegisteredTriListExclude (std::vector< MCTri * > &_tri_list, MCVertex *exclude_vertex) |
| Returns vector of triangles registered for this vertex, excluding those including a given exclude vertex. | |
| void | MakeHashCode () |
| Calculates hash code of vertex coordinates. | |
| MCVertex () | |
| Default constructor. | |
| MCVertex (const MCPoint3D &_point) | |
| Copy constructor. | |
| MCVertex (const double &_x, const double &_y, const double &_z) | |
| Just another constructor. | |
| template<class S > | |
| void | SerializeEntity (mds::mod::CChannelSerializer< S > &Writer) |
| Writes the vertex data. | |
| void | SetHashCode (MCVertex &_vertex) |
| Sets the hash code equal to a given vertex. | |
| void | SetIndex (unsigned int _index) |
| Sets the vertex index. | |
| void | SetRegisteredEdge (MCEdge *_edge) |
| Sets pointer to an already registered edge linked to the vertex. | |
| void | SetRegisteredTetra (MCTetra *_tetra) |
| Sets pointer to a registered tetrahedron already linked to the vertex. | |
| void | SetRegisteredTri (MCTri *_tri) |
| Sets pointer to an already registered triangle linked to the vertex. | |
| bool | TestIdentity (MCVertex *_test) const |
| Checks identity of two vertices. | |
| std::string | ToString () const |
| Returns text description of the vertex. | |
| ~MCVertex () | |
| Destructor. | |
Protected Types | |
| typedef MCEntity< MCVertex > | tBase |
| Base type. | |
Protected Attributes | |
| MCEdge * | edge_list |
| Pointer to a first edge sharing the vertex. | |
| unsigned int | index |
| Node index (used during saving). | |
| unsigned int | m_hash_code |
| Vertex coordinates hash code. | |
| MCTetra * | tetra_list |
| Pointer to a first tetrahedron sharing the vertex. | |
| MCTri * | tri_list |
| Pointer to a first triangle sharing the vertex. | |
typedef MCEntity<MCVertex> vctl::MCVertex::tBase [protected] |
Base type.
Reimplemented from vctl::MCCoordinate3D< double >.
| vctl::MCVertex::MCVertex | ( | ) | [inline] |
Default constructor.
| vctl::MCVertex::MCVertex | ( | const MCPoint3D & | _point | ) | [inline] |
Copy constructor.
| vctl::MCVertex::MCVertex | ( | const double & | _x, |
| const double & | _y, | ||
| const double & | _z | ||
| ) | [inline] |
Just another constructor.
| vctl::MCVertex::~MCVertex | ( | ) | [inline] |
Destructor.
| void vctl::MCVertex::DeserializeEntity | ( | mds::mod::CChannelSerializer< S > & | Reader | ) | [inline] |
Reads the Vertex data.
Reimplemented from vctl::MCEntity< MCVertex >.
| unsigned int vctl::MCVertex::GetHashCode | ( | ) | const [inline, virtual] |
Returns hash code of vertex coordinates.
Implements vctl::MCEntity< MCVertex >.
| unsigned int vctl::MCVertex::GetIndex | ( | ) | const [inline] |
Returns the vertex index;.
| MCEdge* vctl::MCVertex::GetRegisteredEdge | ( | ) | [inline] |
Returns pointer to a first registered edge.
| void MCVertex::GetRegisteredEdgeList | ( | std::vector< MCEdge * > & | _edge_list | ) |
Returns vector of all linked edges.
| MCTetra* vctl::MCVertex::GetRegisteredTetra | ( | ) | [inline] |
Returns pointer to a registered tetrahedron.
| void MCVertex::GetRegisteredTetraList | ( | std::vector< MCTetra * > & | _tetra_list | ) |
Returns vector of all linked tetrahedra.
| MCTri* vctl::MCVertex::GetRegisteredTri | ( | ) | [inline] |
Returns pointer to a registered triangle.
| void MCVertex::GetRegisteredTriList | ( | std::vector< MCTri * > & | _tri_list | ) |
Returns vector of all linked triangles.
| void MCVertex::GetRegisteredTriListExclude | ( | std::vector< MCTri * > & | _tri_list, |
| MCVertex * | exclude_vertex | ||
| ) |
Returns vector of triangles registered for this vertex, excluding those including a given exclude vertex.
| void vctl::MCVertex::MakeHashCode | ( | ) | [inline] |
Calculates hash code of vertex coordinates.
| void vctl::MCVertex::SerializeEntity | ( | mds::mod::CChannelSerializer< S > & | Writer | ) | [inline] |
Writes the vertex data.
Reimplemented from vctl::MCEntity< MCVertex >.
| void vctl::MCVertex::SetHashCode | ( | MCVertex & | _vertex | ) | [inline] |
Sets the hash code equal to a given vertex.
| void vctl::MCVertex::SetIndex | ( | unsigned int | _index | ) | [inline] |
Sets the vertex index.
| void vctl::MCVertex::SetRegisteredEdge | ( | MCEdge * | _edge | ) | [inline] |
Sets pointer to an already registered edge linked to the vertex.
| void vctl::MCVertex::SetRegisteredTetra | ( | MCTetra * | _tetra | ) | [inline] |
Sets pointer to a registered tetrahedron already linked to the vertex.
| void vctl::MCVertex::SetRegisteredTri | ( | MCTri * | _tri | ) | [inline] |
Sets pointer to an already registered triangle linked to the vertex.
| bool vctl::MCVertex::TestIdentity | ( | MCVertex * | _test | ) | const [inline, virtual] |
Checks identity of two vertices.
Implements vctl::MCEntity< MCVertex >.
| std::string vctl::MCVertex::ToString | ( | ) | const [inline, virtual] |
Returns text description of the vertex.
Implements vctl::MCEntity< MCVertex >.
MCEdge* vctl::MCVertex::edge_list [protected] |
Pointer to a first edge sharing the vertex.
unsigned int vctl::MCVertex::index [protected] |
Node index (used during saving).
unsigned int vctl::MCVertex::m_hash_code [protected] |
Vertex coordinates hash code.
MCTetra* vctl::MCVertex::tetra_list [protected] |
Pointer to a first tetrahedron sharing the vertex.
MCTri* vctl::MCVertex::tri_list [protected] |
Pointer to a first triangle sharing the vertex.
1.7.6.1