GEOS  3.9.1dev
Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
geos::simplify::TaggedLineString Class Reference

Contains and owns a list of TaggedLineSegments. More...

#include <TaggedLineString.h>

Collaboration diagram for geos::simplify::TaggedLineString:
[legend]

Public Types

typedef std::vector< geom::CoordinateCoordVect
 
typedef std::unique_ptr< CoordVectCoordVectPtr
 
typedef geom::CoordinateSequence CoordSeq
 
typedef std::unique_ptr< geom::CoordinateSequenceCoordSeqPtr
 

Public Member Functions

 TaggedLineString (const geom::LineString *nParentLine, std::size_t minimumSize=2)
 
 ~TaggedLineString ()
 
std::size_t getMinimumSize () const
 
const geom::LineStringgetParent () const
 
const CoordSeqgetParentCoordinates () const
 
CoordSeqPtr getResultCoordinates () const
 
std::size_t getResultSize () const
 
TaggedLineSegmentgetSegment (std::size_t i)
 
const TaggedLineSegmentgetSegment (std::size_t i) const
 
std::vector< TaggedLineSegment * > & getSegments ()
 
const std::vector< TaggedLineSegment * > & getSegments () const
 
void addToResult (std::unique_ptr< TaggedLineSegment > seg)
 
std::unique_ptr< geom::GeometryasLineString () const
 
std::unique_ptr< geom::GeometryasLinearRing () const
 

Private Member Functions

void init ()
 
 TaggedLineString (const TaggedLineString &)
 
TaggedLineStringoperator= (const TaggedLineString &)
 

Static Private Member Functions

static CoordVectPtr extractCoordinates (const std::vector< TaggedLineSegment * > &segs)
 

Private Attributes

const geom::LineStringparentLine
 
std::vector< TaggedLineSegment * > segs
 
std::vector< TaggedLineSegment * > resultSegs
 
std::size_t minimumSize
 

Detailed Description

Contains and owns a list of TaggedLineSegments.

Definition at line 58 of file TaggedLineString.h.

Member Typedef Documentation

Definition at line 66 of file TaggedLineString.h.

Definition at line 68 of file TaggedLineString.h.

Definition at line 62 of file TaggedLineString.h.

Definition at line 64 of file TaggedLineString.h.

Constructor & Destructor Documentation

geos::simplify::TaggedLineString::TaggedLineString ( const geom::LineString nParentLine,
std::size_t  minimumSize = 2 
)
geos::simplify::TaggedLineString::~TaggedLineString ( )
geos::simplify::TaggedLineString::TaggedLineString ( const TaggedLineString )
private

Member Function Documentation

void geos::simplify::TaggedLineString::addToResult ( std::unique_ptr< TaggedLineSegment seg)
std::unique_ptr<geom::Geometry> geos::simplify::TaggedLineString::asLinearRing ( ) const
std::unique_ptr<geom::Geometry> geos::simplify::TaggedLineString::asLineString ( ) const
static CoordVectPtr geos::simplify::TaggedLineString::extractCoordinates ( const std::vector< TaggedLineSegment * > &  segs)
staticprivate
std::size_t geos::simplify::TaggedLineString::getMinimumSize ( ) const
const geom::LineString* geos::simplify::TaggedLineString::getParent ( ) const
const CoordSeq* geos::simplify::TaggedLineString::getParentCoordinates ( ) const
CoordSeqPtr geos::simplify::TaggedLineString::getResultCoordinates ( ) const
std::size_t geos::simplify::TaggedLineString::getResultSize ( ) const
TaggedLineSegment* geos::simplify::TaggedLineString::getSegment ( std::size_t  i)
const TaggedLineSegment* geos::simplify::TaggedLineString::getSegment ( std::size_t  i) const
std::vector<TaggedLineSegment*>& geos::simplify::TaggedLineString::getSegments ( )
const std::vector<TaggedLineSegment*>& geos::simplify::TaggedLineString::getSegments ( ) const
void geos::simplify::TaggedLineString::init ( )
private
TaggedLineString& geos::simplify::TaggedLineString::operator= ( const TaggedLineString )
private

Member Data Documentation

std::size_t geos::simplify::TaggedLineString::minimumSize
private

Definition at line 109 of file TaggedLineString.h.

const geom::LineString* geos::simplify::TaggedLineString::parentLine
private

Definition at line 101 of file TaggedLineString.h.

std::vector<TaggedLineSegment*> geos::simplify::TaggedLineString::resultSegs
private

Definition at line 107 of file TaggedLineString.h.

std::vector<TaggedLineSegment*> geos::simplify::TaggedLineString::segs
private

Definition at line 104 of file TaggedLineString.h.


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