GeoLib::Point Class Reference

Detailed Description

Definition at line 34 of file Point.h.

#include <Point.h>

Inheritance diagram for GeoLib::Point:
Collaboration diagram for GeoLib::Point:

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
virtual GEOTYPE getGeoType () const =0
 return a geometry type

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 ( )

◆ Point() [2/4]

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

Definition at line 39 of file Point.h.

41 : MathLib::Point3dWithID(std::array<double, 3>({{x1, x2, x3}}), id)
42 {
43 }

◆ Point() [3/4]

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

Definition at line 45 of file Point.h.

47 {
48 }

◆ Point() [4/4]

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

Definition at line 50 of file Point.h.

53 {
54 }

Member Function Documentation

◆ getGeoType()

GEOTYPE GeoLib::Point::getGeoType ( ) const

return a geometry type

Implements GeoLib::GeoObject.

Definition at line 57 of file Point.h.

57{ return GEOTYPE::POINT; }

References GeoLib::POINT.

Member Data Documentation

◆ PointVec

friend GeoLib::Point::PointVec

Definition at line 60 of file Point.h.

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