KDE 4.3 PyKDE API Reference

- KDE's Python API

# GeoDataLineString Class Reference

`from PyKDE4.marble import *`

Inherits: Marble.GeoDataGeometry → Marble.GeoDataObject → Marble.GeoNode
Subclasses: Marble.GeoDataLinearRing
Namespace: Marble

## Detailed Description

A class that defines a contiguous set of line segments.

Also known as: non-closed Polyline

GeoDataLineString consists of GeoDataCoordinates connected through line segments. For convenience and performance we've added special methods to calculate the smallest GeoDataLatLonAltBox that contains the GeoDataLineString. This class will at some point entirely replace GeoPolygon which is currently used for a very similar purpose.

## Methods

| __init__ (self, Marble.TessellationFlags f=Marble.NoTessellation)
| __init__ (self, Marble.GeoDataGeometry other)
| __init__ (self, Marble.GeoDataLineStringPrivate priv)
| append (self, Marble.GeoDataCoordinates value)
Marble.GeoDataCoordinates | at (self, int pos)
Marble.GeoDataCoordinates | at (self, int pos)
QVector<Marble::GeoDataCoordinates>::Iterator | begin (self)
| clear (self)
QVector<Marble::GeoDataCoordinates>::ConstIterator | constBegin (self)
QVector<Marble::GeoDataCoordinates>::ConstIterator | constEnd (self)
QVector<Marble::GeoDataCoordinates>::Iterator | end (self)
QVector<Marble::GeoDataCoordinates>::Iterator | erase (self, QVector<Marble::GeoDataCoordinates>::Iterator pos)
QVector<Marble::GeoDataCoordinates>::Iterator | erase (self, QVector<Marble::GeoDataCoordinates>::Iterator begin, QVector<Marble::GeoDataCoordinates>::Iterator end)
Marble.GeoDataCoordinates | first (self)
Marble.GeoDataCoordinates | first (self)
bool | isClosed (self)
bool | isEmpty (self)
Marble.GeoDataCoordinates | last (self)
Marble.GeoDataCoordinates | last (self)
Marble.GeoDataLatLonAltBox | latLonAltBox (self)
float | length (self, float planetRadius)
Marble.GeoDataLineString | operator << (self, Marble.GeoDataCoordinates value)
Marble.GeoDataCoordinates | operator [] (self, int pos)
Marble.GeoDataCoordinates | operator [] (self, int pos)
Marble.GeoDataLineStringPrivate | p (self)
| pack (self, QDataStream stream)
| setTessellate (self, bool tessellate)
| setTessellationFlags (self, Marble.TessellationFlags f)
int | size (self)
bool | tessellate (self)
Marble.TessellationFlags | tessellationFlags (self)
QVector<Marble::GeoDataLineString | toDateLineCorrected (self)
Marble.GeoDataLineString | toNormalized (self)
Marble.GeoDataLineString | toPoleCorrected (self)
QVector<Marble::GeoDataLineString | toRangeCorrected (self)
| unpack (self, QDataStream stream)

## Method Documentation

__init__ | ( | self, |
|  | Marble.TessellationFlags | f=Marble.NoTessellation
| ) |  |  |

__init__ | ( | self, |
|  | Marble.GeoDataGeometry | other
| ) |  |  |

__init__ | ( | self, |
|  | Marble.GeoDataLineStringPrivate | priv
| ) |  |  |

append | ( | self, |
|  | Marble.GeoDataCoordinates | value
| ) |  |  |

Marble.GeoDataCoordinates at | ( | self, |
|  | int | pos
| ) |  |  |

Marble.GeoDataCoordinates at | ( | self, |
|  | int | pos
| ) |  |  |

QVector<Marble::GeoDataCoordinates>::Iterator begin | ( |  | self ) |

clear | ( |  | self ) |

QVector<Marble::GeoDataCoordinates>::ConstIterator constBegin | ( |  | self ) |

QVector<Marble::GeoDataCoordinates>::ConstIterator constEnd | ( |  | self ) |

QVector<Marble::GeoDataCoordinates>::Iterator end | ( |  | self ) |

QVector<Marble::GeoDataCoordinates>::Iterator erase | ( | self, |
|  | QVector<Marble::GeoDataCoordinates>::Iterator | pos
| ) |  |  |

QVector<Marble::GeoDataCoordinates>::Iterator erase | ( | self, |
|  | QVector<Marble::GeoDataCoordinates>::Iterator | begin,
|  | QVector<Marble::GeoDataCoordinates>::Iterator | end
| ) |  |  |

Marble.GeoDataCoordinates first | ( |  | self ) |

Marble.GeoDataCoordinates first | ( |  | self ) |

bool isClosed | ( |  | self ) |

bool isEmpty | ( |  | self ) |

Marble.GeoDataCoordinates last | ( |  | self ) |

Marble.GeoDataCoordinates last | ( |  | self ) |

Marble.GeoDataLatLonAltBox latLonAltBox | ( |  | self ) |

float length | ( | self, |
|  | float | planetRadius
| ) |  |  |

Marble.GeoDataLineString operator << | ( | self, |
|  | Marble.GeoDataCoordinates | value
| ) |  |  |

Marble.GeoDataCoordinates operator [] | ( | self, |
|  | int | pos
| ) |  |  |

Marble.GeoDataCoordinates operator [] | ( | self, |
|  | int | pos
| ) |  |  |

Marble.GeoDataLineStringPrivate p | ( |  | self ) |

pack | ( | self, |
|  | QDataStream | stream
| ) |  |  |

Serialize the style to a stream.

Parameters:

  |  | stream the stream

setTessellate | ( | self, |
|  | bool | tessellate
| ) |  |  |

setTessellationFlags | ( | self, |
|  | Marble.TessellationFlags | f
| ) |  |  |

int size | ( |  | self ) |

bool tessellate | ( |  | self ) |

Marble.TessellationFlags tessellationFlags | ( |  | self ) |

QVector<Marble::GeoDataLineString toDateLineCorrected | ( |  | self ) |

Marble.GeoDataLineString toNormalized | ( |  | self ) |

Marble.GeoDataLineString toPoleCorrected | ( |  | self ) |

QVector<Marble::GeoDataLineString toRangeCorrected | ( |  | self ) |

unpack | ( | self, |
|  | QDataStream | stream
| ) |  |  |

Unserialize the style from a stream

Parameters:

  |  | stream the stream