x
We use cookies to analyze traffic and provide you with better content. By continuing to use our site, you agree to the use of cookie technology. Read more. I agree
Slide background

Developer -
C++ MFC

Getting started
  • Download and install TerraExplorer Plus.
  • Create a new MFC Application project in Visual Studio using Visual C++.
    • In Visual Studio, select File> New> Project.
    • Select Visual C++ >MFC >MFC Application.
    • Name the project TerraExplorerShowcase.
    • Click OK and then click Next.
    • In the Application type field select dialog based.
    • Click Finish.
  • Add TerraExplorer ActiveX objects to the Toolbox.
    • In Design view, right click the Toolbox, and select Choose Items.
    • Click the COM Components tab and select the TE3DWindow Class, TEInformationWindow Class and TENavigationMap Class check-boxes.
    • Click OK. Three icons are added to your toolbox: the 3D Window, the Information Window and the Navigation Map controls.
  • Add a 3D Window to the form.
    • Click the 3D window control icon in the toolbox and drag it to the required location on your form.
  • In your main dialog .cpp file add the "#import" statement after the include statements to link your project to the TerraExplorer COM interface. Make sure the name of the file in this command points to the TerraExplorer or TerraExplorer Pro executable on your computer.
    #import "C:\Program Files (x86)\Skyline\TerraExplorer\TerraExplorerX.dll" no_namespace, named_guids
  • Create the SGWorld66 CoClass in the ::OnInitDialog method.
    • Note: The constant CLSID_SGWorld66 is automatically defined by the "#import" command.
    ISGWorld66Ptr pISGWorld;
    pISGWorld.CreateInstance(CLSID_SGWorld66);
  • Call the methods on the interface pointer.
    pISGWorld->Project->Open("https://www.skylinesoft.com/SkylineGlobe/WebClient/PresentationLayer/WebClient/SkyglobeLB.fly",FALSE,"","");
    IPosition66Ptr pIPosition66 = pISGWorld->Creator->CreatePosition(-77.036667, 38.895111, 1500,AltitudeTypeCode::ATC_TERRAIN_RELATIVE,0,0,0,0);
    pISGWorld->Navigate->FlyTo(_variant_t(pIPosition66),ActionCode::AC_FLYTO);

API
Reference Guide

See complete list of methods
and properties

Download
Center

Developer evaluations
request form