GeoLib::Point Class Reference

Detailed Description

Definition at line 32 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 More...
- 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::TemplatePoint< double, 3 >
 TemplatePoint ()
 TemplatePoint (std::array< double, DIM > x)
 TemplatePoint (TemplatePoint const &)=default
virtual ~TemplatePoint ()=default
TemplatePointoperator= (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)
- 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. More...

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 37 of file Point.h.

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

◆ Point() [3/4]

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

Definition at line 43 of file Point.h.

44  : MathLib::Point3dWithID(x, id)
45  {
46  }

◆ 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 48 of file Point.h.

50  : MathLib::Point3dWithID(x, id)
51  {
52  }

Member Function Documentation

◆ getGeoType()

GEOTYPE GeoLib::Point::getGeoType ( ) const

return a geometry type

Implements GeoLib::GeoObject.

Definition at line 55 of file Point.h.

55 { return GEOTYPE::POINT; }

References GeoLib::POINT.

Member Data Documentation

◆ PointVec

friend GeoLib::Point::PointVec

Definition at line 58 of file Point.h.

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