Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <DamperAutomated.hpp>
Classes | |
struct | DefaultValues |
struct | Keys |
struct | Sections |
Public Member Functions | |
DamperAutomated () | |
~DamperAutomated () override=default | |
bool | load (const iv::file::xml::node &nodeControlMimic) override |
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 ///. | |
std::shared_ptr< iv::mimics::AbstractMimicElement > | clone () const override |
std::optional< iv::types::color > | getColorWorkingState () const override |
Retrieves the color representing the current working state of the element. | |
std::optional< std::string > | getStringWorkingState () const override |
std::optional< iv::mimics::eAlarmState > | getAlarmState () const override |
void | executeCommand (const std::string &strAction) const override |
Run actions ///. | |
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. | |
AbstractComponentGUI * | panelEditControl () override |
UI methods ///. | |
void | addOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu) override |
bool | canShowCircularMenu () const override |
Behaviours gets ///. | |
bool | hasAlternativeAction () const override |
void | runAlternativeAction (CDialog *dlgFatherRef) override |
Ejecuta código específico del control. | |
const iv::mimics::TitleSettings & | getTitleSettings () const |
std::weak_ptr< iv::mimics::OnlineVariables > | getOnlineVariables () const |
virtual void | updateEnabledLanguages (const std::set< iv::eLanguage > &enabledLanguages) |
bool | isPointInMimic (iv::types::coord x, iv::types::coord y) const |
virtual std::optional< iv::types::color > | getColorControlState () const |
Retrieves the color representing the current control state of the element. | |
virtual std::optional< std::string > | getStringControlState () const |
virtual iv::math::geometry::Point2d | getAlarmIconPosition (const iv::math::geometry::Area &elementSize) const |
virtual void | runCommandControlWithoutMenu () |
Ejecuta un comando accionado sin el menu de opciones (caso de un botón) | |
virtual void | runEvaluation () |
Ejecuta la evaluación del control. | |
virtual void | postProcess () |
PROCESSES. | |
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. | |
virtual void | move (double dx, double dy) |
MOVEMENTS. | |
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 | |
DamperAutomated (const DamperAutomated &other) | |
bool | checkIntegrity () const override |
bool | hasRepeatedChannels (const std::unordered_set< iv::types::channelId > &channelsRepeatedOpt) const override |
Checks if the current mimic element contains any repeated channels. | |
bool | isRepeatedMimicElement (const std::set< std::shared_ptr< AbstractMimicElement > > &otherMimicsElements) const override |
Determines whether the current mimic element shares significant similarities with others. | |
bool | removePreviousOnlineVariables (const std::optional< iv::types::control::damper::damperId > &previousDamperId) const |
bool | addOnlineVariables (const std::optional< iv::types::control::damper::damperId > &newDamperId) const |
std::vector< iv::math::geometry::Point2d > | calculateLimits (IGraphics *graphics, iv::eLanguage drawingLanguage) |
AbstractComponentGUI * | buttonEditTitle () |
AbstractComponentGUI * | panelEditSize () |
AbstractComponentGUI * | panelEditOnlineVariables () const |
AbstractComponentGUI * | panelEditAddedAlarms () const |
Protected Attributes | |
std::unique_ptr< iv::shapes::DamperSymbol > | m_damperSymbol {nullptr} |
iv::mimics::support::Maintenance | m_maintenance |
std::weak_ptr< iv::model::control::Damper > | m_damper |
bool | m_redrawFlag {false} |
Private Member Functions | |
void | updateDamperTraits () |
Update the damper traits channels with the current damper channels. | |
std::unique_ptr< CDrawText > | prvCreateTextTitle (iv::eLanguage language) const |
void | applyPosition (IGraphics *graphics) const |
void | applyRotation (IGraphics *graphics) const |
std::optional< iv::mimics::eAlarmState > | getAddedAlarmsMimicAlarmState () const |
bool | loadFeedbackOpCl (const iv::file::xml::node &nodeStartStop) |
bool | saveFeedbackOpCl (iv::file::xml::node &nodeStartStop) const |
void | getChannelsFeedbackOpCl (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsFeedbackOpCl (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
eOpClState | getState () const |
bool | hasLinkedChannels () const |
AbstractComponentGUI * | panelEditFeedbacks () |
bool | loadCommandsOpCl (const iv::file::xml::node &nodeStartStop) |
bool | saveCommandsOpCl (iv::file::xml::node &nodeStartStop) const |
void | getChannelsCommandsOpCl (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsCommandsOpCl (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
AbstractComponentGUI * | panelEditCommands () |
void | addTraitOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu, const std::optional< std::function< bool(CDialog *)> > &commandEvaluation, bool swapColors=false) const |
bool | loadControlLock (const iv::file::xml::node &nodeControlLock) |
bool | saveControlLock (iv::file::xml::node &nodeControlLock) const |
void | getChannelsControlLock (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsControlLock (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
AbstractComponentGUI * | panelEditControlLock () |
bool | loadOrderOpCl (const iv::file::xml::node &nodeStartStop) |
bool | saveOrderOpCl (iv::file::xml::node &nodeStartStop) const |
void | getChannelsOrderOpCl (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsOrderOpCl (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
AbstractComponentGUI * | panelEditOrder () |
bool | loadTripReset (const iv::file::xml::node &nodeTripReset) |
bool | saveTripReset (iv::file::xml::node &nodeTripReset) const |
void | getChannelsTripReset (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsTripReset (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
bool | isTrip () const |
AbstractComponentGUI * | panelEditTrip () |
void | addTraitOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu, const std::optional< std::function< bool(CDialog *)> > &resetCommandEvaluation) const |
Static Private Member Functions | |
static bool | checkHasRepeated (const std::unordered_set< iv::types::channelId > &repeatedChannels, const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &elementChannels) |
Private Attributes | |
std::unique_ptr< CDrawText > | m_textTitleOpt |
std::shared_ptr< std::vector< iv::math::geometry::Point2d > > | m_polylinesLimits |
uint32_t | m_idBlockBackground |
uint32_t | m_idBlockForegorund |
bool | m_isCreatedForeground {false} |
bool | m_isCreatedBackground {false} |
bool | m_isMarked {false} |
iv::mimics::Channel | m_openFeedback |
iv::mimics::Channel | m_closeFeedback |
iv::mimics::Channel | m_commandOpen |
iv::mimics::Channel | m_commandClose |
bool | m_hasControlLock |
iv::mimics::Channel | m_controlLock |
iv::mimics::Channel | m_openOrder |
iv::mimics::Channel | m_closeOrder |
iv::mimics::Channel | m_tripFeedback |
bool | m_withCommandReset |
iv::mimics::Channel | m_resetCommand |
bool | m_hasResetConfirmation |
iv::mimics::elementsAutomated::DamperAutomated::DamperAutomated | ( | ) |
|
overridedefault |
|
protected |
|
protected |
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
overridevirtual |
Behaviours gets ///.
Reimplemented from iv::mimics::AbstractMimicElement.
|
staticprivateinherited |
|
overrideprotectedvirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardoverridevirtual |
Implements iv::mimics::AbstractMimicElement.
|
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 |
|
overridevirtual |
Draws the specific abstract element shape.
graphics | |
colorWorkingState | |
colorControlState | |
drawingLanguage |
Implements iv::mimics::AbstractMimicElement.
|
overridevirtual |
Run actions ///.
Ejecuta un comando accionado desde el menu de opciones
strAction |
Implements iv::mimics::AbstractMimicElement.
|
nodiscardprivateinherited |
|
nodiscardvirtualinherited |
Reimplemented in iv::mimics::elementsPms::GeneratorPms.
|
nodiscardoverridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
overridevirtual |
Añade los canales que el MimicElement tiene enlazado.
[out] | channelsInControl | Map of channels in mimic element |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
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.
|
nodiscardoverridevirtual |
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 from iv::mimics::AbstractMimicElement.
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardvirtualinherited |
|
nodiscardoverridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inlinenodiscardinherited |
|
inherited |
TODO: No se usa, y junto a este, el executeCommand
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardinherited |
|
overrideprotectedvirtual |
Checks if the current mimic element contains any repeated channels.
channelsRepeatedOpt | A set of channel IDs that are considered as repeated. |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardinherited |
|
overrideprotectedvirtual |
Determines whether the current mimic element shares significant similarities with others.
otherMimicsElements | A set of other mimics elements to be compared against. |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
overridevirtual |
Processed gets ///.
Applies a function over each channel in the mimic element
mapFunction | Function to apply over each channel |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
MOVEMENTS.
Reimplemented in iv::mimics::auxiliary::Line, and iv::mimics::auxiliary::Polyline.
|
nodiscardprotectedinherited |
|
inherited |
|
overridevirtual |
UI methods ///.
PANELS
Crea el panel de edición del control.
Implements iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
nodiscardprotectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
virtualinherited |
PROCESSES.
Procesa ciertos atributos del elemento.
Reimplemented in iv::mimics::auxiliary::Line, and iv::mimics::auxiliary::Square.
|
nodiscardprivateinherited |
|
inherited |
Elimina el elemento gráfico.
graphics |
|
protected |
|
inherited |
|
overridevirtual |
Ejecuta código específico del control.
Reimplemented from iv::mimics::AbstractMimicElement.
|
virtualinherited |
Ejecuta un comando accionado sin el menu de opciones (caso de un botón)
|
virtualinherited |
Ejecuta la evaluación del control.
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
private |
Update the damper traits channels with the current damper channels.
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
|
protected |
|
inherited |
Model
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
|
protected |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
protectedinherited |
Controller
|
inherited |
|
privateinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |