|  | VectorEntity
    1.1.0
    Medical Data Segmentation Toolkit | 
Base class for all vector entities like edges, etc. More...
#include <mcentity.h>

| Public Member Functions | |
| template<class S > | |
| void | DeserializeEntity (mds::mod::CChannelSerializer< S > &Reader) | 
| Deserializes the entity attributes. | |
| int | GetFlag () | 
| Returns the current value of internal flags. | |
| virtual unsigned int | GetHashCode () const =0 | 
| Calculates hash code identifieng the entity. | |
| int | GetObject () const | 
| Returns the object number. | |
| double & | GetValue () | 
| Returns the current value attribute. | |
| const double & | GetValue () const | 
| void * | GetValuePtr () const | 
| Returns the current value of the pointer attribute. | |
| void | MaskFlag (int mask_flag) | 
| Clears all bits specified in the mask. | |
| MCEntity () | |
| Default constructor. | |
| void | ReplaceFlag (int new_flag) | 
| Changes the internal flags completely. | |
| template<class S > | |
| void | SerializeEntity (mds::mod::CChannelSerializer< S > &Writer) | 
| Serialization of entity attributes. | |
| void | SetEntityAttributes (MCEntity< ENTITY_TYPE > *entity) | 
| Copies all entity attributes. | |
| void | SetFlag (int set_flag) | 
| Adds a given flag using the binary or operation. | |
| void | SetObject (int _value) | 
| Sets the object number. | |
| void | SetValue (const double &_value) | 
| Sets the value attribute. | |
| void | SetValuePtr (void *_ptr) | 
| Sets the pointer attribute. | |
| bool | TestFlag (int test_flag) const | 
| Checks if a given flag is present. | |
| virtual bool | TestIdentity (ENTITY_TYPE *test_entity) const =0 | 
| Compares two entities and returns true if they are equal. | |
| virtual std::string | ToString () const =0 | 
| Returns textual representation of all entity attributes. | |
| virtual | ~MCEntity () | 
| Virtual destructor. | |
| Static Public Member Functions | |
| static unsigned int | MakeStringHashCode (const char *hash_string, int hash_string_size) | 
| Returns a simple hash code of a given block of bytes. | |
| Protected Attributes | |
| int | flag | 
| Internal entity flags. | |
| int | object | 
| Entity number. | |
| double | value | 
| A user specific value attribute of the entity. | |
| void * | value_ptr | 
| A user specific pointer attribute of the entity. | |
Base class for all vector entities like edges, etc.
| vctl::MCEntity< ENTITY_TYPE >::MCEntity | ( | ) |  [inline] | 
Default constructor.
| virtual vctl::MCEntity< ENTITY_TYPE >::~MCEntity | ( | ) |  [inline, virtual] | 
Virtual destructor.
| void vctl::MCEntity< ENTITY_TYPE >::DeserializeEntity | ( | mds::mod::CChannelSerializer< S > & | Reader | ) |  [inline] | 
Deserializes the entity attributes.
Reimplemented in vctl::MCVertex.
| int vctl::MCEntity< ENTITY_TYPE >::GetFlag | ( | ) |  [inline] | 
Returns the current value of internal flags.
| virtual unsigned int vctl::MCEntity< ENTITY_TYPE >::GetHashCode | ( | ) | const  [pure virtual] | 
Calculates hash code identifieng the entity.
Implemented in vctl::MCTetra, vctl::MCTri, vctl::MCEdge, and vctl::MCVertex.
| int vctl::MCEntity< ENTITY_TYPE >::GetObject | ( | ) | const  [inline] | 
Returns the object number.
| double& vctl::MCEntity< ENTITY_TYPE >::GetValue | ( | ) |  [inline] | 
Returns the current value attribute.
| void* vctl::MCEntity< ENTITY_TYPE >::GetValuePtr | ( | ) | const  [inline] | 
Returns the current value of the pointer attribute.
| static unsigned int vctl::MCEntity< ENTITY_TYPE >::MakeStringHashCode | ( | const char * | hash_string, | 
| int | hash_string_size | ||
| ) |  [inline, static] | 
Returns a simple hash code of a given block of bytes.
| void vctl::MCEntity< ENTITY_TYPE >::MaskFlag | ( | int | mask_flag | ) |  [inline] | 
Clears all bits specified in the mask.
| void vctl::MCEntity< ENTITY_TYPE >::ReplaceFlag | ( | int | new_flag | ) |  [inline] | 
Changes the internal flags completely.
| void vctl::MCEntity< ENTITY_TYPE >::SerializeEntity | ( | mds::mod::CChannelSerializer< S > & | Writer | ) |  [inline] | 
Serialization of entity attributes.
Reimplemented in vctl::MCTetra, vctl::MCTri, vctl::MCEdge, and vctl::MCVertex.
| void vctl::MCEntity< ENTITY_TYPE >::SetEntityAttributes | ( | MCEntity< ENTITY_TYPE > * | entity | ) |  [inline] | 
Copies all entity attributes.
| void vctl::MCEntity< ENTITY_TYPE >::SetFlag | ( | int | set_flag | ) |  [inline] | 
Adds a given flag using the binary or operation.
| void vctl::MCEntity< ENTITY_TYPE >::SetObject | ( | int | _value | ) |  [inline] | 
Sets the object number.
| void vctl::MCEntity< ENTITY_TYPE >::SetValue | ( | const double & | _value | ) |  [inline] | 
Sets the value attribute.
| void vctl::MCEntity< ENTITY_TYPE >::SetValuePtr | ( | void * | _ptr | ) |  [inline] | 
Sets the pointer attribute.
| bool vctl::MCEntity< ENTITY_TYPE >::TestFlag | ( | int | test_flag | ) | const  [inline] | 
Checks if a given flag is present.
| virtual bool vctl::MCEntity< ENTITY_TYPE >::TestIdentity | ( | ENTITY_TYPE * | test_entity | ) | const  [pure virtual] | 
Compares two entities and returns true if they are equal.
Implemented in vctl::MCTetra, vctl::MCTri, vctl::MCEdge, and vctl::MCVertex.
| virtual std::string vctl::MCEntity< ENTITY_TYPE >::ToString | ( | ) | const  [pure virtual] | 
Returns textual representation of all entity attributes.
Implemented in vctl::MCTetra, vctl::MCTri, vctl::MCEdge, and vctl::MCVertex.
| int vctl::MCEntity< ENTITY_TYPE >::flag  [protected] | 
Internal entity flags.
| int vctl::MCEntity< ENTITY_TYPE >::object  [protected] | 
Entity number.
| double vctl::MCEntity< ENTITY_TYPE >::value  [protected] | 
A user specific value attribute of the entity.
| void* vctl::MCEntity< ENTITY_TYPE >::value_ptr  [protected] | 
A user specific pointer attribute of the entity.
 1.7.6.1
 1.7.6.1