VectorEntity
1.1.0
Medical Data Segmentation Toolkit
|
Container of vertices in 3D space. More...
#include <mcvertices.h>
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(). | |
MCVertex * | New (MCPoint3D &new_bod) |
Creates a new vertex. | |
MCVertex * | New (double new_x, double new_y, double new_z) |
Creates a new vertex. | |
MCVertex * | NewFromWorkNode () |
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. | |
MCVertex * | TestExistence (MCVertex *_test) |
Checks if a given vertex already exists in the container. | |
MCVertex * | TestExistence2 (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. |
Container of vertices in 3D space.
vctl::MCVerticeS::MCVerticeS | ( | bool | bTestExistence = false | ) | [inline] |
Default constructor.
vctl::MCVerticeS::~MCVerticeS | ( | ) | [inline] |
Empty destructor.
void vctl::MCVerticeS::ClearAll | ( | ) | [inline, virtual] |
Removes all vertices from the container.
Reimplemented from vctl::MCEntitieS< MCVertex >.
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.
void MCVerticeS::EraseFreeVertices | ( | ) |
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.
void MCVerticeS::Indexing | ( | ) |
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.
vctl::MCVerticeS::MDS_ENTITY_COMPRESSION | ( | mds::mod::CC_RAW | ) |
Standard method getEntityCompression().
vctl::MCVerticeS::MDS_ENTITY_NAME | ( | "MCVerticeS" | ) |
Standard method getEntityName().
MCVertex * MCVerticeS::New | ( | MCPoint3D & | new_bod | ) |
Creates a new vertex.
MCVertex * MCVerticeS::New | ( | double | new_x, |
double | new_y, | ||
double | new_z | ||
) |
Creates a new vertex.
Creates a new vertex using the internal work node.
void MCVerticeS::RegenExistence | ( | ) |
Regenerates the internal tree used for testing vertex existence.
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.
MCVertex* vctl::MCVerticeS::TestExistence | ( | MCVertex * | _test | ) | [inline] |
Checks if a given vertex already exists in the container.
MCVertex* vctl::MCVerticeS::TestExistence2 | ( | MCPoint3D * | _test | ) | [inline] |
Checks if a given point already exists in the container.
void MCVerticeS::Transformation | ( | MCTransformMatrix & | matrix | ) |
Transform vertices by given transformation matrix.