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

Container of vertices in 3D space. More...

#include <mcvertices.h>

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

List of all members.

Public Member Functions

void ClearAll ()
 Removes all vertices from the container.
template<class S >
void deserialize (mds::mod::CChannelSerializer< S > &Reader)
 Deserializes the container of vertices.
void Erase (MCVertex *del_ent)
 Removes a given vertex from the container.
void EraseFreeVertices ()
 Erase vertices free from registered entities.
void GetRange (MCPoint3D &bod_min, MCPoint3D &bod_max)
 Returns bounding box (minimal and maximal coordinates) of all vertices.
bool GetTestExistence () const
 Returns true if vertex existence test is enabled.
void Indexing ()
 Assignes unique labels/indexes to all vertices in the container.
void MakeIndexVector (std::vector< MCVertex * > &pole_node)
 Creates an array of pointers to vertices ordered by previously assigned indexes.
 MCVerticeS (bool bTestExistence=false)
 Default constructor.
 MDS_ENTITY_COMPRESSION (mds::mod::CC_RAW)
 Standard method getEntityCompression().
 MDS_ENTITY_NAME ("MCVerticeS")
 Standard method getEntityName().
MCVertexNew (MCPoint3D &new_bod)
 Creates a new vertex.
MCVertexNew (double new_x, double new_y, double new_z)
 Creates a new vertex.
MCVertexNewFromWorkNode ()
 Creates a new vertex using the internal work node.
void RegenExistence ()
 Regenerates the internal tree used for testing vertex existence.
template<class S >
void serialize (mds::mod::CChannelSerializer< S > &Writer)
 Serializes the container of vertices.
void SetTestExistence (bool _value)
 Enables/disables vertex test existence.
MCVertexTestExistence (MCVertex *_test)
 Checks if a given vertex already exists in the container.
MCVertexTestExistence2 (MCPoint3D *_test)
 Checks if a given point already exists in the container.
void Transformation (MCTransformMatrix &matrix)
 Transform vertices by given transformation matrix.
 ~MCVerticeS ()
 Empty destructor.

Detailed Description

Container of vertices in 3D space.


Constructor & Destructor Documentation

vctl::MCVerticeS::MCVerticeS ( bool  bTestExistence = false) [inline]

Default constructor.

Empty destructor.


Member Function Documentation

void vctl::MCVerticeS::ClearAll ( ) [inline, virtual]

Removes all vertices from the container.

  • Clears the memory.

Reimplemented from vctl::MCEntitieS< MCVertex >.

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

Deserializes the container of vertices.

void MCVerticeS::Erase ( MCVertex del_ent)

Removes a given vertex from the container.

  • Removes the vertex from the internal sorting queue.
  • The vertex is destroyed and the memory is cleared.

Erase vertices free from registered entities.

void MCVerticeS::GetRange ( MCPoint3D bod_min,
MCPoint3D bod_max 
)

Returns bounding box (minimal and maximal coordinates) of all vertices.

bool vctl::MCVerticeS::GetTestExistence ( ) const [inline]

Returns true if vertex existence test is enabled.

Assignes unique labels/indexes to all vertices in the container.

void MCVerticeS::MakeIndexVector ( std::vector< MCVertex * > &  pole_node)

Creates an array of pointers to vertices ordered by previously assigned indexes.

Standard method getEntityCompression().

Standard method getEntityName().

Creates a new vertex.

  • Tests existence of the vertex if enabled.
  • Returns pointer to the newly created vertex or an existing one.
MCVertex * MCVerticeS::New ( double  new_x,
double  new_y,
double  new_z 
)

Creates a new vertex.

  • Tests existence of the vertex if enabled.
  • Returns pointer to the newly created vertex or an existing one.

Creates a new vertex using the internal work node.

  • Tests existence of the vertex if enabled.
  • Returns pointer to the newly created vertex or an existing one.

Regenerates the internal tree used for testing vertex existence.

template<class S >
void vctl::MCVerticeS::serialize ( mds::mod::CChannelSerializer< S > &  Writer) [inline]

Serializes the container of vertices.

void vctl::MCVerticeS::SetTestExistence ( bool  _value) [inline]

Enables/disables vertex test existence.

Checks if a given vertex already exists in the container.

  • Returns pointer to a found vertex, NULL otherwise.

Checks if a given point already exists in the container.

  • Returns pointer to a found vertex, NULL otherwise.

Transform vertices by given transformation matrix.


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