OGS
FileIO::GMSH::GMSHPoint Class Referencefinal

Detailed Description

Definition at line 21 of file GMSHPoint.h.

#include <GMSHPoint.h>

Inheritance diagram for FileIO::GMSH::GMSHPoint:
[legend]
Collaboration diagram for FileIO::GMSH::GMSHPoint:
[legend]

Public Member Functions

 GMSHPoint (GeoLib::Point const &pnt, std::size_t id, double mesh_density)
 
void write (std::ostream &os) const
 
- Public Member Functions inherited from GeoLib::Point
 Point ()=default
 
 Point (double x1, double x2, double x3, std::size_t id=std::numeric_limits< std::size_t >::max())
 
 Point (MathLib::Point3d const &x, std::size_t id)
 
 Point (std::array< double, 3 > const &x, std::size_t id=std::numeric_limits< std::size_t >::max())
 
GEOTYPE getGeoType () const override
 return a geometry type
 
- Public Member Functions inherited from MathLib::Point3dWithID
 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
 
- Public Member Functions inherited from MathLib::Point3d
 Point3d ()
 
 Point3d (std::array< double, 3 > x)
 
virtual ~Point3d ()=default
 
 Point3d (Point3d const &)=default
 
Point3doperator= (Point3d 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:
 
double & operator[] (std::size_t idx)
 access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ).
 
const double * data () const
 
double * data ()
 
Eigen::Vector3d const & asEigenVector3d () const
 
Eigen::Vector3d & asEigenVector3d ()
 
- Public Member Functions inherited from GeoLib::GeoObject
virtual ~GeoObject ()=default
 

Private Attributes

double _mesh_density
 

Additional Inherited Members

- Protected Member Functions inherited from MathLib::Point3dWithID
void setID (std::size_t id)
 Sets the ID of a node to the given value.
 
- Protected Attributes inherited from GeoLib::Point
friend PointVec
 

Constructor & Destructor Documentation

◆ GMSHPoint()

FileIO::GMSH::GMSHPoint::GMSHPoint ( GeoLib::Point const & pnt,
std::size_t id,
double mesh_density )

Definition at line 21 of file GMSHPoint.cpp.

23 : GeoLib::Point(pnt, id), _mesh_density(mesh_density)
24{
25}

Member Function Documentation

◆ write()

void FileIO::GMSH::GMSHPoint::write ( std::ostream & os) const

Definition at line 27 of file GMSHPoint.cpp.

28{
29 os << "Point(" << getID() << ") = {" << (*this)[0] << ", " << (*this)[1]
30 << ", " << (*this)[2];
31 if (fabs(_mesh_density) > std::numeric_limits<double>::epsilon())
32 {
33 os << ", " << _mesh_density << "};";
34 }
35 else
36 {
37 os << "};";
38 }
39}
std::size_t getID() const

References _mesh_density, and MathLib::Point3dWithID::getID().

Member Data Documentation

◆ _mesh_density

double FileIO::GMSH::GMSHPoint::_mesh_density
private

Definition at line 28 of file GMSHPoint.h.

Referenced by write().


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