RINGMesh
Version 5.0.0
A programming library for geological model meshes
|
Abstract base class describing one entity of a GeoModel. More...
#include <geomodel_entity.h>
Public Member Functions | |
virtual | ~GeoModelEntity ()=default |
virtual bool | is_on_voi () const =0 |
virtual bool | is_valid () const =0 |
const GeoModel< DIMENSION > & | geomodel () const |
const std::string & | name () const |
index_t | index () const |
Protected Member Functions | |
GeoModelEntity (const GeoModel< DIMENSION > &geomodel, index_t id) | |
void | copy_name (const GeoModelEntity< DIMENSION > &from) |
virtual bool | is_index_valid () const =0 |
Protected Attributes | |
const GeoModel< DIMENSION > & | geomodel_ |
Reference to the GeoModel owning this entity. More... | |
std::string | name_ = std::string{ "Unnamed" } |
Name of the entity - default is "Unnamed". More... | |
index_t | id_ { NO_ID } |
Index of the entity. More... | |
Private Member Functions | |
ringmesh_disable_copy_and_move (GeoModelEntity) | |
ringmesh_template_assert_2d_or_3d (DIMENSION) | |
Abstract base class describing one entity of a GeoModel.
Definition at line 62 of file geomodel_entity.h.
|
virtualdefault |
|
inlineprotected |
Client code should only create GeoModelEntities through GeoModelBuilderTopology class.
[in] | geomodel | Geomodel owning the Entity to create |
[in] | id | Index of the entity in the corresponding vector in the geomodel |
[in] | name | Name of the entity |
[in] | geological_feature | Geological feature of the entity, none by default. |
Definition at line 98 of file geomodel_entity.h.
|
inlineprotected |
Definition at line 103 of file geomodel_entity.h.
|
inline |
Definition at line 73 of file geomodel_entity.h.
|
inline |
Definition at line 81 of file geomodel_entity.h.
|
protectedpure virtual |
Implemented in RINGMesh::GeoModelMeshEntity< DIMENSION >, and RINGMesh::GeoModelGeologicalEntity< DIMENSION >.
|
pure virtual |
|
pure virtual |
Implemented in RINGMesh::GeoModelGeologicalEntity< DIMENSION >, and RINGMesh::GeoModelMeshEntity< DIMENSION >.
|
inline |
Definition at line 77 of file geomodel_entity.h.
|
private |
|
private |
|
protected |
Reference to the GeoModel owning this entity.
Definition at line 111 of file geomodel_entity.h.
|
protected |
Index of the entity.
Definition at line 116 of file geomodel_entity.h.
|
protected |
Name of the entity - default is "Unnamed".
Definition at line 113 of file geomodel_entity.h.