Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Mimic.hpp>
Classes | |
struct | DefaultValues |
struct | Keys |
struct | Sections |
Public Member Functions | |
Mimic () | |
void | update (const Mimic &other, bool onlyElements=false) |
bool | load (const iv::file::xml::File &xml) |
bool | save (const std::shared_ptr< iv::file::xml::File > &xml) const |
std::shared_ptr< Mimic > | clone () const |
void | addElement (std::shared_ptr< iv::mimics::AbstractMimicElement > element) |
void | updateEnabledLanguages (const std::set< iv::eLanguage > &enabledLanguages) |
void | drawMimic (IGraphics *graphics, iv::eLanguage drawingLanguage) const |
void | removeGraphicsObjects (IGraphics *graphics) const |
void | handleEvent (CEventMotion *evtMotion) const |
void | addBackGroundDxf (std::string_view nameFileBackGround) |
void | removeBackgroundDxf () |
std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > | getChannels () const |
std::unordered_set< iv::types::channelId > | getRepeatedChannels () const |
void | updateControlsBackground () |
std::optional< std::weak_ptr< iv::mimics::AbstractMimicElement > > | isPointInMimic (double x, double y) const |
std::string | toPdf () |
AbstractComponentGUI * | panelSelectTypeScreenResolution () |
Public Attributes | |
iv::types::mimicId | m_id |
std::set< iv::types::stationId > | m_hiddenInStations |
iv::model::LocalizedText | m_names |
iv::model::diamar::eMimicAspectRatio | m_mimicAspectRatio |
std::string | m_pathBackground |
std::string | m_description |
Private Member Functions | |
void | drawControls (iv::mimics::eZDepth depth, IGraphics *pGraphics, iv::eLanguage drawingLanguage, const std::optional< std::unordered_set< iv::types::channelId > > &channelsRepeatedOpt) const |
void | prvRemoveElements (iv::mimics::eZDepth depth) |
void | prvCreateBackground (std::string_view pathFileBackground) |
std::shared_ptr< CGeoCanvas > | prvCreateGeoScreen () const |
Private Attributes | |
std::shared_ptr< CGeoCanvas > | m_geoScreen |
std::vector< std::shared_ptr< CDxf > > | m_backgroundDxf |
std::vector< iv::ui::resources::ImageResource > | m_backgroundResources |
iv::diamar::Mimic::Mimic | ( | ) |
void iv::diamar::Mimic::addBackGroundDxf | ( | std::string_view | nameFileBackGround | ) |
void iv::diamar::Mimic::addElement | ( | std::shared_ptr< iv::mimics::AbstractMimicElement > | element | ) |
std::shared_ptr< Mimic > iv::diamar::Mimic::clone | ( | ) | const |
|
private |
void iv::diamar::Mimic::drawMimic | ( | IGraphics * | graphics, |
iv::eLanguage | drawingLanguage ) const |
std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > iv::diamar::Mimic::getChannels | ( | ) | const |
|
nodiscard |
void iv::diamar::Mimic::handleEvent | ( | CEventMotion * | evtMotion | ) | const |
std::optional< std::weak_ptr< iv::mimics::AbstractMimicElement > > iv::diamar::Mimic::isPointInMimic | ( | double | x, |
double | y ) const |
bool iv::diamar::Mimic::load | ( | const iv::file::xml::File & | xml | ) |
AbstractComponentGUI * iv::diamar::Mimic::panelSelectTypeScreenResolution | ( | ) |
|
private |
|
private |
|
private |
void iv::diamar::Mimic::removeBackgroundDxf | ( | ) |
void iv::diamar::Mimic::removeGraphicsObjects | ( | IGraphics * | graphics | ) | const |
bool iv::diamar::Mimic::save | ( | const std::shared_ptr< iv::file::xml::File > & | xml | ) | const |
std::string iv::diamar::Mimic::toPdf | ( | ) |
void iv::diamar::Mimic::update | ( | const Mimic & | other, |
bool | onlyElements = false ) |
void iv::diamar::Mimic::updateControlsBackground | ( | ) |
void iv::diamar::Mimic::updateEnabledLanguages | ( | const std::set< iv::eLanguage > & | enabledLanguages | ) |
|
private |
|
private |
std::string iv::diamar::Mimic::m_description |
|
mutableprivate |
std::set<iv::types::stationId> iv::diamar::Mimic::m_hiddenInStations |
iv::types::mimicId iv::diamar::Mimic::m_id |
iv::model::diamar::eMimicAspectRatio iv::diamar::Mimic::m_mimicAspectRatio |
iv::model::LocalizedText iv::diamar::Mimic::m_names |
std::string iv::diamar::Mimic::m_pathBackground |