Rose
Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
rose::PartitionedLine Class Reference

Partition lines across discontinuities introduced by the current map projection. More...

#include <MapProjection.h>

Inheritance diagram for rose::PartitionedLine:
Inheritance graph
[legend]
Collaboration diagram for rose::PartitionedLine:
Collaboration graph
[legend]

Public Types

using Predicate = std::function< bool(Position &, Position &)>
 A predicate which returns true if two Positions belong in the same partition.
 

Public Member Functions

void partition ()
 
void partition (Predicate p)
 
bool draw (std::function< bool(const Position &, const Position &)> p)
 

Protected Types

using LineSegment = std::vector< Position >
 The type of a line segment.
 
using LineParts = std::vector< LineSegment >
 The type of a partitioned line.
 

Protected Attributes

LineParts mLineParts {}
 The partitioned line segments.
 

Detailed Description

Partition lines across discontinuities introduced by the current map projection.


The documentation for this class was generated from the following file: