![]() |
OGS
|
Definition at line 17 of file PolygonWithSegmentMarker.h.
#include <PolygonWithSegmentMarker.h>
Public Member Functions | |
| PolygonWithSegmentMarker (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::Polygon | |
| Polygon (const Polyline &ply, bool init=true) | |
| Polygon (Polygon const &other) | |
| Polygon & | operator= (Polygon const &rhs)=delete |
| ~Polygon () override | |
| bool | initialise () |
| bool | isPntInPolygon (MathLib::Point3d const &pnt) const |
| bool | containsSegment (GeoLib::LineSegment const &segment) const |
| bool | isPolylineInPolygon (const Polyline &ply) const |
| bool | isPartOfPolylineInPolygon (const Polyline &ply) const |
| bool | getNextIntersectionPointPolygonLine (GeoLib::LineSegment const &seg, GeoLib::Point &intersection_pnt, std::size_t &seg_num) const |
| std::list< Polygon * > const & | computeListOfSimplePolygons () |
| 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 14 of file PolygonWithSegmentMarker.cpp.
References GeoLib::Polygon::Polygon(), _marker, and GeoLib::Polyline::getNumberOfPoints().
|
overridevirtual |
Method calls
Reimplemented from GeoLib::Polyline.
Definition at line 31 of file PolygonWithSegmentMarker.cpp.
References _marker, and GeoLib::Polyline::addPoint().
|
overridevirtual |
Method calls the
Reimplemented from GeoLib::Polyline.
Definition at line 41 of file PolygonWithSegmentMarker.cpp.
References _marker, and GeoLib::Polyline::insertPoint().
| bool GeoLib::PolygonWithSegmentMarker::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 26 of file PolygonWithSegmentMarker.cpp.
References _marker.
| void GeoLib::PolygonWithSegmentMarker::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 21 of file PolygonWithSegmentMarker.cpp.
References _marker.
|
private |
Definition at line 51 of file PolygonWithSegmentMarker.h.
Referenced by PolygonWithSegmentMarker(), addPoint(), insertPoint(), isSegmentMarked(), and markSegment().