OGS
GeoLib::Point Class Reference

Detailed Description

Definition at line 34 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 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 ( )
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 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 
)
inline

Definition at line 45 of file Point.h.

46  : MathLib::Point3dWithID(x, id)
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() 
)
inlineexplicit

Definition at line 50 of file Point.h.

52  : MathLib::Point3dWithID(x, id)
53  {
54  }

Member Function Documentation

◆ getGeoType()

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

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
protected

Definition at line 60 of file Point.h.


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