OGS
|
This is a polyline with the possibility to mark some segments. Thus class PolylineWithSegmentMarker is derived from class Polyline.
Definition at line 26 of file PolylineWithSegmentMarker.h.
#include <PolylineWithSegmentMarker.h>
Public Member Functions | |
PolylineWithSegmentMarker (GeoLib::Polyline const &polyline) | |
void | markSegment (std::size_t seg_num, bool mark_val=true) |
bool | isSegmentMarked (std::size_t seg_num) const |
bool | addPoint (std::size_t pnt_id) override |
bool | insertPoint (std::size_t pos, std::size_t pnt_id) override |
Public Member Functions inherited from GeoLib::Polyline | |
Polyline (const std::vector< Point * > &pnt_vec) | |
Polyline (const Polyline &ply) | |
Polyline & | operator= (Polyline const &other)=delete |
~Polyline () override=default | |
GEOTYPE | getGeoType () const override |
return a geometry type | |
void | removePoint (std::size_t pos) |
void | closePolyline () |
std::size_t | getNumberOfPoints () const |
std::size_t | getNumberOfSegments () const |
bool | isClosed () const |
bool | isCoplanar () const |
bool | isPointIDInPolyline (std::size_t pnt_id) const |
std::size_t | getPointID (std::size_t const i) const |
void | setPointID (std::size_t idx, std::size_t id) |
const Point * | getPoint (std::size_t i) const |
returns the i-th point contained in the polyline | |
SegmentIterator | begin () const |
SegmentIterator | end () const |
std::vector< Point * > const & | getPointsVec () const |
double | getDistanceAlongPolyline (const MathLib::Point3d &pnt, const double epsilon_radius) const |
Public Member Functions inherited from GeoLib::GeoObject | |
virtual | ~GeoObject ()=default |
Private Attributes | |
std::vector< bool > | _marker |
Additional Inherited Members | |
Static Public Member Functions inherited from GeoLib::Polyline | |
static Polyline * | constructPolylineFromSegments (const std::vector< Polyline * > &ply_vec, double prox=0.0) |
Protected Member Functions inherited from GeoLib::Polyline | |
void | reverseOrientation () |
std::vector< std::size_t > const & | getPolylinePointIDs () const |
Protected Attributes inherited from GeoLib::Polyline | |
const std::vector< Point * > & | _ply_pnts |
|
explicit |
Definition at line 19 of file PolylineWithSegmentMarker.cpp.
|
overridevirtual |
Method calls
Reimplemented from GeoLib::Polyline.
Definition at line 35 of file PolylineWithSegmentMarker.cpp.
References _marker, and GeoLib::Polyline::addPoint().
|
overridevirtual |
Method calls the
Reimplemented from GeoLib::Polyline.
Definition at line 45 of file PolylineWithSegmentMarker.cpp.
References _marker, and GeoLib::Polyline::insertPoint().
Referenced by FileIO::GMSH::GMSHPolygonTree::checkIntersectionsSegmentExistingPolylines(), and FileIO::GMSH::GMSHPolygonTree::insertPolyline().
bool GeoLib::PolylineWithSegmentMarker::isSegmentMarked | ( | std::size_t | seg_num | ) | const |
Method returns the value of the mark for the given segment.
seg_num | segment number |
Definition at line 30 of file PolylineWithSegmentMarker.cpp.
References _marker.
Referenced by FileIO::GMSH::GMSHPolygonTree::insertPolyline().
void GeoLib::PolylineWithSegmentMarker::markSegment | ( | std::size_t | seg_num, |
bool | mark_val = true ) |
Method marks the segment (default mark is true).
seg_num | the segment number that should be marked |
mark_val | the value of the flag (true or false) |
Definition at line 25 of file PolylineWithSegmentMarker.cpp.
References _marker.
Referenced by FileIO::GMSH::GMSHPolygonTree::insertPolyline().
|
private |
Definition at line 59 of file PolylineWithSegmentMarker.h.
Referenced by addPoint(), insertPoint(), isSegmentMarked(), and markSegment().