![]() |
NDEVR
API Documentation
|
Manages the integration with Google Earth Pro, exporting project data as KML and launching the external application for visualization and data collection. More...
Public Member Functions | |
| GoogleEarthApplicationManager (QTModelManager *manager) | |
| Constructs a GoogleEarthApplicationManager. | |
| ApplicationLauncherButtonManager * | createAppLauncher () |
| Creates the application launcher manager with callbacks for KML export and import. | |
| Button * | createLauncherButton () |
| 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. | |
| ApplicationLauncherButtonManager * | m_google_earth_button_manager |
| The button manager for launching Google Earth. | |
| QTModelManager * | m_manager |
| The application model manager. | |
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.
|
inline |
Constructs a GoogleEarthApplicationManager.
| [in] | manager | The 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.
|
inline |
Creates the application launcher manager with callbacks for KML export and import.
Definition at line 38 of file GoogleEarthApplicationManager.h.
References QTErrorDialog::CreateErrorDialog(), FindGoogleEarthApp(), FactoryOptions::ignore_invisible, FactoryParameters::lookup, m_active_kml, m_cad_launcher, m_factory, m_google_earth_button_manager, m_manager, FactoryParameters::options, FactoryParameters::setInfoPipe(), setupForCAD(), and Thread::start().
Referenced by createLauncherButton().
|
inline |
Creates a UI button that launches Google Earth Pro.
Definition at line 86 of file GoogleEarthApplicationManager.h.
References createAppLauncher(), m_google_earth_button_manager, and Button::setTitle().
|
inlinestatic |
Locates the Google Earth Pro executable on the system.
Definition at line 137 of file GoogleEarthApplicationManager.h.
Referenced by createAppLauncher(), and hasActiveInstallation().
|
inline |
Checks whether Google Earth Pro is installed on this system.
Definition at line 96 of file GoogleEarthApplicationManager.h.
References File::exists(), FindGoogleEarthApp(), and m_cad_launcher.
|
inline |
Sets the path to the Google Earth executable.
| [in] | f | The file path to set. |
Definition at line 32 of file GoogleEarthApplicationManager.h.
References m_cad_launcher.