OGS
Polyline.h File Reference

Detailed Description

Definition of the PolyLine class.

Author
Thomas Fischer
Date
2010-01-14

Definition in file Polyline.h.

#include <cmath>
#include <vector>
#include "GeoObject.h"
#include "LineSegment.h"
#include "Point.h"
#include "MathLib/Point3d.h"
Include dependency graph for Polyline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GeoLib::Polyline
 Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices in the point vector. A polyline consists of at least one line segment. The polyline is specified by the points of the line segments. The class Polyline stores ids of pointers to the points in the _ply_pnt_ids vector. More...
 
class  GeoLib::Polyline::SegmentIterator
 

Namespaces

namespace  GeoLib
 

Functions

bool GeoLib::containsEdge (const Polyline &ply, std::size_t id0, std::size_t id1)
 
void GeoLib::resetPointIDs (Polyline &polyline, std::vector< std::size_t > const &mapping)
 Resets the point IDs of the polyline corresponding to the mapping.
 
void GeoLib::markUsedPoints (Polyline const &polyline, std::vector< bool > &used_points)
 Resets the point IDs of the polyline corresponding to the mapping.
 
bool GeoLib::operator== (Polyline const &lhs, Polyline const &rhs)
 
bool GeoLib::pointsAreIdentical (const std::vector< Point * > &pnt_vec, std::size_t i, std::size_t j, double prox)
 
std::unique_ptr< PolylineGeoLib::createPolyline (GeoLib::PointVec const &points_vec, std::vector< std::size_t > &&point_ids)
 Create a polyline from given point ids.