|
| | PathPart (PathObject &path, MapCoordVector::size_type start_index, MapCoordVector::size_type end_index) |
| |
| | PathPart (const VirtualCoordVector &coords, MapCoordVector::size_type start_index, MapCoordVector::size_type end_index) |
| |
| | PathPart (PathObject &path, const VirtualPath &virtual_path) |
| |
| | ~PathPart ()=default |
| |
| PathPart & | operator= (const PathPart &rhs) |
| |
| void | setClosed (bool closed, bool may_use_existing_close_point=false) |
| | Closes or opens the sub-path. More...
|
| |
| void | connectEnds () |
| | Closes the subpath, merging the start and end point at their center. More...
|
| |
| void | reverse () |
| | Reverses the part's coordinates. More...
|
| |
| | VirtualPath (const MapCoordVector &coords) |
| |
| | VirtualPath (const MapCoordVector &coords, size_type first, size_type last) |
| |
| | VirtualPath (const VirtualCoordVector &coords) |
| |
| | VirtualPath (const VirtualCoordVector &coords, size_type first, size_type last) |
| |
| | VirtualPath (const MapCoordVector &flags, const MapCoordVectorF &coords) |
| |
| | VirtualPath (const MapCoordVector &flags, const MapCoordVectorF &coords, size_type first, size_type last) |
| |
| | VirtualPath (const VirtualPath &)=default |
| |
| | VirtualPath (VirtualPath &&)=default |
| |
| bool | empty () const |
| | Returns true if there are no nodes in this path. More...
|
| |
| size_type | size () const |
| | Returns the number of coordinates in this path. More...
|
| |
| size_type | countRegularNodes () const |
| | Calculates the number of regular nodes in this path. More...
|
| |
| bool | isClosed () const |
| | Returns true if the path is closed. More...
|
| |
| PathCoord::length_type | length () const |
| | Returns the length of the path. More...
|
| |
| double | calculateArea () const |
| | Calculates the area of this part. More...
|
| |
| QRectF | calculateExtent () const |
| |
| bool | intersectsBox (const QRectF &box) const |
| |
| bool | isPointInside (const MapCoordF &coord) const |
| |
| PathCoord | findClosestPointTo (MapCoordF coord, float &distance_squared, float distance_bound_squared, size_type start_index, size_type end_index) const |
| |
| size_type | prevCoordIndex (size_type base_index) const |
| | Determines the index of the previous regular coordinate. More...
|
| |
| size_type | nextCoordIndex (size_type base_index) const |
| | Determines the index of the next regular coordinate. More...
|
| |
| MapCoordF | calculateTangent (size_type i) const |
| |
| std::pair< MapCoordF, double > | calculateTangentScaling (size_type i) const |
| |
| MapCoordF | calculateTangent (size_type i, bool backward, bool &ok) const |
| | Calculates the path tangent at the given MapCoord index. More...
|
| |
| MapCoordF | calculateIncomingTangent (size_type i, bool &ok) const |
| | Similar to calculateTangent(). More...
|
| |
| MapCoordF | calculateOutgoingTangent (size_type i, bool &ok) const |
| | Similar to calculateTangent(). More...
|
| |
| void | copy (const SplitPathCoord &first, const SplitPathCoord &last, MapCoordVector &out_coords) const |
| |
| void | copy (const SplitPathCoord &first, const SplitPathCoord &last, MapCoordVector &out_flags, MapCoordVectorF &out_coords) const |
| |
| void | copyLengths (const SplitPathCoord &first, const SplitPathCoord &last, std::vector< PathCoord::length_type > &out_lengths) const |
| |
Helper class with information about parts of paths.
A part is a path segment which is separated from other parts by a hole point at its end.