NDEVR
API Documentation
GoogleEarthApplicationManager

Manages the integration with Google Earth Pro, exporting project data as KML and launching the external application for visualization and data collection. More...

Collaboration diagram for GoogleEarthApplicationManager:
[legend]

Public Member Functions

 GoogleEarthApplicationManager (QTModelManager *manager)
 Constructs a GoogleEarthApplicationManager.
ApplicationLauncherButtonManagercreateAppLauncher ()
 Creates the application launcher manager with callbacks for KML export and import.
ButtoncreateLauncherButton ()
 Creates a UI button that launches Google Earth Pro.
bool hasActiveInstallation () const
 Checks whether Google Earth Pro is installed on this system.
void setCADLauncher (const File &f)
 Sets the path to the Google Earth executable.
void setupForCAD ()
 Exports the current project data as KML and configures the launcher arguments.

Static Public Member Functions

static File FindGoogleEarthApp ()
 Locates the Google Earth Pro executable on the system.

Public Attributes

File m_active_kml
 Path to the active KML file being shared.
File m_cad_launcher
 Path to the Google Earth executable.
File m_dxf_folder
 Temporary folder for exported files.
KMLFactory m_factory
 KML read/write factory instance.
ApplicationLauncherButtonManagerm_google_earth_button_manager
 The button manager for launching Google Earth.
QTModelManagerm_manager
 The application model manager.

Detailed Description

Manages the integration with Google Earth Pro, exporting project data as KML and launching the external application for visualization and data collection.


Definition at line 18 of file GoogleEarthApplicationManager.h.

Constructor & Destructor Documentation

◆ GoogleEarthApplicationManager()

GoogleEarthApplicationManager::GoogleEarthApplicationManager ( QTModelManager * manager)
inline

Constructs a GoogleEarthApplicationManager.

Parameters
[in]managerThe model manager for accessing project data.

Definition at line 23 of file GoogleEarthApplicationManager.h.

References m_dxf_folder, m_google_earth_button_manager, and m_manager.

Member Function Documentation

◆ createAppLauncher()

ApplicationLauncherButtonManager * GoogleEarthApplicationManager::createAppLauncher ( )
inline

◆ createLauncherButton()

Button * GoogleEarthApplicationManager::createLauncherButton ( )
inline

Creates a UI button that launches Google Earth Pro.

Returns
A pointer to the created Button.

Definition at line 86 of file GoogleEarthApplicationManager.h.

References createAppLauncher(), m_google_earth_button_manager, and Button::setTitle().

◆ FindGoogleEarthApp()

File GoogleEarthApplicationManager::FindGoogleEarthApp ( )
inlinestatic

Locates the Google Earth Pro executable on the system.

Returns
The file path to the Google Earth executable.

Definition at line 137 of file GoogleEarthApplicationManager.h.

Referenced by createAppLauncher(), and hasActiveInstallation().

◆ hasActiveInstallation()

bool GoogleEarthApplicationManager::hasActiveInstallation ( ) const
inline

Checks whether Google Earth Pro is installed on this system.

Returns
True if an installation was found.

Definition at line 96 of file GoogleEarthApplicationManager.h.

References File::exists(), FindGoogleEarthApp(), and m_cad_launcher.

◆ setCADLauncher()

void GoogleEarthApplicationManager::setCADLauncher ( const File & f)
inline

Sets the path to the Google Earth executable.

Parameters
[in]fThe file path to set.

Definition at line 32 of file GoogleEarthApplicationManager.h.

References m_cad_launcher.


The documentation for this class was generated from the following file: