Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Square.hpp>
Public Member Functions | |
Square () | |
Square (const std::vector< iv::math::geometry::Point2d > &points) | |
~Square () override=default | |
bool | load (const iv::file::xml::node &nodeControlMimic) override |
std::shared_ptr< iv::mimics::AbstractMimicElement > | clone () const override |
AbstractComponentGUI * | panelEditControl () override |
UI methods ///. | |
AbstractComponentGUI * | panelSpecificEditSize () |
void | postProcess () override |
Post process the Square. | |
bool | save (iv::file::xml::node &nodeControlMimic) const override |
void | getChannels (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const override |
Añade los canales que el MimicElement tiene enlazado. | |
void | mapChannels (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) override |
Processed gets ///. | |
void | executeCommand (const std::string &strAction) const override |
Run actions ///. | |
bool | checkIntegrity () const override |
iv::math::geometry::Point2d | calculateCenter () const |
iv::types::height | calculateHeight () const |
iv::types::width | calculateWidth () const |
void | drawSpecific (IGraphics *graphics, std::optional< iv::types::color > colorWorkingState, std::optional< iv::types::color > colorControlState, iv::eLanguage drawingLanguage) override |
Draws the specific abstract element shape. | |
void | move (double dx, double dy) override |
MOVEMENTS. | |
const iv::mimics::TitleSettings & | getTitleSettings () const |
std::weak_ptr< iv::mimics::OnlineVariables > | getOnlineVariables () const |
virtual void | updateEnabledLanguages (const std::set< iv::eLanguage > &enabledLanguages) |
virtual void | addOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu) |
bool | isPointInMimic (iv::types::coord x, iv::types::coord y) const |
virtual std::optional< iv::types::color > | getColorWorkingState () const |
Retrieves the color representing the current working state of the element. | |
virtual std::optional< iv::types::color > | getColorControlState () const |
Retrieves the color representing the current control state of the element. | |
virtual std::optional< std::string > | getStringWorkingState () const |
virtual std::optional< std::string > | getStringControlState () const |
virtual std::optional< iv::mimics::eAlarmState > | getAlarmState () const |
virtual iv::math::geometry::Point2d | getAlarmIconPosition (const iv::math::geometry::Area &elementSize) const |
virtual bool | canShowCircularMenu () const |
Behaviours gets ///. | |
virtual bool | hasAlternativeAction () const |
virtual void | runCommandControlWithoutMenu () |
Ejecuta un comando accionado sin el menu de opciones (caso de un botón) | |
virtual void | runAlternativeAction (CDialog *dlgFatherRef) |
Ejecuta código específico del control. | |
virtual void | runEvaluation () |
Ejecuta la evaluación del control. | |
void | draw (IGraphics *graphics, iv::eLanguage drawingLanguage, const std::optional< std::unordered_set< iv::types::channelId > > &channelsRepeatedOpt=std::nullopt, const std::optional< std::set< std::shared_ptr< AbstractMimicElement > > > &otherMimicElements=std::nullopt) |
DRAWS. | |
void | setRedrawFlag (bool reDrawFlag=true) |
void | removeGraphicsObjects (IGraphics *graphics) |
Elimina el elemento gráfico. | |
bool | rotate (double angle) |
void | handleEvent (CEventMotion *evtMotion) |
Public Attributes | |
eZDepth | m_depth |
iv::mimics::eMimicElementType | m_mimicElementType |
iv::mimics::Location | m_location |
iv::types::width | m_width |
iv::types::height | m_height |
iv::mimics::TitleSettings | m_titleSettings |
iv::mimics::Background | m_background |
std::shared_ptr< OnlineVariables > | m_onlineVariables |
std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > | m_addedAlarms |
Protected Member Functions | |
std::vector< iv::math::geometry::Point2d > | calculateLimits (IGraphics *graphics, iv::eLanguage drawingLanguage) |
virtual bool | hasRepeatedChannels (const std::unordered_set< iv::types::channelId > &channelsRepeatedOpt) const |
Checks if the current mimic element contains any repeated channels. | |
virtual bool | isRepeatedMimicElement (const std::set< std::shared_ptr< AbstractMimicElement > > &otherMimicsElements) const |
Determines whether the current mimic element shares significant similarities with others. | |
AbstractComponentGUI * | buttonEditTitle () |
AbstractComponentGUI * | panelEditSize () |
AbstractComponentGUI * | panelEditOnlineVariables () const |
AbstractComponentGUI * | panelEditAddedAlarms () const |
Protected Attributes | |
std::vector< std::shared_ptr< iv::mimics::support::Line > > | m_lines |
iv::logics::LogicExpressionMap< iv::types::color > | m_colorLogics |
bool | m_redrawFlag {false} |
Private Member Functions | |
Square (const Square &other) | |
Square element class.
iv::mimics::auxiliary::Square::Square | ( | ) |
|
explicit |
|
overridedefault |
|
private |
|
virtualinherited |
Reimplemented in iv::mimics::auxiliary::Image, iv::mimics::auxiliary::Text, iv::mimics::elements::Breaker, iv::mimics::elements::Command, iv::mimics::elements::Compressor, iv::mimics::elements::Damper, iv::mimics::elements::DynamicText, iv::mimics::elements::Fan, iv::mimics::elements::Generator, iv::mimics::elements::Pump, iv::mimics::elements::Tank, iv::mimics::elements::Text, iv::mimics::elements::Valve, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, and iv::mimics::elementsPms::GeneratorPms.
|
protectedinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
protectedinherited |
|
nodiscardinherited |
|
nodiscardvirtualinherited |
Behaviours gets ///.
Reimplemented in iv::mimics::auxiliary::Link, iv::mimics::elements::PmsPriorities, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, iv::mimics::elementsPms::GeneratorPms, and iv::mimics::elementsPms::OperationModesPms.
|
nodiscardoverridevirtualinherited |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardoverridevirtual |
Reimplemented from iv::mimics::auxiliary::Polyline.
|
inherited |
DRAWS.
Dibuja el elemento en pantalla, con título, background, alarma, toda la parte común de todos los elementos.
graphics | |
drawingLanguage | Language to draw the element |
channelsRepeatedOpt |
|
overridevirtualinherited |
Draws the specific abstract element shape.
graphics | |
colorWorkingState | |
colorControlState | |
drawingLanguage |
Implements iv::mimics::AbstractMimicElement.
|
overridevirtualinherited |
Run actions ///.
Ejecuta un comando accionado desde el menu de opciones
strAction |
Implements iv::mimics::AbstractMimicElement.
|
nodiscardvirtualinherited |
Reimplemented in iv::mimics::elementsPms::GeneratorPms.
|
nodiscardvirtualinherited |
Reimplemented in iv::mimics::Digital, iv::mimics::elements::Breaker, iv::mimics::elements::Compressor, iv::mimics::elements::Damper, iv::mimics::elements::Dial, iv::mimics::elements::Digital, iv::mimics::elements::Display, iv::mimics::elements::Fan, iv::mimics::elements::Generator, iv::mimics::elements::LevelBar, iv::mimics::elements::Pump, iv::mimics::elements::Tank, iv::mimics::elements::Text, iv::mimics::elements::Valve, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, and iv::mimics::elementsPms::GeneratorPms.
|
overridevirtualinherited |
Añade los canales que el MimicElement tiene enlazado.
[out] | channelsInControl | Map of channels in mimic element |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardvirtualinherited |
Retrieves the color representing the current control state of the element.
The control state describes how the element is being controlled, with examples including Remote/Local or Online/Offline. The returned color, if any, is intended to visually convey the control mode.
Reimplemented in iv::mimics::elements::Compressor, iv::mimics::elements::Damper, iv::mimics::elements::Fan, iv::mimics::elements::Generator, and iv::mimics::elements::Pump.
|
nodiscardvirtualinherited |
Retrieves the color representing the current working state of the element.
The working state reflects the functional status of the element, which can represent states such as Running/Stopped, Open/Closed, or Undefined. The returned color, if any, is intended to visually indicate this status.
Reimplemented in iv::mimics::Digital, iv::mimics::elements::Breaker, iv::mimics::elements::Compressor, iv::mimics::elements::Damper, iv::mimics::elements::Dial, iv::mimics::elements::Digital, iv::mimics::elements::Display, iv::mimics::elements::Fan, iv::mimics::elements::Generator, iv::mimics::elements::LevelBar, iv::mimics::elements::Pump, iv::mimics::elements::Shaft, iv::mimics::elements::Tank, iv::mimics::elements::Valve, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, and iv::mimics::elementsPms::BreakerPms.
|
nodiscardinherited |
|
nodiscardvirtualinherited |
|
nodiscardvirtualinherited |
Reimplemented in iv::mimics::Digital, iv::mimics::elements::Breaker, iv::mimics::elements::Compressor, iv::mimics::elements::Damper, iv::mimics::elements::Dial, iv::mimics::elements::Digital, iv::mimics::elements::Display, iv::mimics::elements::Fan, iv::mimics::elements::Generator, iv::mimics::elements::LevelBar, iv::mimics::elements::Pump, iv::mimics::elements::Tank, iv::mimics::elements::Valve, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, and iv::mimics::elementsPms::GeneratorPms.
|
inlinenodiscardinherited |
|
inherited |
TODO: No se usa, y junto a este, el executeCommand
|
nodiscardvirtualinherited |
Reimplemented in iv::mimics::auxiliary::Link, iv::mimics::elements::PmsPriorities, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, iv::mimics::elementsPms::GeneratorPms, and iv::mimics::elementsPms::OperationModesPms.
|
protectedvirtualinherited |
Checks if the current mimic element contains any repeated channels.
channelsRepeatedOpt | A set of channel IDs that are considered as repeated. |
Reimplemented in iv::mimics::elements::DynamicText, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, and iv::mimics::elementsPms::GeneratorPms.
|
nodiscardinherited |
|
protectedvirtualinherited |
Determines whether the current mimic element shares significant similarities with others.
otherMimicsElements | A set of other mimics elements to be compared against. |
Reimplemented in iv::mimics::elements::DynamicText, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, and iv::mimics::elementsPms::GeneratorPms.
|
overridevirtual |
Reimplemented from iv::mimics::auxiliary::Polyline.
|
overridevirtualinherited |
Processed gets ///.
Applies a function over each channel in the mimic element
mapFunction | Function to apply over each channel |
Reimplemented from iv::mimics::AbstractMimicElement.
|
overridevirtualinherited |
MOVEMENTS.
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardprotectedinherited |
|
overridevirtual |
UI methods ///.
PANELS
Crea el panel de edición del control.
Reimplemented from iv::mimics::auxiliary::Polyline.
|
nodiscardprotectedinherited |
|
protectedinherited |
AbstractComponentGUI * iv::mimics::auxiliary::Square::panelSpecificEditSize | ( | ) |
|
overridevirtual |
Post process the Square.
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
Elimina el elemento gráfico.
graphics |
|
inherited |
|
virtualinherited |
Ejecuta código específico del control.
Reimplemented in iv::mimics::auxiliary::Link, iv::mimics::elements::PmsPriorities, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, iv::mimics::elementsPms::GeneratorPms, and iv::mimics::elementsPms::OperationModesPms.
|
virtualinherited |
Ejecuta un comando accionado sin el menu de opciones (caso de un botón)
|
virtualinherited |
Ejecuta la evaluación del control.
|
overridevirtualinherited |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
virtualinherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Model
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Controller
|
inherited |
|
inherited |