![]() |
OGS
|
Class Point3dWithID is derived from class Point3d in order to extend the class Point3d with an id.
Definition at line 25 of file Point3dWithID.h.
#include <Point3dWithID.h>
Public Member Functions | |
Point3dWithID (double x0, double x1, double x2, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
Point3dWithID (std::array< double, 3 > const &coords, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
Point3dWithID (MathLib::Point3d const &pnt, std::size_t id=std::numeric_limits< std::size_t >::max()) | |
Point3dWithID () | |
std::size_t | getID () const |
![]() | |
TemplatePoint () | |
TemplatePoint (std::array< double, DIM > x) | |
TemplatePoint (TemplatePoint const &)=default | |
virtual | ~TemplatePoint ()=default |
TemplatePoint & | operator= (TemplatePoint const &)=default |
const double & | operator[] (std::size_t idx) const |
const access operator The access to the point coordinates is like the access to a field. Code example: More... | |
double & | operator[] (std::size_t idx) |
access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ). More... | |
const double * | getCoords () const |
double * | getCoords () |
virtual void | write (std::ostream &os) const |
virtual void | read (std::istream &is) |
Protected Member Functions | |
void | setID (std::size_t id) |
Sets the ID of a node to the given value. More... | |
Private Attributes | |
std::size_t | id_ |
|
inline |
Constructs a point with the coordinates x0, x1 and x2 and the provided id.
x0 | x coordinate of point |
x1 | y coordinate of point |
x2 | z coordinate of point |
id | the id of the object [default: max of std::size_t] |
Definition at line 33 of file Point3dWithID.h.
|
inlineexplicit |
Constructs a point using std::array<double,3> as coordinates and the provided id.
coords | coordinates of the point |
id | the id of the object [default: max of std::size_t] |
Definition at line 42 of file Point3dWithID.h.
|
inlineexplicit |
Constructs a point with the same coordinates as the given Point3d pnt and the provided id.
pnt | a MathLib::Point3d object containing the coordinates |
id | the id of the object [default: max of std::size_t] |
Definition at line 52 of file Point3dWithID.h.
|
inline |
Default constructor that initializes the id with max of std::size_t the default constructor of class Point3d.
Definition at line 60 of file Point3dWithID.h.
|
inline |
Definition at line 62 of file Point3dWithID.h.
References id_.
Referenced by MeshGeoToolsLib::BoundaryElementsAtPoint::BoundaryElementsAtPoint(), GeoLib::PointVec::PointVec(), FileIO::Gocad::GocadSGridReader::addFaceSetQuad(), ProcessLib::PythonBoundaryConditionLocalAssembler< ShapeFunction, IntegrationMethod, GlobalDim >::assemble(), ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler< ShapeFunction, IntegrationMethod, GlobalDim >::assemble(), MeshLib::MeshRevision::collapseNodeIndices(), MeshLib::MeshRevision::constructFourNodeElement(), MeshLib::MeshRevision::constructLine(), MeshLib::MeshRevision::constructTri(), MeshLib::copyElement(), GeoLib::DuplicateGeometry::copySurfacesVector(), MeshLib::createFlippedElement(), MeshLib::anonymous_namespace{ConvertToLinearMesh.cpp}::createLinearElement(), MeshLib::createNodesAndIDMapFromElements(), NumLib::MeshComponentMap::createParallelMeshComponentMap(), MeshLib::MeshLayerMapper::createStaticLayers(), ProcessLib::extractInnerAndOuterNodes(), MeshLib::extrudeElement(), MeshLib::MeshRevision::findPyramidTopNode(), MeshLib::getBaseNodes(), ProcessLib::HeatTransportBHE::getBHEDataInMesh(), MeshLib::BoundaryExtraction::getBoundaryElementsAsMesh(), MeshLib::Mesh::getElementsConnectedToNode(), FileIO::Gocad::GocadNode::getFaceDirection(), ProcessLib::LIE::getFractureMatrixDataInMesh(), MeshGeoToolsLib::GeoMapper::getMeshElevation(), MeshLib::MeshSurfaceExtraction::getMeshSurface(), MeshLib::getNodeIndex(), getNodes(), MeshLib::MeshRevision::getNumberOfUniqueNodes(), MeshLib::ElementStatus::isActiveNode(), main(), ApplicationUtils::nodeIdBulkMesh(), ProcessLib::LIE::anonymous_namespace{MeshUtils.cpp}::IsCrackTip::operator()(), MeshLib::MeshRevision::reduceHex(), MeshLib::MeshRevision::reducePrism(), reorderNonlinearNodes(), ElementTreeModel::setElement(), MeshLib::ElementStatus::setElementStatus(), MeshLib::MeshRevision::subdivideHex(), MeshLib::MeshRevision::subdividePrism(), MeshLib::MeshRevision::subdividePyramid(), MeshLib::MeshRevision::subdivideQuad(), MeshLib::IO::transformToXDMFTopology(), GeoLib::PointVec::uniqueInsert(), and FileIO::GMSH::GMSHPoint::write().
|
inlineprotected |
Sets the ID of a node to the given value.
Definition at line 66 of file Point3dWithID.h.
References id_.
Referenced by FileIO::Gocad::GocadNode::resetID(), and GeoLib::PointVec::uniqueInsert().
|
private |
Definition at line 69 of file Point3dWithID.h.