OGS
GeoLib::Point Class Reference

Detailed Description

Definition at line 30 of file Point.h.

#include <Point.h>

Inheritance diagram for GeoLib::Point:
[legend]
Collaboration diagram for GeoLib::Point:
[legend]

Public Member Functions

 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
 

Protected Attributes

friend PointVec
 

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.
 

Constructor & Destructor Documentation

◆ Point() [1/4]

GeoLib::Point::Point ( )
default

◆ Point() [2/4]

GeoLib::Point::Point ( double x1,
double x2,
double x3,
std::size_t id = std::numeric_limits<std::size_t>::max() )
inline

Definition at line 35 of file Point.h.

37 : MathLib::Point3dWithID(std::array<double, 3>({{x1, x2, x3}}), id)
38 {
39 }

◆ Point() [3/4]

GeoLib::Point::Point ( MathLib::Point3d const & x,
std::size_t id )
inline

Definition at line 41 of file Point.h.

43 {
44 }

◆ Point() [4/4]

GeoLib::Point::Point ( std::array< double, 3 > const & x,
std::size_t id = std::numeric_limits<std::size_t>::max() )
inlineexplicit

Definition at line 46 of file Point.h.

49 {
50 }

Member Function Documentation

◆ getGeoType()

GEOTYPE GeoLib::Point::getGeoType ( ) const
inlineoverridevirtual

return a geometry type

Implements GeoLib::GeoObject.

Definition at line 53 of file Point.h.

53{ return GEOTYPE::POINT; }

References GeoLib::POINT.

Member Data Documentation

◆ PointVec

friend GeoLib::Point::PointVec
protected

Definition at line 56 of file Point.h.


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