Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TYIGNGeoProvider Class Reference

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>

Inheritance diagram for TYIGNGeoProvider:
Inheritance graph
[legend]
Collaboration diagram for TYIGNGeoProvider:
Collaboration graph
[legend]

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 TYIGNGeoProvidergetInstance ()
 

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 TYIGNGeoProvidersingleton_ = nullptr
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TYIGNGeoProvider() [1/2]

TYIGNGeoProvider::TYIGNGeoProvider ( )
private

Definition at line 28 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ TYIGNGeoProvider() [2/2]

TYIGNGeoProvider::TYIGNGeoProvider ( TYIGNGeoProvider other)
delete

Member Function Documentation

◆ buildLevelCurves()

void TYIGNGeoProvider::buildLevelCurves ( const OCoord3D SIGCoords,
const OBox selectedZone,
double  scaleFactor 
)

Definition at line 234 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ closeModalWindow()

void TYIGNGeoProvider::closeModalWindow ( )

Definition at line 153 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ coordinatesToDouble()

std::vector< double > TYIGNGeoProvider::coordinatesToDouble ( const QString &  coord)

Definition at line 240 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ geoProjectCreationRequested

void TYIGNGeoProvider::geoProjectCreationRequested ( )
signal
Here is the caller graph for this function:

◆ getImageWidth()

const QString TYIGNGeoProvider::getImageWidth ( )

Definition at line 202 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ getInstance()

TYIGNGeoProvider * TYIGNGeoProvider::getInstance ( )
static

Definition at line 37 of file TYIGNGeoProvider.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLandtakeCoord()

const QString TYIGNGeoProvider::getLandtakeCoord ( )

Definition at line 166 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ getScaleFactor()

const QString TYIGNGeoProvider::getScaleFactor ( )

Definition at line 184 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ handleCancelRequest

void TYIGNGeoProvider::handleCancelRequest ( )
privateslot

Definition at line 274 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ handleOKRequest

void TYIGNGeoProvider::handleOKRequest ( )
privateslot

Definition at line 282 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ initEngine()

void TYIGNGeoProvider::initEngine ( )

Definition at line 76 of file TYIGNGeoProvider.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInitialised()

bool TYIGNGeoProvider::isInitialised ( )
inline

Definition at line 69 of file TYIGNGeoProvider.h.

◆ mockGeoPf()

bool TYIGNGeoProvider::mockGeoPf ( )

Mocks IGN Geoplatform web services when they are down.

Returns
true if the mock succeded else returns false

Definition at line 253 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ openModalWindow()

void TYIGNGeoProvider::openModalWindow ( QWidget *  mainWindow)

Definition at line 106 of file TYIGNGeoProvider.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void TYIGNGeoProvider::operator= ( const TYIGNGeoProvider )
delete

◆ resetEngine

void TYIGNGeoProvider::resetEngine ( )
privateslot

Definition at line 46 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ resetGeographicData()

void TYIGNGeoProvider::resetGeographicData ( )

Definition at line 264 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ saveImageToFile()

bool TYIGNGeoProvider::saveImageToFile ( const QString &  filePath)

Definition at line 220 of file TYIGNGeoProvider.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setImageWidth()

void TYIGNGeoProvider::setImageWidth ( const QString &  text)

Definition at line 212 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ setLandtakeCoord()

void TYIGNGeoProvider::setLandtakeCoord ( const QString &  text)

Definition at line 176 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

◆ setScaleFactor()

void TYIGNGeoProvider::setScaleFactor ( const QString &  text)

Definition at line 194 of file TYIGNGeoProvider.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _engine

std::shared_ptr<QQmlApplicationEngine> TYIGNGeoProvider::_engine
private

Definition at line 38 of file TYIGNGeoProvider.h.

◆ _geographicData

QObject* TYIGNGeoProvider::_geographicData
private

Definition at line 52 of file TYIGNGeoProvider.h.

◆ _isInitialised

bool TYIGNGeoProvider::_isInitialised
private

True when web engine is intialized.

Definition at line 44 of file TYIGNGeoProvider.h.

◆ _isSelectionValidated

bool TYIGNGeoProvider::_isSelectionValidated
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.

◆ _mocker

std::shared_ptr<TYIGNGeoPfMocker> TYIGNGeoProvider::_mocker

Definition at line 88 of file TYIGNGeoProvider.h.

◆ _parser

std::shared_ptr<TYIGNLevelCurvesParser> TYIGNGeoProvider::_parser

Definition at line 87 of file TYIGNGeoProvider.h.

◆ singleton_

TYIGNGeoProvider * TYIGNGeoProvider::singleton_ = nullptr
staticprivate

Definition at line 36 of file TYIGNGeoProvider.h.


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