libosmscout  0.1
osmscout::Vertex2D Class Referencefinal

#include <Pixel.h>

Public Member Functions

double DistanceTo (const Vertex2D &other) const
 
double GetX () const
 
double GetY () const
 
bool operator< (const Vertex2D &other) const
 
Vertex2Doperator= (const Vertex2D &other)=default
 
Vertex2Doperator= (Vertex2D &&other)=default
 
bool operator== (const Vertex2D &other) const
 
 Vertex2D ()=default
 The default constructor creates an uninitialized instance (for performance reasons). More...
 
 Vertex2D (const Vertex2D &other)=default
 
 Vertex2D (double x, double y)
 
 Vertex2D (Vertex2D &&other)=default
 

Static Public Attributes

static const Vertex2D ZERO
 

Detailed Description

Two dimensional coordinate (floating point values, negative coordinates possible).

Constructor & Destructor Documentation

◆ Vertex2D() [1/4]

osmscout::Vertex2D::Vertex2D ( )
default

The default constructor creates an uninitialized instance (for performance reasons).

◆ Vertex2D() [2/4]

osmscout::Vertex2D::Vertex2D ( double  x,
double  y 
)
inline

◆ Vertex2D() [3/4]

osmscout::Vertex2D::Vertex2D ( const Vertex2D other)
default

◆ Vertex2D() [4/4]

osmscout::Vertex2D::Vertex2D ( Vertex2D &&  other)
default

Member Function Documentation

◆ DistanceTo()

double osmscout::Vertex2D::DistanceTo ( const Vertex2D other) const
inline

◆ GetX()

double osmscout::Vertex2D::GetX ( ) const
inline

Referenced by osmscout::LabelPath::AddPoint(), osmscout::Projection::BoundingBoxToPixel(), osmscout::LockHandler::currentPosition(), osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterAgg::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterSVG::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterQt::DrawContourSymbol(), osmscout::MapPainterCairo::DrawIcon(), osmscout::MapPainterSVG::DrawIcon(), osmscout::MapPainterQt::DrawIcon(), osmscout::MapPainterAgg::DrawPath(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterSVG::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterAgg::DrawSymbol(), osmscout::MapPainterSVG::DrawSymbol(), osmscout::Projection::BatchTransformer::Flush(), osmscout::CoordBuffer::GenerateParallelWay(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::RectanglePrimitive::GetBoundingBox(), osmscout::CirclePrimitive::GetBoundingBox(), osmscout::ScreenBox::GetCenter(), osmscout::CoordBufferRange::GetLength(), osmscout::ScreenBox::GetMaxX(), osmscout::ScreenBox::GetMinX(), osmscout::ScreenBox::GetWidth(), osmscout::ScreenBox::Intersects(), osmscout::ScreenBox::Merge(), osmscout::MercatorProjection::Move(), osmscout::operator*(), osmscout::operator+(), osmscout::operator-(), osmscout::IconAnimation::paint(), osmscout::MapWidget::paint(), osmscout::LabelPath::PointAtLength(), osmscout::LabelLayouter< QGlyphRun, QTextLayout, MapPainterQt >::ProcessLabel(), osmscout::CoordBuffer::PushCoord(), osmscout::LabelLayouter< QGlyphRun, QTextLayout, MapPainterQt >::RegisterContourLabel(), osmscout::SymbolRenderer::Render(), osmscout::PlaneMapRenderer::RenderMap(), osmscout::TiledRenderingHelper::RenderTiles(), osmscout::ScreenBox::Resize(), and osmscout::MapWidget::screenPosition().

◆ GetY()

double osmscout::Vertex2D::GetY ( ) const
inline

Referenced by osmscout::LabelPath::AddPoint(), osmscout::Projection::BoundingBoxToPixel(), osmscout::LockHandler::currentPosition(), osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterAgg::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterSVG::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterQt::DrawContourSymbol(), osmscout::MapPainterCairo::DrawIcon(), osmscout::MapPainterSVG::DrawIcon(), osmscout::MapPainterQt::DrawIcon(), osmscout::MapPainterAgg::DrawPath(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterSVG::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterAgg::DrawSymbol(), osmscout::MapPainterSVG::DrawSymbol(), osmscout::Projection::BatchTransformer::Flush(), osmscout::CoordBuffer::GenerateParallelWay(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::RectanglePrimitive::GetBoundingBox(), osmscout::CirclePrimitive::GetBoundingBox(), osmscout::ScreenBox::GetCenter(), osmscout::ScreenBox::GetHeight(), osmscout::CoordBufferRange::GetLength(), osmscout::ScreenBox::GetMaxY(), osmscout::ScreenBox::GetMinY(), osmscout::ScreenBox::Intersects(), osmscout::ScreenBox::Merge(), osmscout::MercatorProjection::Move(), osmscout::operator*(), osmscout::operator+(), osmscout::operator-(), osmscout::IconAnimation::paint(), osmscout::MapWidget::paint(), osmscout::LabelPath::PointAtLength(), osmscout::LabelLayouter< QGlyphRun, QTextLayout, MapPainterQt >::ProcessLabel(), osmscout::CoordBuffer::PushCoord(), osmscout::LabelLayouter< QGlyphRun, QTextLayout, MapPainterQt >::RegisterContourLabel(), osmscout::SymbolRenderer::Render(), osmscout::PlaneMapRenderer::RenderMap(), osmscout::TiledRenderingHelper::RenderTiles(), osmscout::ScreenBox::Resize(), and osmscout::MapWidget::screenPosition().

◆ operator<()

bool osmscout::Vertex2D::operator< ( const Vertex2D other) const
inline

◆ operator=() [1/2]

Vertex2D& osmscout::Vertex2D::operator= ( const Vertex2D other)
default

◆ operator=() [2/2]

Vertex2D& osmscout::Vertex2D::operator= ( Vertex2D &&  other)
default

◆ operator==()

bool osmscout::Vertex2D::operator== ( const Vertex2D other) const
inline

Member Data Documentation

◆ ZERO

const Vertex2D osmscout::Vertex2D::ZERO
static

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