VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Types | Protected Attributes
vctl::MCVertex Class Reference

A vertex representation used by polygonal meshes. More...

#include <mcvertex.h>

Inheritance diagram for vctl::MCVertex:
Inheritance graph
[legend]

List of all members.

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;.
MCEdgeGetRegisteredEdge ()
 Returns pointer to a first registered edge.
const MCEdgeGetRegisteredEdge () const
void GetRegisteredEdgeList (std::vector< MCEdge * > &_edge_list)
 Returns vector of all linked edges.
MCTetraGetRegisteredTetra ()
 Returns pointer to a registered tetrahedron.
const MCTetraGetRegisteredTetra () const
void GetRegisteredTetraList (std::vector< MCTetra * > &_tetra_list)
 Returns vector of all linked tetrahedra.
MCTriGetRegisteredTri ()
 Returns pointer to a registered triangle.
const MCTriGetRegisteredTri () 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< MCVertextBase
 Base type.

Protected Attributes

MCEdgeedge_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.
MCTetratetra_list
 Pointer to a first tetrahedron sharing the vertex.
MCTritri_list
 Pointer to a first triangle sharing the vertex.

Detailed Description

A vertex representation used by polygonal meshes.


Member Typedef Documentation

typedef MCEntity<MCVertex> vctl::MCVertex::tBase [protected]

Base type.

Reimplemented from vctl::MCCoordinate3D< double >.


Constructor & Destructor Documentation

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.

Destructor.


Member Function Documentation

template<class S >
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;.

Returns pointer to a first registered edge.

void MCVertex::GetRegisteredEdgeList ( std::vector< MCEdge * > &  _edge_list)

Returns vector of all linked edges.

Returns pointer to a registered tetrahedron.

void MCVertex::GetRegisteredTetraList ( std::vector< MCTetra * > &  _tetra_list)

Returns vector of all linked tetrahedra.

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.

template<class S >
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 >.


Member Data Documentation

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.

Pointer to a first tetrahedron sharing the vertex.

Pointer to a first triangle sharing the vertex.


The documentation for this class was generated from the following files: