Go to Google Earth Home
Google Earth COM API Documentation Document Version: 1.0 - Last modified:


earth.idl

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00076 import "oaidl.idl";
00077 import "ocidl.idl";
00078 
00079 cpp_quote("#include <winerror.h>")
00080 // Google Earth COM API specific error codes.
00082 cpp_quote("#define E_INVALID_OR_DELETED_FEATURE     MAKE_HRESULT(SEVERITY_ERROR,    FACILITY_ITF, 0x8001)")
00085 cpp_quote("#define E_APPLICATION_UNINITIALIZED      MAKE_HRESULT(SEVERITY_ERROR,    FACILITY_ITF, 0x8002)")
00087 cpp_quote("#define S_TELEPORTED                     MAKE_HRESULT(SEVERITY_SUCCESS,  FACILITY_ITF, 0x8003)")
00089 cpp_quote("#define E_FEATURE_HAS_NO_VIEW            MAKE_HRESULT(SEVERITY_ERROR,    FACILITY_ITF, 0x8004)")
00091 cpp_quote("#define E_USAGE_LIMIT_EXCEEDED           MAKE_HRESULT(SEVERITY_ERROR,    FACILITY_ITF, 0x8005)")
00093 cpp_quote("#define E_INFINITE_NUMBER                MAKE_HRESULT(SEVERITY_ERROR,    FACILITY_ITF, 0x8006)")
00094 
00095         interface ITimeGE;
00096         interface ITimeIntervalGE;
00097         interface ICameraInfoGE;
00098         interface ITourControllerGE;
00099         interface ISearchControllerGE;
00100         interface IAnimationControllerGE;
00101         interface IViewExtentsGE;
00102         interface IFeatureGE;
00103         interface IFeatureCollectionGE;
00104         interface IPointOnTerrainGE;
00105         interface IApplicationGE;
00106 
00111         typedef [ uuid(ECF071D1-75F4-4F61-A5D9-D96EEAF5EC1D), v1_enum ] enum {
00119                 RelativeToGroundAltitudeGE = 1,
00128                 AbsoluteAltitudeGE = 2
00129         } AltitudeModeGE;
00130 
00142         [
00143                 object,
00144                 uuid(E39391AE-51C0-4FBD-9042-F9C5B6094445),
00145                 dual,
00146                 helpstring("ITimeGE Interface"),
00147                 pointer_default(unique)
00148         ]
00149         interface ITimeGE : IDispatch
00150         {
00155                 typedef [ v1_enum ] enum {
00157                         TimeNegativeInfinityGE = -1,
00159                         TimeFiniteGE = 0,
00161                         TimePositiveInfinityGE = 1
00162                 } TimeTypeGE;
00170                 [propget, id(1), helpstring("property Type")]
00171                 HRESULT Type([out, retval] TimeTypeGE *pType);
00172                 [propput, id(1), helpstring("property Type")]
00173                 HRESULT Type([in] TimeTypeGE type);
00181                 [propget, id(2), helpstring("property Year")]
00182                 HRESULT Year([out, retval] int *pYear);
00183                 [propput, id(2), helpstring("property Year")]
00184                 HRESULT Year([in] int year);
00192                 [propget, id(3), helpstring("property Month")]
00193                 HRESULT Month([out, retval] int *pMonth);
00194                 [propput, id(3), helpstring("property Month")]
00195                 HRESULT Month([in] int month);
00203                 [propget, id(4), helpstring("property Day")]
00204                 HRESULT Day([out, retval] int *pDay);
00205                 [propput, id(4), helpstring("property Day")]
00206                 HRESULT Day([in] int day);
00214                 [propget, id(5), helpstring("property Hour")]
00215                 HRESULT Hour([out, retval] int *pHour);
00216                 [propput, id(5), helpstring("property Hour")]
00217                 HRESULT Hour([in] int hour);
00225                 [propget, id(6), helpstring("property Minute")]
00226                 HRESULT Minute([out, retval] int *pMinute);
00227                 [propput, id(6), helpstring("property Minute")]
00228                 HRESULT Minute([in] int minute);
00236                 [propget, id(7), helpstring("property Second")]
00237                 HRESULT Second([out, retval] int *pSecond);
00238                 [propput, id(7), helpstring("property Second")]
00239                 HRESULT Second([in] int second);
00254                 [propget, id(8), helpstring("property TimeZone")]
00255                 HRESULT TimeZone([out, retval] double *pTimeZone);
00256                 [propput, id(8), helpstring("property TimeZone")]
00257                 HRESULT TimeZone([in] double timeZone);
00261                 [id(9), helpstring("method Clone")]
00262                 HRESULT Clone([out, retval] ITimeGE **pTime);
00274                 [id(10), helpstring("method ConvertToZone")]
00275                 HRESULT ConvertToZone(
00276                         [in] double timeZone, [out, retval] ITimeGE **pTime);
00277         };
00284         [
00285                 object,
00286                 uuid(D794FE36-10B1-4E7E-959D-9638794D2A1B),
00287                 dual,
00288                 helpstring("ITimeIntervalGE Interface"),
00289                 pointer_default(unique)
00290         ]
00291         interface ITimeIntervalGE : IDispatch
00292         {
00298                 [propget, id(1), helpstring("property BeginTime")]
00299                 HRESULT BeginTime([out, retval] ITimeGE **pTime);
00305                 [propget, id(2), helpstring("property EndTime")]
00306                 HRESULT EndTime([out, retval] ITimeGE **pTime);
00307         };
00322         [
00323                 object,
00324                 uuid(08D46BCD-AF56-4175-999E-6DDC3771C64E),
00325                 dual,
00326                 helpstring("ICameraInfoGE Interface"),
00327                 pointer_default(unique)
00328         ]
00329         interface ICameraInfoGE : IDispatch
00330         {
00337                 [propget, id(1), helpstring("property FocusPointLatitude")]
00338                 HRESULT FocusPointLatitude([out, retval] double *pLat);
00339                 [propput, id(1), helpstring("property FocusPointLatitude")]
00340                 HRESULT FocusPointLatitude([in] double lat);
00347                 [propget, id(2), helpstring("property FocusPointLongitude")]
00348                 HRESULT FocusPointLongitude([out, retval] double *pLon);
00349                 [propput, id(2), helpstring("property FocusPointLongitude")]
00350                 HRESULT FocusPointLongitude([in] double lon);
00358                 [propget, id(3), helpstring("property FocusPointAltitude")]
00359                 HRESULT FocusPointAltitude([out, retval] double *pAlt);
00360                 [propput, id(3), helpstring("property FocusPointAltitude")]
00361                 HRESULT FocusPointAltitude([in] double alt);
00367                 [propget, id(4), helpstring("property AltitudeModeGE")]
00368                 HRESULT FocusPointAltitudeMode([out, retval] AltitudeModeGE *pAltMode);
00369                 [propput, id(4), helpstring("property AltitudeModeGE")]
00370                 HRESULT FocusPointAltitudeMode([in] AltitudeModeGE altMode);
00380                 [propget, id(5), helpstring("property Range")]
00381                 HRESULT Range([out, retval] double *pRange);
00382                 [propput, id(5), helpstring("property Range")]
00383                 HRESULT Range([in] double range);
00396                 [propget, id(6), helpstring("property Tilt")]
00397                 HRESULT Tilt([out, retval] double *pTilt);
00398                 [propput, id(6), helpstring("property Tilt")]
00399                 HRESULT Tilt([in] double tilt);
00410                 [propget, id(7), helpstring("property Azimuth")]
00411                 HRESULT Azimuth([out, retval] double *pAzimuth);
00412                 [propput, id(7), helpstring("property Azimuth")]
00413                 HRESULT Azimuth([in] double azimuth);
00414         };
00415 
00432         [
00433                 object,
00434                 uuid(D08577E0-365E-4216-B1A4-19353EAC1602),
00435                 dual,
00436                 helpstring("ITourControllerGE Interface"),
00437                 pointer_default(unique)
00438         ]
00439         interface ITourControllerGE : IDispatch
00440         {
00461                 [id(1), helpstring("method PlayOrPause")]
00462                 HRESULT PlayOrPause();
00471                 [id(2), helpstring("method Stop")]
00472                 HRESULT Stop();
00476                 [propget, id(3), helpstring("property Speed")]
00477                 HRESULT Speed([out, retval] double *pSpeed);
00478                 [propput, id(3), helpstring("property Speed")]
00479                 HRESULT Speed([in] double speed);
00483                 [propget, id(4), helpstring("property PauseDelay")]
00484                 HRESULT PauseDelay([out, retval] double *pPauseDelay);
00485                 [propput, id(4), helpstring("property PauseDelay")]
00486                 HRESULT PauseDelay([in] double pauseDelay);
00491                 [propget, id(5), helpstring("property Cycles")]
00492                 HRESULT Cycles([out, retval] int *pCycles);
00493                 [propput, id(5), helpstring("property Cycles")]
00494                 HRESULT Cycles([in] int cycles);
00495         };
00496 
00512         [
00513                 object,
00514                 uuid(524E5B0F-D593-45A6-9F87-1BAE7D338373),
00515                 dual,
00516                 helpstring("ISearchControllerGE Interface"),
00517                 pointer_default(unique)
00518         ]
00519         interface ISearchControllerGE : IDispatch
00520         {
00547                 [id(1), helpstring("method Search")]
00548                 HRESULT Search([in] BSTR searchString);
00559                 [id(2), helpstring("method IsSearchInProgress")]
00560                 HRESULT IsSearchInProgress([out, retval] BOOL *inProgress);
00581                 [id(3), helpstring("method GetResults")]
00582                 HRESULT GetResults([out, retval] IFeatureCollectionGE **pResults);
00591                 [id(4), helpstring("method ClearResults")]
00592                 HRESULT ClearResults();
00593         };
00594 
00609         [
00610                 object,
00611                 uuid(BE5E5F15-8EC4-4dCC-B48D-9957D2DE4D05),
00612                 dual,
00613                 helpstring("IAnimationControllerGE Interface"),
00614                 pointer_default(unique)
00615         ]
00616         interface IAnimationControllerGE : IDispatch
00617         {
00626                 [id(1), helpstring("method Play")]
00627                 HRESULT Play();
00636                 [id(2), helpstring("method Pause")]
00637                 HRESULT Pause();
00644                 [propget, id(3), helpstring("property SliderTimeInterval")]
00645                 HRESULT SliderTimeInterval([out, retval] ITimeIntervalGE **pInterval);
00655                 [propget, id(4), helpstring("property CurrentTimeInterval")]
00656                 HRESULT CurrentTimeInterval([out, retval] ITimeIntervalGE **pInterval);
00657                 [propput, id(4), helpstring("property CurrentTimeInterval")]
00658                 HRESULT CurrentTimeInterval([in] ITimeIntervalGE *interval);
00659         };
00660 
00671         [
00672                 object,
00673                 uuid(865AB2C1-38C5-492B-8B71-AC73F5A7A43D),
00674                 dual,
00675                 helpstring("IViewExtentsGE Interface"),
00676                 pointer_default(unique)
00677         ]
00678         interface IViewExtentsGE : IDispatch
00679         {
00681                 [propget, id(1), helpstring("property North")]
00682                 HRESULT North([out, retval] double *pVal);
00684                 [propget, id(2), helpstring("property South")]
00685                 HRESULT South([out, retval] double *pVal);
00687                 [propget, id(3), helpstring("property East")]
00688                 HRESULT East([out, retval] double *pVal);
00690                 [propget, id(4), helpstring("property West")]
00691                 HRESULT West([out, retval] double *pVal);
00692         };
00693         
00705         [
00706                 object,
00707                 uuid(92547B06-0007-4820-B76A-C84E402CA709),
00708                 dual,
00709                 helpstring("IFeatureGE Interface"),
00710                 pointer_default(unique)
00711         ]
00712         interface IFeatureGE : IDispatch
00713         {
00720                 [propget, id(1), helpstring("property Name")]
00721                 HRESULT Name([out, retval] BSTR *name);
00737                 [propget, id(2), helpstring("property Visibility")]
00738                 HRESULT Visibility([out, retval] BOOL *pVal);
00739                 [propput, id(2), helpstring("property Visibility")]
00740                 HRESULT Visibility([in] BOOL newVal);
00751                 [propget, id(3), helpstring("property HasView")]
00752                 HRESULT HasView([out, retval] BOOL *pVal);
00760                 [propget, id(4), helpstring("property Highlighted")]
00761                 HRESULT Highlighted([out, retval] BOOL *pVal);
00771                 [id(5), helpstring("method Highlight")]
00772                 HRESULT Highlight();
00787                 [id(6), helpstring("method GetParent")]
00788                 HRESULT GetParent([out, retval] IFeatureGE **pParent);
00807                 [id(7), helpstring("method GetChildren")]
00808                 HRESULT GetChildren([out, retval] IFeatureCollectionGE **pChildren);
00815                 [propget, id(8), helpstring("property TimeInterval")]
00816                 HRESULT TimeInterval([out, retval] ITimeIntervalGE **pInterval);
00817         };
00818 
00858         [
00859                 object,
00860                 uuid(851D25E7-785F-4DB7-95F9-A0EF7E836C44),
00861                 dual,
00862                 helpstring("IFeatureCollectionGE Interface"),
00863                 pointer_default(unique)
00864         ]
00865         interface IFeatureCollectionGE : IDispatch
00866         {
00867                 [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")]
00868                 HRESULT _NewEnum([out, retval] IUnknown** ppUnk);
00869 
00880                 [propget, id(DISPID_VALUE), helpstring("property Item")]
00881                 HRESULT Item([in] long index, [out, retval] IFeatureGE **pFeature);
00885                 [propget, id(1), helpstring("property Count")]
00886                 HRESULT Count([out, retval] long *count);
00887         };
00888 
00899         [
00900                 object,
00901                 uuid(F4F7B301-7C59-4851-BA97-C51F110B590F),
00902                 dual,
00903                 helpstring("IPointOnTerrainGE Interface"),
00904                 pointer_default(unique)
00905         ]
00906         interface IPointOnTerrainGE  : IDispatch
00907         {
00911                 [propget, id(1), helpstring("property Latitude")]
00912                 HRESULT Latitude([out, retval] double *pLat);
00916                 [propget, id(2), helpstring("property Longitude")]
00917                 HRESULT Longitude([out, retval] double *pLon);
00924                 [propget, id(3), helpstring("property Altitude")]
00925                 HRESULT Altitude([out, retval] double *pAlt);
00931                 [propget, id(4), helpstring("ProjectedOntoGlobe")]
00932                 HRESULT ProjectedOntoGlobe([out, retval] BOOL *pProjected);
00938                 [propget, id(5), helpstring("ZeroElevationExaggeration")]
00939                 HRESULT ZeroElevationExaggeration([out, retval] BOOL *pZeroExag);
00940         };
00941 
00951         [
00952                 object,
00953                 uuid(2830837B-D4E8-48C6-B6EE-04633372ABE4),
00954                 dual,
00955                 helpstring("IApplicationGE Interface"),
00956                 pointer_default(unique)
00957         ]
00958         interface IApplicationGE : IDispatch
00959         {
00985                 [id(1), helpstring("method GetCamera")]
00986                 HRESULT GetCamera([in] BOOL considerTerrain,
00987                                                   [out, retval] ICameraInfoGE **pCamera);
01011                 [id(2), helpstring("method SetCamera")]
01012                 HRESULT SetCamera([in] ICameraInfoGE *camera, [in] double speed);
01044                 [id(3), helpstring("method SetCameraParams")]
01045                 HRESULT SetCameraParams([in] double lat, [in] double lon,
01046                                                                 [in] double alt, [in] AltitudeModeGE altMode,
01047                                                                 [in] double range, [in] double tilt,
01048                                                                 [in] double azimuth, [in] double speed);
01053                 [propget, id(4), helpstring("property StreamingProgressPercentage")]
01054                 HRESULT StreamingProgressPercentage([out, retval] long *pVal);
01068                 [id(5), helpstring("method SaveScreenShot")]
01069                 HRESULT SaveScreenShot([in] BSTR fileName, [in] long quality);
01090                 [id(6), helpstring("method OpenKmlFile")]
01091                 HRESULT OpenKmlFile([in] BSTR fileName, [in] BOOL suppressMessages);
01103                 [id(7), helpstring("method LoadKmlData")]
01104                 HRESULT LoadKmlData([in] BSTR *kmlData);
01123                 [propget, id(8), helpstring("property AutoPilotSpeed")]
01124                 HRESULT AutoPilotSpeed([out, retval] double *pVal);
01125                 [propput, id(8), helpstring("property AutoPilotSpeed")]
01126                 HRESULT AutoPilotSpeed([in] double newVal);
01132                 [propget, id(9), helpstring("property ViewExtents")]
01133                 HRESULT ViewExtents([out, retval] IViewExtentsGE **pVal);
01153                 [id(10), helpstring("method GetFeatureByName")]
01154                 HRESULT GetFeatureByName([in] BSTR name,
01155                                                                  [out, retval] IFeatureGE **pFeature);
01185                 [id(11), helpstring("method GetFeatureByHref")]
01186                 HRESULT GetFeatureByHref([in] BSTR href,
01187                                                                  [out, retval] IFeatureGE **pFeature);
01207                 [id(12), helpstring("method SetFeatureView")]
01208                 HRESULT SetFeatureView([in] IFeatureGE *feature, [in] double speed);
01257                 [id(13), helpstring("method GetPointOnTerrainFromScreenCoords")]
01258                 HRESULT GetPointOnTerrainFromScreenCoords(
01259                         [in] double screen_x, [in] double screen_y,
01260                         [out, retval] IPointOnTerrainGE **pPoint);
01266                 typedef [ v1_enum ] enum { 
01268                         EnterpriseClientGE = 0, 
01270                         ProGE = 1, 
01272                         PlusGE = 2,
01274                         FreeGE = 5, 
01276                         UnknownGE = 0xFF } AppTypeGE;
01285                 [propget, id(14), helpstring("property VersionMajor")]
01286                 HRESULT VersionMajor([out, retval] int *major);
01295                 [propget, id(15), helpstring("property VersionMinor")]
01296                 HRESULT VersionMinor([out, retval] int *minor);
01305                 [propget, id(16), helpstring("property VersionBuild")]
01306                 HRESULT VersionBuild([out, retval] int *build);
01315                 [propget, id(17), helpstring("property VersionAppTye")]
01316                 HRESULT VersionAppType([out, retval] AppTypeGE *appType);
01330                 [id(18), helpstring("method IsInitialized")]
01331                 HRESULT IsInitialized([out, retval] BOOL *isInitialized);
01345                 [id(19), helpstring("method IsOnline")]
01346                 HRESULT IsOnline([out, retval] BOOL *isOnline);
01374                 [id(20), helpstring("method Login")]
01375                 HRESULT Login();
01387                 [id(21), helpstring("method Logout")] HRESULT Logout();
01406                 [id(22), helpstring("method ShowDescriptionBalloon")]
01407                 HRESULT ShowDescriptionBalloon([in] IFeatureGE *feature);
01416                 [id(23), helpstring("method HideDescriptionBalloons")]
01417                 HRESULT HideDescriptionBalloons();
01428                 [id(24), helpstring("method GetHighlightedFeature")]
01429                 HRESULT GetHighlightedFeature([out, retval] IFeatureGE **pFeature);
01441                 [id(25), helpstring("method GetMyPlaces")]
01442                 HRESULT GetMyPlaces([out, retval] IFeatureGE **pMyPlaces);
01455                 [id(26), helpstring("method GetTemporaryPlaces")]
01456                 HRESULT GetTemporaryPlaces([out, retval] IFeatureGE **pTemporaryPlaces);
01470                 [id(27), helpstring("method GetLayersDatabases")]
01471                 HRESULT GetLayersDatabases(
01472                         [out, retval] IFeatureCollectionGE **pDatabases);
01488                 [propget, id(28), helpstring("property ElevationExaggeration")]
01489                 HRESULT ElevationExaggeration([out, retval] double *pExaggeration);
01490                 [propput, id(28), helpstring("property ElevationExaggeration")]
01491                 HRESULT ElevationExaggeration([in] double exaggeration);
01503                 [id(29), helpstring("method GetMainHwnd")]
01504                 HRESULT GetMainHwnd([out, retval] OLE_HANDLE *hwnd);
01509                 [propget, id(30), helpstring("property TourController")]
01510                 HRESULT TourController(
01511                         [out, retval] ITourControllerGE **pTourController);
01516                 [propget, id(31), helpstring("property SearchController")]
01517                 HRESULT SearchController(
01518                         [out, retval] ISearchControllerGE **pSearchController);
01523                 [propget, id(32), helpstring("property AnimationController")]
01524                 HRESULT AnimationController(
01525                         [out, retval] IAnimationControllerGE **pAnimationController);
01541                 [id(33), helpstring("method GetRenderHwnd")]
01542                 HRESULT GetRenderHwnd([out, retval] OLE_HANDLE *hwnd);
01543         };
01544 
01545 
01546 // The following is deprecated and should not be used or documented.
01547         [
01548                 object,
01549                 uuid(45F89E39-7A46-4CA4-97E3-8C5AA252531C),
01550                 dual,
01551                 helpstring("IKHViewInfo Interface"),
01552                 pointer_default(unique)
01553         ]
01554         interface IKHViewInfo : IDispatch // Deprecated.
01555         {
01556                 [propget, id(1), helpstring("property latitude")] HRESULT latitude([out, retval] double *pLat);
01557                 [propput, id(1), helpstring("property latitude")] HRESULT latitude([in] double lat);
01558                 [propget, id(2), helpstring("property longitude")] HRESULT longitude([out, retval] double *pLon);
01559                 [propput, id(2), helpstring("property longitude")] HRESULT longitude([in] double lon);
01560                 [propget, id(3), helpstring("property range")] HRESULT range([out, retval] double *pRange);
01561                 [propput, id(3), helpstring("property range")] HRESULT range([in] double range);
01562                 [propget, id(4), helpstring("property tilt")] HRESULT tilt([out, retval] double *pTilt);
01563                 [propput, id(4), helpstring("property tilt")] HRESULT tilt([in] double tilt);
01564                 [propget, id(5), helpstring("property azimuth")] HRESULT azimuth([out, retval] double *pAzimuth);
01565                 [propput, id(5), helpstring("property azimuth")] HRESULT azimuth([in] double azimuth);
01566         };
01567 
01568         [
01569                 object,
01570                 uuid(D05D6E91-72DA-4654-B8A7-BCBD3B87E3B6),
01571                 dual,
01572                 helpstring("IKHViewExtents Interface"),
01573                 pointer_default(unique)
01574         ]
01575         interface IKHViewExtents : IDispatch // Deprecated.
01576         {
01577                 [propget, id(1), helpstring("property north")] HRESULT north([out, retval] double *pVal);
01578                 [propget, id(2), helpstring("property south")] HRESULT south([out, retval] double *pVal);
01579                 [propget, id(3), helpstring("property east")] HRESULT east([out, retval] double *pVal);
01580                 [propget, id(4), helpstring("property west")] HRESULT west([out, retval] double *pVal);
01581         };
01582         
01583         [
01584                 object,
01585                 uuid(07F46615-1857-40CF-9AA9-872C9858E769),
01586                 dual,
01587                 helpstring("IKHFeature Interface"),
01588                 pointer_default(unique)
01589         ]
01590         interface IKHFeature : IDispatch // Deprecated.
01591         {
01592                 [propget, id(1), helpstring("property visibility")] HRESULT visibility([out, retval] BOOL *pVal);
01593                 [propput, id(1), helpstring("property visibility")] HRESULT visibility([in] BOOL newVal);
01594                 [propget, id(2), helpstring("property hasView")] HRESULT hasView([out, retval] BOOL *pVal);
01595         };
01596 
01597         [
01598                 object,
01599                 uuid(80A43F86-E2CD-4671-A7FA-E5627B519711),
01600                 dual,
01601                 helpstring("IKHInterface Interface"),
01602                 pointer_default(unique)
01603         ]
01604         interface IKHInterface : IDispatch // Deprecated.
01605         {
01606                 [id(2), helpstring("property currentView")] HRESULT currentView([in] BOOL terrain, [out, retval] IKHViewInfo **pView);
01607                 [propget, id(3), helpstring("property streamingProgressPercentage")] HRESULT streamingProgressPercentage([out, retval] long *pVal);
01608                 [id(4), helpstring("method SaveScreenShot")] HRESULT SaveScreenShot([in] BSTR fileName, [in] long quality);
01609                 [id(5), helpstring("method OpenFile")] HRESULT OpenFile([in] BSTR fileName);
01610                 [id(6), helpstring("method QuitApplication")] HRESULT QuitApplication();
01611                 [id(7), helpstring("method SetRenderWindowSize")] HRESULT SetRenderWindowSize(long width, long height);
01612                 [propget, id(9), helpstring("property autopilotSpeed")] HRESULT autopilotSpeed([out, retval] double *pVal);
01613                 [propput, id(9), helpstring("property autopilotSpeed")] HRESULT autopilotSpeed([in] double newVal);
01614                 [propget, id(10), helpstring("property currentViewExtents")] HRESULT currentViewExtents([out, retval] IKHViewExtents **pVal);
01615                 [id(11), helpstring("method setView")] HRESULT setView([in] IKHViewInfo *view, [in] BOOL terrain, [in] double speed);
01616                 [id(12), helpstring("method LoadKml")] HRESULT LoadKml([in] BSTR *kmlData);
01617                 [id(13), helpstring("method getFeatureByName")] HRESULT getFeatureByName([in] BSTR name, [out, retval] IKHFeature **pFeature);
01618                 [id(14), helpstring("method setViewParams")] HRESULT setViewParams([in] double lat, [in] double lon, [in] double range, [in] double tilt, [in] double azimuth, [in] BOOL terrain, [in] double speed);
01619                 [id(15), helpstring("method setFeatureView")] HRESULT setFeatureView([in] IKHFeature *feature, [in] double speed);
01620                 [id(16), helpstring("method getPointOnTerrainFromScreenCoords")] HRESULT getPointOnTerrainFromScreenCoords([in] double screen_x, [in] double screen_y, [out, retval] SAFEARRAY(double) *coords);
01621                 typedef [ v1_enum ] enum { 
01622                         GE_EC = 0, 
01623                         GE_Pro = 1, 
01624                         GE_Plus = 2,
01625                         GE_LT = 3, 
01626                         GE_NV = 4, 
01627                         GE_Free = 5, 
01628                         UNKNOWN = 0xFF 
01629                 } AppType;
01630                 [id(17), helpstring("method getCurrentVersion")] HRESULT getCurrentVersion([out] int *major, [out] int *minor, [out] int *build, [out] AppType *appType);
01631                 [id(18), helpstring("method isClientInitialized")] HRESULT isClientInitialized([out] int *isInitialized);
01632         };
01633 
01634 [
01635         uuid(3476FAB2-687F-4EA6-9AC2-88D72DC7D7FC),
01636         version(1.0),
01637         helpstring("Earth 1.0 Type Library")
01638 ]
01639 library EARTHLib
01640 {
01641         importlib("stdole32.tlb");
01642         importlib("stdole2.tlb");
01643 
01644         [
01645                 uuid(8097D7E9-DB9E-4AEF-9B28-61D82A1DF784),
01646                 helpstring("ApplicationGE Class")
01647         ]
01648         coclass ApplicationGE
01649         {
01650                 [default] interface IApplicationGE;
01651         };
01652         [
01653                 uuid(1AEDB68D-18A7-4CA9-B41B-3CE7E59FAB24),
01654                 helpstring("TimeGE Class")
01655         ]
01656         coclass TimeGE
01657         {
01658                 [default] interface ITimeGE;
01659         };
01660         [
01661                 uuid(42DF0D46-7D49-4AE5-8EF6-9CA6E41EFEC1),
01662                 helpstring("TimeIntervalGE Class")
01663         ]
01664         coclass TimeIntervalGE
01665         {
01666                 [default] interface ITimeIntervalGE;
01667         };
01668         [
01669                 uuid(645EEE5A-BD51-4C05-A6AF-6F2CF8950AAB),
01670                 helpstring("CameraInfoGE Class")
01671         ]
01672         coclass CameraInfoGE
01673         {
01674                 [default] interface ICameraInfoGE;
01675         };
01676         [
01677                 uuid(D93BF052-FC68-4DB6-A4F8-A4DC9BEEB1C0),
01678                 helpstring("ViewExtentsGE Class")
01679         ]
01680         coclass ViewExtentsGE
01681         {
01682                 [default] interface IViewExtentsGE;
01683         };
01684         [
01685                 uuid(77C4C807-E257-43AD-BB3F-7CA88760BD29),
01686                 helpstring("TourControllerGE Class")
01687         ]
01688         coclass TourControllerGE
01689         {
01690                 [default] interface ITourControllerGE;
01691         };
01692         [
01693                 uuid(A4F65992-5738-475B-9C16-CF102BCDE153),
01694                 helpstring("SearchControllerGE Class")
01695         ]
01696         coclass SearchControllerGE
01697         {
01698                 [default] interface ISearchControllerGE;
01699         };
01700         [
01701                 uuid(1A239250-B650-4B63-B4CF-7FCC4DC07DC6),
01702                 helpstring("AnimationControllerGE Class")
01703         ]
01704         coclass AnimationControllerGE
01705         {
01706                 [default] interface IAnimationControllerGE;
01707         };
01708         [
01709                 uuid(CBD4FB70-F00B-4963-B249-4B056E6A981A),
01710                 helpstring("FeatureGE Class")
01711         ]
01712         coclass FeatureGE
01713         {
01714                 [default] interface IFeatureGE;
01715         };
01716         [
01717                 uuid(9059C329-4661-49B2-9984-8753C45DB7B9),
01718                 helpstring("FeatureCollectionGE class")
01719         ]
01720         coclass FeatureCollectionGE
01721         {
01722                 [default] interface IFeatureCollectionGE;
01723         };
01724         [
01725                 uuid(1796A329-04C1-4C07-B28E-E4A807935C06),
01726                 helpstring("PointOnTerrainGE class")
01727         ]
01728         coclass PointOnTerrainGE
01729         {
01730                 [default] interface IPointOnTerrainGE;
01731         };
01732 
01733 // The following are deprecated and should not be used or documented.
01734         [
01735                 uuid(AFD07A5E-3E20-4D77-825C-2F6D1A50BE5B),
01736                 helpstring("KHInterface Class")
01737         ]
01738         coclass KHInterface // Deprecated.
01739         {
01740                 [default] interface IKHInterface;
01741         };
01742         [
01743                 uuid(A2D4475B-C9AA-48E2-A029-1DB829DACF7B),
01744                 helpstring("KHViewInfo Class")
01745         ]
01746         coclass KHViewInfo // Deprecated.
01747         {
01748                 [default] interface IKHViewInfo;
01749         };
01750         [
01751                 uuid(63E6BE14-A742-4EEA-8AF3-0EC39F10F850),
01752                 helpstring("KHViewExtents Class")
01753         ]
01754         coclass KHViewExtents // Deprecated.
01755         {
01756                 [default] interface IKHViewExtents;
01757         };
01758         [
01759                 uuid(B153D707-447A-4538-913E-6146B3FDEE02),
01760                 helpstring("KHFeature Class")
01761         ]
01762         coclass KHFeature // Deprecated.
01763         {
01764                 [default] interface IKHFeature;
01765         };
01766 };


Google Earth
     
©2008 Google - Google Home - About Google