VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions
vctl::MCTetraS Class Reference

Container of tetrahedra (tetrahedra mesh). More...

#include <mctetras.h>

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

List of all members.

Public Member Functions

void DeRegistrationAll ()
 Deregisters all tetrahedra.
template<class S >
void deserialize (mds::mod::CChannelSerializer< S > &Reader)
 Deserializes the tetrahedral mesh.
void Erase (MCTetra *del_ent)
 Removes tetrahedra from the mesh.
void EraseEdgesNoTetras ()
 Erases the container of edges.
void EraseVerticesNoTetras ()
 Removes all unused vertices from the mesh.
unsigned int GetActualValueFlag ()
 Returns value of the actual value flag.
MCEdgeSGetEdgeS ()
 Returns pointer to the container of edges.
void GetTetraEdge (MCVertex *_u0, MCVertex *_u1, std::vector< MCTetra * > &tetra_pole)
 Returns all tetrahedra sharing a given edge.
int GetTetraEdgeNumber (MCVertex *_u0, MCVertex *_u1)
 Returns the number of tetrahedra sharing a given edge.
MCTriSGetTriS ()
 Returns pointer to the container of triangles.
MCVerticeSGetVerticeS ()
 Returns pointer to the container of vertices.
void MakeAllTetrasEdges ()
 Creates container of edges for all tetrahedra in the mesh.
void MakeTetraEdges (MCTetra *_tetra)
 Adds all edges of a given tetrahedra to the container of edges.
 MCTetraS ()
 Default constructor.
 MDS_ENTITY_COMPRESSION (mds::mod::CC_RAW)
 Standard method getEntityCompression().
 MDS_ENTITY_NAME ("MCTetraS")
 Standard method getEntityName().
MCTetraNew (MCVertex *_u0, MCVertex *_u1, MCVertex *_u2, MCVertex *_u3)
 Creates a new tetrahedron.
MCTetraNew2 (MCVertex *_u0, MCVertex *_u1, MCVertex *_u2, MCVertex *_u3)
 Creates a new tetrahedron.
template<class S >
void serialize (mds::mod::CChannelSerializer< S > &Writer)
 Serializes the tetrahedral mesh.
void SetActualValueFlag (unsigned int _value)
 Sets value of the actual value flag.
bool TestEdgeExistence (MCVertex *_u0, MCVertex *_u1)
 Checks if a given edge exists in the mesh.
MCTetraTestExistence (MCVertex *_u0, MCVertex *_u1, MCVertex *_u2, MCVertex *_u3)
 Checks if a specified tetrahedron already exists in the mesh.
bool TestTriExistence (MCVertex *_u0, MCVertex *_u1, MCVertex *_u2)
 Checks if a given triangle exists in the mesh.
 ~MCTetraS ()
 Destructor.

Detailed Description

Container of tetrahedra (tetrahedra mesh).


Constructor & Destructor Documentation

Default constructor.

Destructor.


Member Function Documentation

Deregisters all tetrahedra.

template<class S >
void vctl::MCTetraS::deserialize ( mds::mod::CChannelSerializer< S > &  Reader) [inline]

Deserializes the tetrahedral mesh.

void MCTetraS::Erase ( MCTetra del_ent)

Removes tetrahedra from the mesh.

  • Deregistration of the terahedra from its vertices.
  • Removes the tetra from the sorting queue.

Erases the container of edges.

Removes all unused vertices from the mesh.

unsigned int vctl::MCTetraS::GetActualValueFlag ( ) [inline]

Returns value of the actual value flag.

Returns pointer to the container of edges.

void MCTetraS::GetTetraEdge ( MCVertex _u0,
MCVertex _u1,
std::vector< MCTetra * > &  tetra_pole 
)

Returns all tetrahedra sharing a given edge.

Returns the number of tetrahedra sharing a given edge.

Returns pointer to the container of triangles.

Returns pointer to the container of vertices.

Creates container of edges for all tetrahedra in the mesh.

void MCTetraS::MakeTetraEdges ( MCTetra _tetra)

Adds all edges of a given tetrahedra to the container of edges.

Standard method getEntityCompression().

Standard method getEntityName().

MCTetra * MCTetraS::New ( MCVertex _u0,
MCVertex _u1,
MCVertex _u2,
MCVertex _u3 
)

Creates a new tetrahedron.

  • Checks existence of the tetrahedra!
  • Returns pointer to the new tetrahedra or a previously created one.
MCTetra * MCTetraS::New2 ( MCVertex _u0,
MCVertex _u1,
MCVertex _u2,
MCVertex _u3 
)

Creates a new tetrahedron.

  • The method doesn't check existence of the tetrahedra!
  • Returns pointer to the newly created tetrahedra.
template<class S >
void vctl::MCTetraS::serialize ( mds::mod::CChannelSerializer< S > &  Writer) [inline]

Serializes the tetrahedral mesh.

void vctl::MCTetraS::SetActualValueFlag ( unsigned int  _value) [inline]

Sets value of the actual value flag.

bool MCTetraS::TestEdgeExistence ( MCVertex _u0,
MCVertex _u1 
)

Checks if a given edge exists in the mesh.

MCTetra * MCTetraS::TestExistence ( MCVertex _u0,
MCVertex _u1,
MCVertex _u2,
MCVertex _u3 
)

Checks if a specified tetrahedron already exists in the mesh.

  • Returns pointer to the found tetra, NULL otherwise.
bool MCTetraS::TestTriExistence ( MCVertex _u0,
MCVertex _u1,
MCVertex _u2 
)

Checks if a given triangle exists in the mesh.


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