Public Member Functions | Static Public Member Functions | List of all members
f2c::types::Point Struct Reference

#include <Point.h>

Inheritance diagram for f2c::types::Point:
Inheritance graph
[legend]

Public Member Functions

Point clone () const
 
Point closestPointInSegment (const Point &seg_s, const Point &seg_e) const
 
double getAngleFromPoint () const
 
double getAngleFromPoints (const Point &end) const
 
Point getPointFromAngle (double angle, double dist) const
 
double getX () const
 
double getY () const
 
double getZ () const
 
bool operator!= (const Point &b) const
 
double operator* (const Point &b) const
 
Point operator* (double b) const
 
Pointoperator*= (double b)
 
Point operator+ (const Point &b) const
 
Point operator- (const Point &b) const
 
Point operator/ (double b) const
 
bool operator< (const Point &b) const
 
Pointoperator= (const Point &)
 
Pointoperator= (Point &&)
 
bool operator== (const Point &b) const
 
 Point ()
 
 Point (const Point &)
 
 Point (double x, double y, double z=0)
 
 Point (Point &&)
 
Point rotateFromPoint (double angle, const Point &p_r) const
 
template<class T >
std::vector< T > rotateFromPoint (double angle, const std::vector< T > &t) const
 
template<class T >
rotateFromPoint (double angle, const T &t) const
 
void setPoint (const OGRPoint &p)
 
void setPoint (const Point &p)
 
void setPoint (double x, double y, double z=0)
 
void setX (double x)
 
void setY (double y)
 
void setZ (double z)
 
double signedDistance2Segment (const Point &start, const Point &end) const
 
double X () const
 
double Y () const
 
double Z () const
 
 ~Point ()
 
- Public Member Functions inherited from f2c::types::Geometry< OGRPoint, wkbPoint >
bool crosses (const Geometry< T2, R2 > &geom) const
 Check if this and another geometry cross. More...
 
bool disjoint (const Geometry< T2, R2 > &geom) const
 Check if this and another geometry are disjoint. More...
 
double distance (const Geometry< T2, R2 > &p) const
 Compute shortest distance between this and another geometry. More...
 
std::string exportToGML () const
 
std::string exportToJson () const
 
std::string exportToKML () const
 
std::string exportToWkt () const
 
 Geometry ()
 
 Geometry (const Geometry &g)
 
 Geometry (const OGRGeometry *g)
 
 Geometry (const OGRPoint &g)
 
 Geometry (const OGRPoint *g)
 
 Geometry (Geometry &&g)
 
 Geometry (OGRGeometry *g, EmptyDestructor)
 
 Geometry (OGRPoint *g, EmptyDestructor)
 
 Geometry (std::shared_ptr< OGRPoint > g)
 
OGRPoint * get ()
 
const OGRPoint * get () const
 
double getDimMaxX () const
 Get the maximum x value of the geometry. More...
 
double getDimMaxY () const
 Get the maximum y value of the geometry. More...
 
double getDimMinX () const
 Get the minimum x value of the geometry. More...
 
double getDimMinY () const
 Get the minimum y value of the geometry. More...
 
double getHeight () const
 Get the height of the geometry. More...
 
double getMinSafeLength () const
 
double getWidth () const
 Get the width of the geometry. More...
 
void importFromWkt (const std::string &text)
 
bool intersects (const Geometry< T2, R2 > &geom) const
 Check if this and another geometry intersects. More...
 
bool isEmpty () const
 
OGRGeometry * OGRBuffer (double dfDist, int side=0) const
 
bool operator!= (const Geometry< OGRPoint, R > &geom2) const
 
std::shared_ptr< OGRPoint > operator-> ()
 
std::shared_ptr< const OGRPoint > operator-> () const
 
Geometryoperator= (const Geometry &g)
 
Geometryoperator= (Geometry &&g)
 
bool operator== (const Geometry< OGRPoint, R > &geom2) const
 
bool touches (const Geometry< T2, R2 > &geom) const
 Check if this and another geometry touch each other. More...
 
bool within (const Geometry< T2, R2 > &geom) const
 Check if this geometry is inside another geometry. More...
 
 ~Geometry ()
 

Static Public Member Functions

static double det (const Point &u, const Point &v)
 
static double getAngleFromPoints (const Point &p1, const Point &p2, const Point &p3)
 Angle between vectors p1->p2 and p2->p3. More...
 
static Point intersectionOfLines (const Point &l1_s, const Point &l1_e, const Point &l2_s, const Point &l2_e)
 
- Static Public Member Functions inherited from f2c::types::Geometry< OGRPoint, wkbPoint >
static std::vector< double > getAngContinuity (const std::vector< double > &val)
 
static double getAngContinuity (double prev_val, double val)
 
static double getAngleAvg (double a, double b)
 Get the angle that is between a and b in the shortest direction. More...
 
static double getAngleDiffAbs (double a, double b)
 
static double mod (double a, double b)
 
static double mod_2pi (double val)
 

Additional Inherited Members

- Protected Member Functions inherited from f2c::types::Geometry< OGRPoint, wkbPoint >
To downCast (From *f) const
 
- Static Protected Member Functions inherited from f2c::types::Geometry< OGRPoint, wkbPoint >
static RetType destroyResGeom (OGRGeometry *)
 
- Protected Attributes inherited from f2c::types::Geometry< OGRPoint, wkbPoint >
std::shared_ptr< OGRPoint > data_
 

Detailed Description

Definition at line 21 of file Point.h.

Constructor & Destructor Documentation

◆ Point() [1/4]

f2c::types::Point::Point ( )

Definition at line 11 of file Point.cpp.

◆ Point() [2/4]

f2c::types::Point::Point ( double  x,
double  y,
double  z = 0 
)

Definition at line 13 of file Point.cpp.

◆ Point() [3/4]

f2c::types::Point::Point ( const Point p)

Definition at line 19 of file Point.cpp.

◆ Point() [4/4]

f2c::types::Point::Point ( Point &&  )
default

◆ ~Point()

f2c::types::Point::~Point ( )
default

Member Function Documentation

◆ clone()

Point f2c::types::Point::clone ( ) const

Definition at line 88 of file Point.cpp.

◆ closestPointInSegment()

Point f2c::types::Point::closestPointInSegment ( const Point seg_s,
const Point seg_e 
) const

Definition at line 169 of file Point.cpp.

◆ det()

double f2c::types::Point::det ( const Point u,
const Point v 
)
static

Definition at line 84 of file Point.cpp.

◆ getAngleFromPoint()

double f2c::types::Point::getAngleFromPoint ( ) const

Definition at line 136 of file Point.cpp.

◆ getAngleFromPoints() [1/2]

double f2c::types::Point::getAngleFromPoints ( const Point end) const

Definition at line 132 of file Point.cpp.

◆ getAngleFromPoints() [2/2]

double f2c::types::Point::getAngleFromPoints ( const Point p1,
const Point p2,
const Point p3 
)
static

Angle between vectors p1->p2 and p2->p3.

Definition at line 140 of file Point.cpp.

◆ getPointFromAngle()

Point f2c::types::Point::getPointFromAngle ( double  angle,
double  dist 
) const

Definition at line 145 of file Point.cpp.

◆ getX()

double f2c::types::Point::getX ( ) const

Definition at line 95 of file Point.cpp.

◆ getY()

double f2c::types::Point::getY ( ) const

Definition at line 96 of file Point.cpp.

◆ getZ()

double f2c::types::Point::getZ ( ) const

Definition at line 97 of file Point.cpp.

◆ intersectionOfLines()

Point f2c::types::Point::intersectionOfLines ( const Point l1_s,
const Point l1_e,
const Point l2_s,
const Point l2_e 
)
static

Definition at line 157 of file Point.cpp.

◆ operator!=()

bool f2c::types::Point::operator!= ( const Point b) const

Definition at line 48 of file Point.cpp.

◆ operator*() [1/2]

double f2c::types::Point::operator* ( const Point b) const

Definition at line 76 of file Point.cpp.

◆ operator*() [2/2]

Point f2c::types::Point::operator* ( double  b) const

Definition at line 72 of file Point.cpp.

◆ operator*=()

Point & f2c::types::Point::operator*= ( double  b)

Definition at line 65 of file Point.cpp.

◆ operator+()

Point f2c::types::Point::operator+ ( const Point b) const

Definition at line 57 of file Point.cpp.

◆ operator-()

Point f2c::types::Point::operator- ( const Point b) const

Definition at line 61 of file Point.cpp.

◆ operator/()

Point f2c::types::Point::operator/ ( double  b) const

Definition at line 80 of file Point.cpp.

◆ operator<()

bool f2c::types::Point::operator< ( const Point b) const

Definition at line 52 of file Point.cpp.

◆ operator=() [1/2]

Point & f2c::types::Point::operator= ( const Point p)

Definition at line 30 of file Point.cpp.

◆ operator=() [2/2]

Point & f2c::types::Point::operator= ( Point &&  p)

Definition at line 23 of file Point.cpp.

◆ operator==()

bool f2c::types::Point::operator== ( const Point b) const

Definition at line 42 of file Point.cpp.

◆ rotateFromPoint() [1/3]

Point f2c::types::Point::rotateFromPoint ( double  angle,
const Point p_r 
) const

Definition at line 121 of file Point.cpp.

◆ rotateFromPoint() [2/3]

template<class T >
std::vector< T > f2c::types::Point::rotateFromPoint ( double  angle,
const std::vector< T > &  t 
) const

Definition at line 96 of file Point.h.

◆ rotateFromPoint() [3/3]

template<class T >
T f2c::types::Point::rotateFromPoint ( double  angle,
const T &  t 
) const

Definition at line 106 of file Point.h.

◆ setPoint() [1/3]

void f2c::types::Point::setPoint ( const OGRPoint &  p)

Definition at line 109 of file Point.cpp.

◆ setPoint() [2/3]

void f2c::types::Point::setPoint ( const Point p)

Definition at line 115 of file Point.cpp.

◆ setPoint() [3/3]

void f2c::types::Point::setPoint ( double  x,
double  y,
double  z = 0 
)

Definition at line 103 of file Point.cpp.

◆ setX()

void f2c::types::Point::setX ( double  x)

Definition at line 99 of file Point.cpp.

◆ setY()

void f2c::types::Point::setY ( double  y)

Definition at line 100 of file Point.cpp.

◆ setZ()

void f2c::types::Point::setZ ( double  z)

Definition at line 101 of file Point.cpp.

◆ signedDistance2Segment()

double f2c::types::Point::signedDistance2Segment ( const Point start,
const Point end 
) const

Definition at line 149 of file Point.cpp.

◆ X()

double f2c::types::Point::X ( ) const

Definition at line 92 of file Point.cpp.

◆ Y()

double f2c::types::Point::Y ( ) const

Definition at line 93 of file Point.cpp.

◆ Z()

double f2c::types::Point::Z ( ) const

Definition at line 94 of file Point.cpp.


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


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31