libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::TransPolygon Class Reference

#include <Transformation.h>

Classes

struct  TransPoint
 

Public Types

enum  OptimizeMethod { none = 0, fast = 1, quality = 2 }
 
enum  OutputConstraint { noConstraint = 0, simple = 1 }
 

Public Member Functions

bool GetBoundingBox (double &xmin, double &ymin, double &xmax, double &ymax) const
 
bool GetCenterPixel (double &cx, double &cy) const
 
size_t GetEnd () const
 
size_t GetLength () const
 
size_t GetStart () const
 
bool IsEmpty () const
 
void TransformArea (const Projection &projection, OptimizeMethod optimize, const std::vector< GeoCoord > &nodes, double optimizeErrorTolerance, OutputConstraint constraint=noConstraint)
 
void TransformArea (const Projection &projection, OptimizeMethod optimize, const std::vector< Point > &nodes, double optimizeErrorTolerance, OutputConstraint constraint=noConstraint)
 
void TransformBoundingBox (const Projection &projection, OptimizeMethod optimize, const GeoBox &boundingBox, double optimizeErrorTolerance, OutputConstraint constraint=noConstraint)
 
void TransformWay (const Projection &projection, OptimizeMethod optimize, const std::vector< GeoCoord > &nodes, double optimizeErrorTolerance, OutputConstraint constraint=noConstraint)
 
void TransformWay (const Projection &projection, OptimizeMethod optimize, const std::vector< Point > &nodes, double optimizeErrorTolerance, OutputConstraint constraint=noConstraint)
 
 TransPolygon ()
 
virtual ~TransPolygon ()
 

Public Attributes

TransPointpoints
 

Member Enumeration Documentation

Enumerator
none 
fast 
quality 
Enumerator
noConstraint 
simple 

Constructor & Destructor Documentation

osmscout::TransPolygon::TransPolygon ( )
osmscout::TransPolygon::~TransPolygon ( )
virtual

References points.

Member Function Documentation

bool osmscout::TransPolygon::GetBoundingBox ( double &  xmin,
double &  ymin,
double &  xmax,
double &  ymax 
) const
bool osmscout::TransPolygon::GetCenterPixel ( double &  cx,
double &  cy 
) const

References GetBoundingBox().

size_t osmscout::TransPolygon::GetEnd ( ) const
inline
size_t osmscout::TransPolygon::GetLength ( ) const
inline
size_t osmscout::TransPolygon::GetStart ( ) const
inline
bool osmscout::TransPolygon::IsEmpty ( ) const
inline
void osmscout::TransPolygon::TransformArea ( const Projection projection,
OptimizeMethod  optimize,
const std::vector< GeoCoord > &  nodes,
double  optimizeErrorTolerance,
OutputConstraint  constraint = noConstraint 
)
void osmscout::TransPolygon::TransformArea ( const Projection projection,
OptimizeMethod  optimize,
const std::vector< Point > &  nodes,
double  optimizeErrorTolerance,
OutputConstraint  constraint = noConstraint 
)

References fast, none, points, and simple.

void osmscout::TransPolygon::TransformBoundingBox ( const Projection projection,
TransPolygon::OptimizeMethod  optimize,
const GeoBox &  boundingBox,
double  optimizeErrorTolerance,
TransPolygon::OutputConstraint  constraint = noConstraint 
)

References TransformArea().

void osmscout::TransPolygon::TransformWay ( const Projection projection,
OptimizeMethod  optimize,
const std::vector< GeoCoord > &  nodes,
double  optimizeErrorTolerance,
OutputConstraint  constraint = noConstraint 
)

References fast, none, points, and simple.

Referenced by osmscout::TransBuffer::TransformWay().

void osmscout::TransPolygon::TransformWay ( const Projection projection,
OptimizeMethod  optimize,
const std::vector< Point > &  nodes,
double  optimizeErrorTolerance,
OutputConstraint  constraint = noConstraint 
)

References fast, none, points, and simple.

Member Data Documentation


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