Warning, /education/marble/src/bindings/python/sip/GeoDocument.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 
0021 class GeoDocument
0022 {
0023 %TypeHeaderCode
0024 #include <GeoDocument.h>
0025 %End
0026 
0027 protected:
0028                             GeoDocument ();
0029 
0030 public:
0031     virtual bool            isGeoDataDocument () const;
0032     virtual bool            isGeoSceneDocument () const;
0033     virtual ~GeoDocument ();
0034 };
0035 // GeoDocument
0036 
0037 
0038 class GeoNode
0039 {
0040 %TypeHeaderCode
0041 #include <GeoDocument.h>
0042 %End
0043 
0044 protected:
0045                             GeoNode ();
0046     virtual ~GeoNode ();
0047 %ConvertToSubClassCode
0048     // CTSCC for subclasses of 'GeoNode'
0049     sipType = NULL;
0050 
0051     if (dynamic_cast<Marble::GeoDataObject*>(sipCpp))
0052         {
0053         sipType = sipType_Marble_GeoDataObject;
0054         if (dynamic_cast<Marble::GeoDataAbstractView*>(sipCpp))
0055             {
0056             sipType = sipType_Marble_GeoDataAbstractView;
0057             if (dynamic_cast<Marble::GeoDataLookAt*>(sipCpp))
0058                 sipType = sipType_Marble_GeoDataLookAt;
0059             }
0060         else if (dynamic_cast<Marble::GeoDataColorStyle*>(sipCpp))
0061             {
0062             sipType = sipType_Marble_GeoDataColorStyle;
0063             if (dynamic_cast<Marble::GeoDataBalloonStyle*>(sipCpp))
0064                 sipType = sipType_Marble_GeoDataBalloonStyle;
0065             else if (dynamic_cast<Marble::GeoDataIconStyle*>(sipCpp))
0066                 sipType = sipType_Marble_GeoDataIconStyle;
0067             else if (dynamic_cast<Marble::GeoDataLabelStyle*>(sipCpp))
0068                 sipType = sipType_Marble_GeoDataLabelStyle;
0069             else if (dynamic_cast<Marble::GeoDataLineStyle*>(sipCpp))
0070                 sipType = sipType_Marble_GeoDataLineStyle;
0071             else if (dynamic_cast<Marble::GeoDataPolyStyle*>(sipCpp))
0072                 sipType = sipType_Marble_GeoDataPolyStyle;
0073             }
0074         else if (dynamic_cast<Marble::GeoDataFeature*>(sipCpp))
0075             {
0076             sipType = sipType_Marble_GeoDataFeature;
0077             if (dynamic_cast<Marble::GeoDataContainer*>(sipCpp))
0078                 {
0079                 sipType = sipType_Marble_GeoDataContainer;
0080                 if (dynamic_cast<Marble::GeoDataDocument*>(sipCpp))
0081                     sipType = sipType_Marble_GeoDataDocument;
0082                 else if (dynamic_cast<Marble::GeoDataFolder*>(sipCpp))
0083                     sipType = sipType_Marble_GeoDataFolder;
0084                 }
0085             else if (dynamic_cast<Marble::GeoDataOverlay*>(sipCpp))
0086                 {
0087                 sipType = sipType_Marble_GeoDataOverlay;
0088                 if (dynamic_cast<Marble::GeoDataGroundOverlay*>(sipCpp))
0089                     sipType = sipType_Marble_GeoDataGroundOverlay;
0090                 }
0091             else if (dynamic_cast<Marble::GeoDataPlacemark*>(sipCpp))
0092                 sipType = sipType_Marble_GeoDataPlacemark;
0093             }
0094         else if (dynamic_cast<Marble::GeoDataGeometry*>(sipCpp))
0095             {
0096             sipType = sipType_Marble_GeoDataGeometry;
0097             if (dynamic_cast<Marble::GeoDataLineString*>(sipCpp))
0098                 {
0099                 sipType = sipType_Marble_GeoDataLineString;
0100                 if (dynamic_cast<Marble::GeoDataLinearRing*>(sipCpp))
0101                     sipType = sipType_Marble_GeoDataLinearRing;
0102                 }
0103             else if (dynamic_cast<Marble::GeoDataMultiGeometry*>(sipCpp))
0104                 sipType = sipType_Marble_GeoDataMultiGeometry;
0105             else if (dynamic_cast<Marble::GeoDataPoint*>(sipCpp))
0106                 sipType = sipType_Marble_GeoDataPoint;
0107             else if (dynamic_cast<Marble::GeoDataPolygon*>(sipCpp))
0108                 {
0109                 sipType = sipType_Marble_GeoDataPolygon;
0110                 if (dynamic_cast<Marble::GeoDataInnerBoundary*>(sipCpp))
0111                     sipType = sipType_Marble_GeoDataInnerBoundary;
0112                 else if (dynamic_cast<Marble::GeoDataOuterBoundary*>(sipCpp))
0113                     sipType = sipType_Marble_GeoDataOuterBoundary;
0114                 }
0115             else if (dynamic_cast<Marble::GeoDataTrack*>(sipCpp))
0116                 sipType = sipType_Marble_GeoDataTrack;
0117             }
0118         else if (dynamic_cast<Marble::GeoDataHotSpot*>(sipCpp))
0119             sipType = sipType_Marble_GeoDataHotSpot;
0120         else if (dynamic_cast<Marble::GeoDataItemIcon*>(sipCpp))
0121             sipType = sipType_Marble_GeoDataItemIcon;
0122         else if (dynamic_cast<Marble::GeoDataLatLonBox*>(sipCpp))
0123             {
0124             sipType = sipType_Marble_GeoDataLatLonBox;
0125             if (dynamic_cast<Marble::GeoDataLatLonAltBox*>(sipCpp))
0126                 sipType = sipType_Marble_GeoDataLatLonAltBox;
0127             }
0128         else if (dynamic_cast<Marble::GeoDataListStyle*>(sipCpp))
0129             sipType = sipType_Marble_GeoDataListStyle;
0130         else if (dynamic_cast<Marble::GeoDataLod*>(sipCpp))
0131             sipType = sipType_Marble_GeoDataLod;
0132         else if (dynamic_cast<Marble::GeoDataRegion*>(sipCpp))
0133             sipType = sipType_Marble_GeoDataRegion;
0134         else if (dynamic_cast<Marble::GeoDataStyleSelector*>(sipCpp))
0135             {
0136             sipType = sipType_Marble_GeoDataStyleSelector;
0137             if (dynamic_cast<Marble::GeoDataStyle*>(sipCpp))
0138                 sipType = sipType_Marble_GeoDataStyle;
0139             else if (dynamic_cast<Marble::GeoDataStyleMap*>(sipCpp))
0140                 sipType = sipType_Marble_GeoDataStyleMap;
0141             }
0142         else if (dynamic_cast<Marble::GeoDataTimePrimitive*>(sipCpp))
0143             {
0144             sipType = sipType_Marble_GeoDataTimePrimitive;
0145             if (dynamic_cast<Marble::GeoDataTimeSpan*>(sipCpp))
0146                 sipType = sipType_Marble_GeoDataTimeSpan;
0147             else if (dynamic_cast<Marble::GeoDataTimeStamp*>(sipCpp))
0148                 sipType = sipType_Marble_GeoDataTimeStamp;
0149             }
0150         }
0151 %End
0152 public:
0153     virtual const char*     nodeType () const;
0154 };
0155 // GeoNode
0156 
0157 //ig namespace GeoDataTypes;
0158 };
0159 // Marble
0160 
0161 
0162 %ModuleHeaderCode
0163 //ctscc
0164 #include <GeoDataAbstractView.h>
0165 #include <GeoDataBalloonStyle.h>
0166 #include <GeoDataColorStyle.h>
0167 #include <GeoDataContainer.h>
0168 #include <GeoDataDocument.h>
0169 #include <GeoDataFeature.h>
0170 #include <GeoDataFolder.h>
0171 #include <GeoDataGeometry.h>
0172 #include <GeoDataGroundOverlay.h>
0173 #include <GeoDataHotSpot.h>
0174 #include <GeoDataIconStyle.h>
0175 #include <GeoDataItemIcon.h>
0176 #include <GeoDataLabelStyle.h>
0177 #include <GeoDataLatLonAltBox.h>
0178 #include <GeoDataLatLonBox.h>
0179 #include <GeoDataLineString.h>
0180 #include <GeoDataLineStyle.h>
0181 #include <GeoDataLinearRing.h>
0182 #include <GeoDataListStyle.h>
0183 #include <GeoDataLod.h>
0184 #include <GeoDataLookAt.h>
0185 #include <GeoDataMultiGeometry.h>
0186 #include <GeoDataObject.h>
0187 #include <GeoDataOverlay.h>
0188 #include <GeoDataPlacemark.h>
0189 #include <GeoDataPoint.h>
0190 #include <GeoDataPolyStyle.h>
0191 #include <GeoDataPolygon.h>
0192 #include <GeoDataRegion.h>
0193 #include <GeoDataStyle.h>
0194 #include <GeoDataStyleMap.h>
0195 #include <GeoDataStyleSelector.h>
0196 #include <GeoDataTimePrimitive.h>
0197 #include <GeoDataTimeSpan.h>
0198 #include <GeoDataTimeStamp.h>
0199 #include <GeoDataTrack.h>
0200 #include <GeoDocument.h>
0201 %End