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::Iterator | begin (self) |
| clear (self) |
QVector::ConstIterator | constBegin (self) |
QVector::ConstIterator | constEnd (self) |
QVector::Iterator | end (self) |
QVector::Iterator | erase (self, QVector::Iterator pos) |
QVector::Iterator | erase (self, QVector::Iterator begin, QVector::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) |
QVectortoDateLineCorrected (self) | |
Marble.GeoDataLineString | toNormalized (self) |
Marble.GeoDataLineString | toPoleCorrected (self) |
QVectortoRangeCorrected (self) | |
| unpack (self, QDataStream stream) |
Method Documentation
__init__ |
( |
self, |
|
|
|
Marble.TessellationFlags |
f=Marble.NoTessellation |
|
) |
|
|
|
QVector::Iterator begin |
( |
|
self ) |
|
QVector::ConstIterator constBegin |
( |
|
self ) |
|
QVector::ConstIterator constEnd |
( |
|
self ) |
|
QVector::Iterator end |
( |
|
self ) |
|
QVector::Iterator erase |
( |
self, |
|
|
|
QVector::Iterator |
pos |
|
) |
|
|
|
QVector::Iterator erase |
( |
self, |
|
|
|
QVector::Iterator |
begin, |
|
|
QVector::Iterator |
end |
|
) |
|
|
|
float length |
( |
self, |
|
|
|
float |
planetRadius |
|
) |
|
|
|
Serialize the style to a stream.
- Parameters:
-
setTessellate |
( |
self, |
|
|
|
bool |
tessellate |
|
) |
|
|
|
setTessellationFlags |
( |
self, |
|
|
|
Marble.TessellationFlags |
f |
|
) |
|
|
|
Marble.TessellationFlags tessellationFlags |
( |
|
self ) |
|
Unserialize the style from a stream
- Parameters:
-