Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::diamar::Mimic Class Reference

#include <Mimic.hpp>

Inheritance diagram for iv::diamar::Mimic:
[legend]
Collaboration diagram for iv::diamar::Mimic:
[legend]

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< Mimicclone () 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::channelIdgetRepeatedChannels () const
 
void updateControlsBackground ()
 
std::optional< std::weak_ptr< iv::mimics::AbstractMimicElement > > isPointInMimic (double x, double y) const
 
std::string toPdf ()
 
AbstractComponentGUIpanelSelectTypeScreenResolution ()
 

Public Attributes

iv::types::mimicId m_id
 
std::set< iv::types::stationIdm_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< CGeoCanvasprvCreateGeoScreen () const
 

Private Attributes

std::shared_ptr< CGeoCanvasm_geoScreen
 
std::vector< std::shared_ptr< CDxf > > m_backgroundDxf
 
std::vector< iv::ui::resources::ImageResourcem_backgroundResources
 

Constructor & Destructor Documentation

◆ Mimic()

iv::diamar::Mimic::Mimic ( )

Member Function Documentation

◆ addBackGroundDxf()

void iv::diamar::Mimic::addBackGroundDxf ( std::string_view nameFileBackGround)

◆ addElement()

void iv::diamar::Mimic::addElement ( std::shared_ptr< iv::mimics::AbstractMimicElement > element)

◆ clone()

std::shared_ptr< Mimic > iv::diamar::Mimic::clone ( ) const

◆ drawControls()

void iv::diamar::Mimic::drawControls ( iv::mimics::eZDepth depth,
IGraphics * pGraphics,
iv::eLanguage drawingLanguage,
const std::optional< std::unordered_set< iv::types::channelId > > & channelsRepeatedOpt ) const
private

◆ drawMimic()

void iv::diamar::Mimic::drawMimic ( IGraphics * graphics,
iv::eLanguage drawingLanguage ) const

◆ getChannels()

std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > iv::diamar::Mimic::getChannels ( ) const

◆ getRepeatedChannels()

std::unordered_set< iv::types::channelId > iv::diamar::Mimic::getRepeatedChannels ( ) const
nodiscard

◆ handleEvent()

void iv::diamar::Mimic::handleEvent ( CEventMotion * evtMotion) const

◆ isPointInMimic()

std::optional< std::weak_ptr< iv::mimics::AbstractMimicElement > > iv::diamar::Mimic::isPointInMimic ( double x,
double y ) const

◆ load()

bool iv::diamar::Mimic::load ( const iv::file::xml::File & xml)

◆ panelSelectTypeScreenResolution()

AbstractComponentGUI * iv::diamar::Mimic::panelSelectTypeScreenResolution ( )

◆ prvCreateBackground()

void iv::diamar::Mimic::prvCreateBackground ( std::string_view pathFileBackground)
private

◆ prvCreateGeoScreen()

std::shared_ptr< CGeoCanvas > iv::diamar::Mimic::prvCreateGeoScreen ( ) const
private

◆ prvRemoveElements()

void iv::diamar::Mimic::prvRemoveElements ( iv::mimics::eZDepth depth)
private

◆ removeBackgroundDxf()

void iv::diamar::Mimic::removeBackgroundDxf ( )

◆ removeGraphicsObjects()

void iv::diamar::Mimic::removeGraphicsObjects ( IGraphics * graphics) const

◆ save()

bool iv::diamar::Mimic::save ( const std::shared_ptr< iv::file::xml::File > & xml) const

◆ toPdf()

std::string iv::diamar::Mimic::toPdf ( )

◆ update()

void iv::diamar::Mimic::update ( const Mimic & other,
bool onlyElements = false )

◆ updateControlsBackground()

void iv::diamar::Mimic::updateControlsBackground ( )

◆ updateEnabledLanguages()

void iv::diamar::Mimic::updateEnabledLanguages ( const std::set< iv::eLanguage > & enabledLanguages)

Member Data Documentation

◆ m_backgroundDxf

std::vector<std::shared_ptr<CDxf> > iv::diamar::Mimic::m_backgroundDxf
private

◆ m_backgroundResources

std::vector<iv::ui::resources::ImageResource> iv::diamar::Mimic::m_backgroundResources
private

◆ m_description

std::string iv::diamar::Mimic::m_description

◆ m_geoScreen

std::shared_ptr<CGeoCanvas> iv::diamar::Mimic::m_geoScreen
mutableprivate

◆ m_hiddenInStations

std::set<iv::types::stationId> iv::diamar::Mimic::m_hiddenInStations

◆ m_id

iv::types::mimicId iv::diamar::Mimic::m_id

◆ m_mimicAspectRatio

iv::model::diamar::eMimicAspectRatio iv::diamar::Mimic::m_mimicAspectRatio

◆ m_names

iv::model::LocalizedText iv::diamar::Mimic::m_names

◆ m_pathBackground

std::string iv::diamar::Mimic::m_pathBackground

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