Warning, /education/marble/src/bindings/python/sip/GeoDataMultiGeometry.sip is written in an unsupported language. File is not indexed.
0001 // 0002 // Copyright 2008 Simon Edwards <simon@simonzone.com> 0003 // 0004 // This library is free software; you can redistribute it and/or 0005 // modify it under the terms of the GNU Lesser General Public 0006 // License as published by the Free Software Foundation; either 0007 // version 2.1 of the License, or (at your option) any later version. 0008 // 0009 // This library is distributed in the hope that it will be useful, 0010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 // Lesser General Public License for more details. 0013 // 0014 // You should have received a copy of the GNU Lesser General Public 0015 // License along with this library. If not, see <http://www.gnu.org/licenses/>. 0016 // 0017 0018 namespace Marble 0019 { 0020 class GeoDataMultiGeometry : Marble::GeoDataGeometry 0021 { 0022 %TypeHeaderCode 0023 #include <GeoDataMultiGeometry.h> 0024 %End 0025 0026 public: 0027 GeoDataMultiGeometry (); 0028 GeoDataMultiGeometry (const Marble::GeoDataGeometry& other); 0029 int size () const; 0030 //FIXME Add any needed Python list methods. 0031 //ig Marble::GeoDataGeometry& at (int pos); 0032 const Marble::GeoDataGeometry& at (int pos) const; 0033 //ig Marble::GeoDataGeometry& operator [] (int pos); 0034 const Marble::GeoDataGeometry& operator [] (int pos) const; 0035 //ig Marble::GeoDataGeometry& first (); 0036 const Marble::GeoDataGeometry& first () const; 0037 //ig Marble::GeoDataGeometry& last (); 0038 const Marble::GeoDataGeometry& last () const; 0039 Marble::GeoDataMultiGeometry& operator << (const Marble::GeoDataGeometry& value); 0040 //ig QVector<Marble::GeoDataGeometry>::Iterator begin (); 0041 //ig QVector<Marble::GeoDataGeometry>::Iterator end (); 0042 //ig QVector<Marble::GeoDataGeometry>::ConstIterator constBegin () const; 0043 //ig QVector<Marble::GeoDataGeometry>::ConstIterator constEnd () const; 0044 void clear (); 0045 0046 //FIXME the result here should be copied. 0047 //ig QVector<Marble::GeoDataGeometry>& vector () const; 0048 0049 virtual void pack (QDataStream& stream) const; 0050 virtual void unpack (QDataStream& stream); 0051 virtual ~GeoDataMultiGeometry (); 0052 virtual const Marble::GeoDataLatLonAltBox& latLonAltBox () const; 0053 Marble::GeoDataGeometry* child (int); 0054 int childPosition (Marble::GeoDataGeometry* child); 0055 void append (Marble::GeoDataGeometry* other); 0056 //ig QVector<GeoDataGeometry*>::Iterator erase (QVector<GeoDataGeometry*>::Iterator pos); 0057 //ig QVector<GeoDataGeometry*>::Iterator erase (QVector<GeoDataGeometry*>::Iterator begin, QVector<GeoDataGeometry*>::Iterator end); 0058 //ig const Marble::GeoDataGeometry* child (int) const; 0059 }; 0060 // GeoDataMultiGeometry 0061 0062 }; 0063 // Marble 0064 0065