|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
This class holds a singleton instance which is an entry point for accessing IGN Geoplatform in order to create a georeferenced project. More...
#include <TYIGNGeoProvider.h>


Signals | |
| void | geoProjectCreationRequested () |
Public Member Functions | |
| TYIGNGeoProvider (TYIGNGeoProvider &other)=delete | |
| void | operator= (const TYIGNGeoProvider &)=delete |
| const QString | getLandtakeCoord () |
| void | setLandtakeCoord (const QString &text) |
| const QString | getScaleFactor () |
| void | setScaleFactor (const QString &text) |
| const QString | getImageWidth () |
| void | setImageWidth (const QString &text) |
| bool | saveImageToFile (const QString &filePath) |
| void | initEngine () |
| bool | isInitialised () |
| void | openModalWindow (QWidget *mainWindow) |
| void | closeModalWindow () |
| void | buildLevelCurves (const OCoord3D &SIGCoords, const OBox &selectedZone, double scaleFactor) |
| std::vector< double > | coordinatesToDouble (const QString &coord) |
| bool | mockGeoPf () |
| Mocks IGN Geoplatform web services when they are down. More... | |
| void | resetGeographicData () |
Static Public Member Functions | |
| static TYIGNGeoProvider * | getInstance () |
Public Attributes | |
| std::shared_ptr< TYIGNLevelCurvesParser > | _parser |
| std::shared_ptr< TYIGNGeoPfMocker > | _mocker |
Private Slots | |
| void | handleCancelRequest () |
| void | handleOKRequest () |
| void | resetEngine () |
Private Member Functions | |
| TYIGNGeoProvider () | |
Private Attributes | |
| std::shared_ptr< QQmlApplicationEngine > | _engine |
| bool | _isInitialised |
| True when web engine is intialized. More... | |
| bool | _isSelectionValidated |
| Set to false when displaying zone selection page. When selection is validated, it is set to true in order to avoid multiple signal emissions. More... | |
| QObject * | _geographicData |
Static Private Attributes | |
| static TYIGNGeoProvider * | singleton_ = nullptr |
This class holds a singleton instance which is an entry point for accessing IGN Geoplatform in order to create a georeferenced project.
Definition at line 29 of file TYIGNGeoProvider.h.
|
private |
|
delete |
| void TYIGNGeoProvider::closeModalWindow | ( | ) |
| std::vector< double > TYIGNGeoProvider::coordinatesToDouble | ( | const QString & | coord | ) |
|
signal |

| const QString TYIGNGeoProvider::getImageWidth | ( | ) |
|
static |
Definition at line 37 of file TYIGNGeoProvider.cpp.


| const QString TYIGNGeoProvider::getLandtakeCoord | ( | ) |
| const QString TYIGNGeoProvider::getScaleFactor | ( | ) |
|
privateslot |
|
privateslot |
| void TYIGNGeoProvider::initEngine | ( | ) |
Definition at line 76 of file TYIGNGeoProvider.cpp.


|
inline |
Definition at line 69 of file TYIGNGeoProvider.h.
| bool TYIGNGeoProvider::mockGeoPf | ( | ) |
Mocks IGN Geoplatform web services when they are down.
true if the mock succeded else returns false Definition at line 253 of file TYIGNGeoProvider.cpp.

| void TYIGNGeoProvider::openModalWindow | ( | QWidget * | mainWindow | ) |
Definition at line 106 of file TYIGNGeoProvider.cpp.


|
delete |
|
privateslot |
| void TYIGNGeoProvider::resetGeographicData | ( | ) |
| bool TYIGNGeoProvider::saveImageToFile | ( | const QString & | filePath | ) |
Definition at line 220 of file TYIGNGeoProvider.cpp.


| void TYIGNGeoProvider::setImageWidth | ( | const QString & | text | ) |
| void TYIGNGeoProvider::setLandtakeCoord | ( | const QString & | text | ) |
| void TYIGNGeoProvider::setScaleFactor | ( | const QString & | text | ) |
|
private |
Definition at line 38 of file TYIGNGeoProvider.h.
|
private |
Definition at line 52 of file TYIGNGeoProvider.h.
|
private |
True when web engine is intialized.
Definition at line 44 of file TYIGNGeoProvider.h.
|
private |
Set to false when displaying zone selection page. When selection is validated, it is set to true in order to avoid multiple signal emissions.
Definition at line 50 of file TYIGNGeoProvider.h.
| std::shared_ptr<TYIGNGeoPfMocker> TYIGNGeoProvider::_mocker |
Definition at line 88 of file TYIGNGeoProvider.h.
| std::shared_ptr<TYIGNLevelCurvesParser> TYIGNGeoProvider::_parser |
Definition at line 87 of file TYIGNGeoProvider.h.
|
staticprivate |
Definition at line 36 of file TYIGNGeoProvider.h.