• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • GeoDataLatLonAltBox
Public Member Functions | Static Public Member Functions | Friends | List of all members
Marble::GeoDataLatLonAltBox Class Reference

#include <GeoDataLatLonAltBox.h>

Inheritance diagram for Marble::GeoDataLatLonAltBox:
Inheritance graph
[legend]

Public Member Functions

 GeoDataLatLonAltBox ()
 
 GeoDataLatLonAltBox (const GeoDataLatLonAltBox &other)
 
 GeoDataLatLonAltBox (const GeoDataLatLonBox &other, qreal minAltitude, qreal maxAltitude)
 
 GeoDataLatLonAltBox (const GeoDataCoordinates &coordinates)
 
virtual ~GeoDataLatLonAltBox ()
 
AltitudeMode altitudeMode () const
 
virtual GeoDataCoordinates center () const
 
virtual void clear ()
 
virtual bool contains (const GeoDataCoordinates &) const
 
bool contains (const GeoDataLatLonAltBox &) const
 
virtual bool intersects (const GeoDataLatLonAltBox &) const
 
bool isNull () const
 
qreal maxAltitude () const
 
qreal minAltitude () const
 
virtual const char * nodeType () const
 
GeoDataLatLonAltBox & operator= (const GeoDataLatLonAltBox &other)
 
GeoDataLatLonAltBox & operator= (const GeoDataCoordinates &other)
 
virtual void pack (QDataStream &stream) const
 
uint qHash (const GeoDataLatLonAltBox &)
 
void setAltitudeMode (const AltitudeMode altitudeMode)
 
void setMaxAltitude (const qreal maxAltitude)
 
void setMinAltitude (const qreal minAltitude)
 
virtual QString toString (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
virtual void unpack (QDataStream &stream)
 
- Public Member Functions inherited from Marble::GeoDataLatLonBox
 GeoDataLatLonBox ()
 
 GeoDataLatLonBox (qreal north, qreal south, qreal east, qreal west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
 GeoDataLatLonBox (const GeoDataLatLonBox &)
 
virtual ~GeoDataLatLonBox ()
 
void boundaries (qreal &north, qreal &south, qreal &east, qreal &west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
bool contains (const GeoDataLatLonBox &) const
 
bool containsPole (Pole pole=AnyPole) const
 
bool crossesDateLine () const
 
qreal east (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
qreal height (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
virtual bool intersects (const GeoDataLatLonBox &) const
 
virtual bool isEmpty () const
 
qreal north (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
GeoDataLatLonBox & operator= (const GeoDataLatLonBox &other)
 
GeoDataLatLonBox operator| (const GeoDataLatLonBox &other) const
 
GeoDataLatLonBox & operator|= (const GeoDataLatLonBox &other)
 
qreal rotation (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
void setBoundaries (qreal north, qreal south, qreal east, qreal west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
void setEast (const qreal east, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
void setNorth (const qreal north, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
void setRotation (const qreal rotation, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
void setSouth (const qreal south, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
void setWest (const qreal west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
 
qreal south (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
GeoDataLatLonBox toCircumscribedRectangle () const
 
GeoDataLatLonBox united (const GeoDataLatLonBox &other) const
 
qreal west (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
qreal width (GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject ()
 
 GeoDataObject (const GeoDataObject &)
 
virtual ~GeoDataObject ()
 
int id () const
 
GeoDataObject & operator= (const GeoDataObject &)
 
virtual GeoDataObject * parent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (int value)
 
virtual void setParent (GeoDataObject *parent)
 
void setTargetId (int value)
 
int targetId () const
 
- Public Member Functions inherited from Marble::GeoNode
 GeoNode ()
 
virtual ~GeoNode ()
 
- Public Member Functions inherited from Marble::Serializable
virtual ~Serializable ()
 

Static Public Member Functions

static GeoDataLatLonAltBox fromLineString (const GeoDataLineString &lineString)
 
- Static Public Member Functions inherited from Marble::GeoDataLatLonBox
static GeoDataLatLonBox fromLineString (const GeoDataLineString &lineString)
 

Friends

bool GEODATA_EXPORT operator== (GeoDataLatLonAltBox const &lhs, GeoDataLatLonAltBox const &rhs)
 

Detailed Description

A class that defines a 3D bounding box for geographic data.

GeoDataLatLonAltBox is a 3D bounding box that describes a geographic area in terms of latitude, longitude and altitude.

The bounding box gets described by assigning the northern, southern, eastern and western boundary. So usually the value of the eastern boundary is bigger than the value of the western boundary. Only if the bounding box crosses the date line then the eastern boundary has got a smaller value than the western one.

Definition at line 49 of file GeoDataLatLonAltBox.h.

Constructor & Destructor Documentation

Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox ( )

Definition at line 76 of file GeoDataLatLonAltBox.cpp.

Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox ( const GeoDataLatLonAltBox &  other)

Definition at line 82 of file GeoDataLatLonAltBox.cpp.

Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox ( const GeoDataLatLonBox &  other,
qreal  minAltitude,
qreal  maxAltitude 
)

Definition at line 88 of file GeoDataLatLonAltBox.cpp.

Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox ( const GeoDataCoordinates &  coordinates)
explicit

A LatLonAltBox with the data from a GeoDataCoordinate This way of creating a GeoDataLatLonAltBox sets the north and south values of this box to the Latitude value in the GeoDataCoordinate, resulting in a Box that has a 0 Area.

This is useful for building LatLonAltBoxes from GeoDataCoordinates.

Definition at line 103 of file GeoDataLatLonAltBox.cpp.

Marble::GeoDataLatLonAltBox::~GeoDataLatLonAltBox ( )
virtual

Definition at line 117 of file GeoDataLatLonAltBox.cpp.

Member Function Documentation

AltitudeMode Marble::GeoDataLatLonAltBox::altitudeMode ( ) const

Get the reference system for the altitude.

Returns
the point of reference which marks the origin for measuring the altitude.

Definition at line 147 of file GeoDataLatLonAltBox.cpp.

GeoDataCoordinates Marble::GeoDataLatLonAltBox::center ( ) const
virtual

returns the center of this box

Returns
a coordinate, body-center of the box

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 152 of file GeoDataLatLonAltBox.cpp.

void Marble::GeoDataLatLonAltBox::clear ( )
virtual

Resets the bounding box to its uninitialised state (and thus contains nothing).

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 284 of file GeoDataLatLonAltBox.cpp.

bool Marble::GeoDataLatLonAltBox::contains ( const GeoDataCoordinates &  point) const
virtual

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 171 of file GeoDataLatLonAltBox.cpp.

bool Marble::GeoDataLatLonAltBox::contains ( const GeoDataLatLonAltBox &  other) const

Definition at line 183 of file GeoDataLatLonAltBox.cpp.

GeoDataLatLonAltBox Marble::GeoDataLatLonAltBox::fromLineString ( const GeoDataLineString &  lineString)
static

Create the smallest bounding box from a line string.

Returns
the smallest bounding box that contains the linestring.

Definition at line 216 of file GeoDataLatLonAltBox.cpp.

bool Marble::GeoDataLatLonAltBox::intersects ( const GeoDataLatLonAltBox &  other) const
virtual

Check if this GeoDataLatLonAltBox intersects with the given one.

Definition at line 197 of file GeoDataLatLonAltBox.cpp.

bool Marble::GeoDataLatLonAltBox::isNull ( ) const
virtual

Indicates whether the bounding box only contains a single 2D point ("singularity").

Returns
Return value is true if the height and the width of the bounding box equal zero.

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 276 of file GeoDataLatLonAltBox.cpp.

qreal Marble::GeoDataLatLonAltBox::maxAltitude ( ) const

Get the upper altitude boundary of the bounding box.

Returns
the height of the upper altitude boundary in meters.

Definition at line 137 of file GeoDataLatLonAltBox.cpp.

qreal Marble::GeoDataLatLonAltBox::minAltitude ( ) const

Get the lower altitude boundary of the bounding box.

Returns
the height of the lower altitude boundary in meters.

Definition at line 127 of file GeoDataLatLonAltBox.cpp.

const char * Marble::GeoDataLatLonAltBox::nodeType ( ) const
virtual

Provides type information for downcasting a GeoData.

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 122 of file GeoDataLatLonAltBox.cpp.

GeoDataLatLonAltBox & Marble::GeoDataLatLonAltBox::operator= ( const GeoDataLatLonAltBox &  other)

Definition at line 56 of file GeoDataLatLonAltBox.cpp.

GeoDataLatLonAltBox & Marble::GeoDataLatLonAltBox::operator= ( const GeoDataCoordinates &  other)

Definition at line 65 of file GeoDataLatLonAltBox.cpp.

void Marble::GeoDataLatLonAltBox::pack ( QDataStream &  stream) const
virtual

Serialize the contents of the feature to stream.

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 292 of file GeoDataLatLonAltBox.cpp.

uint Marble::GeoDataLatLonAltBox::qHash ( const GeoDataLatLonAltBox &  )

qHash, for using GeoDataLatLonAltBox in a QCache as Key

Returns
the hash of the GeoDataLatLonAltBox
void Marble::GeoDataLatLonAltBox::setAltitudeMode ( const AltitudeMode  altitudeMode)

Definition at line 166 of file GeoDataLatLonAltBox.cpp.

void Marble::GeoDataLatLonAltBox::setMaxAltitude ( const qreal  maxAltitude)

Definition at line 142 of file GeoDataLatLonAltBox.cpp.

void Marble::GeoDataLatLonAltBox::setMinAltitude ( const qreal  minAltitude)

Definition at line 132 of file GeoDataLatLonAltBox.cpp.

QString Marble::GeoDataLatLonAltBox::toString ( GeoDataCoordinates::Unit  unit = GeoDataCoordinates::Radian) const
virtual

Creates a text string of the bounding box.

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 255 of file GeoDataLatLonAltBox.cpp.

void Marble::GeoDataLatLonAltBox::unpack ( QDataStream &  stream)
virtual

Unserialize the contents of the feature from stream.

Reimplemented from Marble::GeoDataLatLonBox.

Definition at line 300 of file GeoDataLatLonAltBox.cpp.

Friends And Related Function Documentation

bool GEODATA_EXPORT operator== ( GeoDataLatLonAltBox const &  lhs,
GeoDataLatLonAltBox const &  rhs 
)
friend

Definition at line 44 of file GeoDataLatLonAltBox.cpp.


The documentation for this class was generated from the following files:
  • GeoDataLatLonAltBox.h
  • GeoDataLatLonAltBox.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal