2#include "NDEVR/Headers/QTModelManager.h"
3#include "NDEVR/Headers/ProjectFileManager.h"
4#include "Widgets/Headers/Button.h"
5#include "Widgets/Headers/QTErrorDialog.h"
6#include "Widgets/Headers/ApplicationLauncherButton.h"
7#include "KMLInterface/Headers/KMLFactory.h"
8#include "Base/Headers/ApplicationResource.h"
9#include "Base/Headers/Exception.hpp"
10#include "Base/Headers/Translator.h"
11#include "Base/Headers/FileResource.h"
47#if NDEVR_SUPPORTS_THREADING
52 m_factory.getSupportedFormats(formats,
false);
53 if (formats.size() > 0)
70#if NDEVR_SUPPORTS_THREADING
109 m_factory.getSupportedFormats(formats,
false);
110 if (formats.size() > 0)
140 return File(
"C:\\Program Files\\Google\\Google Earth Pro\\client\\googleearth.exe");
A thread that executes a user-provided callback function concurrently.
The equivelent of std::vector but with a bit more control.
Provides consistent interface to handle errors through the throw expression.
bool ignore_invisible
Whether to skip invisible objects during import/export.
Contains methods for getting information about particular OS directories or static program file direc...
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
@ e_file_name
The file name without extension.
bool exists() const
Checks whether this file or directory exists on disk.
QTModelManager * m_manager
The application model manager.
File m_cad_launcher
Path to the Google Earth executable.
ApplicationLauncherButtonManager * createAppLauncher()
Creates the application launcher manager with callbacks for KML export and import.
bool hasActiveInstallation() const
Checks whether Google Earth Pro is installed on this system.
Button * createLauncherButton()
Creates a UI button that launches Google Earth Pro.
KMLFactory m_factory
KML read/write factory instance.
ApplicationLauncherButtonManager * m_google_earth_button_manager
The button manager for launching Google Earth.
File m_dxf_folder
Temporary folder for exported files.
GoogleEarthApplicationManager(QTModelManager *manager)
Constructs a GoogleEarthApplicationManager.
File m_active_kml
Path to the active KML file being shared.
void setupForCAD()
Exports the current project data as KML and configures the launcher arguments.
static File FindGoogleEarthApp()
Locates the Google Earth Pro executable on the system.
void setCADLauncher(const File &f)
Sets the path to the Google Earth executable.
Reads and writes KML/KMZ geographic markup files using the IOFactory interface.
static void CreateErrorDialog(Exception exception, LogPtr log=LogPtr())
Creates and shows an error dialog for the given exception.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
void start()
Starts the thread execution.
The primary namespace for the NDEVR SDK.
A container of input information that is to be filled with output information by an IOFactory.
FactoryOptions options
All read/write options including special parameters.
void setInfoPipe(InfoPipe *pipe)
Sets the info pipe for streaming log messages or cancelling the operation.
Buffer< UUID > cameras
UUIDs of cameras created or targeted by the operation.
Buffer< UUID > models
UUIDs of models created or targeted by the operation.
DesignObjectLookup * lookup
The design object lookup used to resolve models and objects.