libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::Vertex2D Class Referencefinal

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

#include <Pixel.h>

Public Member Functions

double DistanceTo (const Vertex2D &other) const
double GetX () const
double GetY () const
bool operator< (const Vertex2D &other) const
Vertex2D & operator= (const Vertex2D &other)=default
Vertex2D & operator= (Vertex2D &&other)=default
bool operator== (const Vertex2D &other) const
 Vertex2D ()=default
 The default constructor creates an uninitialized instance (for performance reasons).
 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).

Referenced by DistanceTo(), operator<(), operator=(), operator=(), operator==(), Vertex2D(), and Vertex2D().

◆ Vertex2D() [2/4]

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

◆ Vertex2D() [3/4]

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

References Vertex2D().

◆ Vertex2D() [4/4]

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

References Vertex2D().

Member Function Documentation

◆ DistanceTo()

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

References Vertex2D().

Referenced by osmscout::LabelPath::AddPoint().

◆ GetX()

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

Referenced by osmscout::LabelPath::AddPoint(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::AssertElementsInsideReach(), osmscout::Projection::BoundingBoxToPixel(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::CannotReachViewport(), osmscout::LockHandler::currentPosition(), osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterQt::DrawContourSymbol(), osmscout::MapPainterCairo::DrawIcon(), osmscout::MapPainterQt::DrawIcon(), osmscout::MapPainterSVG::DrawIcon(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterAgg::DrawSymbol(), osmscout::Projection::BatchTransformer::Flush(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::CoordBufferRange::GetLength(), osmscout::MapPainter::IsPointVisible(), osmscout::ScreenBox::Merge(), osmscout::MercatorProjection::Move(), osmscout::operator*(), osmscout::operator+(), osmscout::operator-(), osmscout::IconAnimation::paint(), osmscout::MapWidget::paint(), osmscout::LabelPath::PointAtLength(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::ProcessLabel(), osmscout::CoordBuffer::PushCoord(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::RegisterContourLabel(), osmscout::SymbolRenderer::Render(), osmscout::PlaneMapRenderer::RenderMap(), osmscout::TiledRenderingHelper::RenderTiles(), and osmscout::MapWidget::screenPosition().

◆ GetY()

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

Referenced by osmscout::LabelPath::AddPoint(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::AssertElementsInsideReach(), osmscout::Projection::BoundingBoxToPixel(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::CannotReachViewport(), osmscout::LockHandler::currentPosition(), osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterQt::DrawContourSymbol(), osmscout::MapPainterCairo::DrawIcon(), osmscout::MapPainterQt::DrawIcon(), osmscout::MapPainterSVG::DrawIcon(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterAgg::DrawSymbol(), osmscout::Projection::BatchTransformer::Flush(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::Projection::BatchTransformer::GeoToPixel(), osmscout::CoordBufferRange::GetLength(), osmscout::MapPainter::IsPointVisible(), osmscout::ScreenBox::Merge(), osmscout::MercatorProjection::Move(), osmscout::operator*(), osmscout::operator+(), osmscout::operator-(), osmscout::IconAnimation::paint(), osmscout::MapWidget::paint(), osmscout::LabelPath::PointAtLength(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::ProcessLabel(), osmscout::CoordBuffer::PushCoord(), osmscout::LabelLayouter< NativeGlyph, NativeLabel, MapPainterAgg >::RegisterContourLabel(), osmscout::SymbolRenderer::Render(), osmscout::PlaneMapRenderer::RenderMap(), osmscout::TiledRenderingHelper::RenderTiles(), and osmscout::MapWidget::screenPosition().

◆ operator<()

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

References Vertex2D().

◆ operator=() [1/2]

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

References Vertex2D().

◆ operator=() [2/2]

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

References Vertex2D().

◆ operator==()

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

References Vertex2D().

Member Data Documentation

◆ ZERO

const Vertex2D osmscout::Vertex2D::ZERO
static

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