Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Compressor.hpp>
Classes | |
struct | DefaultValues |
struct | Keys |
struct | Sections |
Public Member Functions | |
Compressor () | |
~Compressor () 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 |
void | executeCommand (const std::string &strAction) const override |
Run actions ///. | |
std::optional< iv::types::color > | getColorWorkingState () const override |
Retrieves the color representing the current working state of the element. | |
std::optional< iv::types::color > | getColorControlState () const override |
Retrieves the color representing the current control state of the element. | |
std::optional< std::string > | getStringWorkingState () const override |
std::optional< std::string > | getStringControlState () const override |
std::optional< iv::mimics::eAlarmState > | getAlarmState () const override |
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 |
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 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. | |
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 | |
Compressor (iv::mimics::eMimicElementType type) | |
Compressor (const Compressor &other) | |
std::vector< iv::math::geometry::Point2d > | calculateLimits (IGraphics *graphics, iv::eLanguage drawingLanguage) |
virtual bool | checkIntegrity () const |
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::unique_ptr< CCircleGraphics > | m_circleCompressor {nullptr} |
bool | m_isControl |
iv::mimics::elements::eCompressorDesign | m_compressorDesign |
iv::mimics::support::Maintenance | m_maintenance |
bool | m_redrawFlag {false} |
Private Member Functions | |
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 | loadAutomaticSemiAuto (const iv::file::xml::node &nodeAutomatic) |
bool | saveAutomaticSemiAuto (iv::file::xml::node &nodeAutomatic) const |
void | getChannelsAutomaticSemiAuto (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsAutomaticSemiAuto (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
eAutomaticState | getState () const |
std::string_view | getIconState () const |
AbstractComponentGUI * | panelEditAutomaticManual () |
void | addTraitOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu, const std::optional< std::function< bool(CDialog *)> > &autoCommandEvaluation, const std::optional< std::function< bool(CDialog *)> > &semiAutoCommandEvaluation) const |
bool | loadCommandsStartStop (const iv::file::xml::node &nodeStartStop) |
bool | saveCommandsStartStop (iv::file::xml::node &nodeStartStop) const |
void | getChannelsCommandsStartStop (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsCommandsStartStop (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
iv::mimics::Channel | getCommandStart () const |
iv::mimics::Channel | getCommandStop () const |
AbstractComponentGUI * | panelEditCommands () |
void | addTraitOptionsMenu (const std::shared_ptr< iv::mimics::MimicControlMenu > &menu, const std::optional< std::function< bool(CDialog *)> > &startStopCommandEvaluation) 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 | loadFeedbackRunningStopped (const iv::file::xml::node &nodeStartStop) |
bool | saveFeedbackRunningStopped (iv::file::xml::node &nodeStartStop) const |
void | getChannelsFeedbackRunningStopped (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsFeedbackRunningStopped (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
eRunningStoppedState | getState () const |
bool | hasLinkedChannels () const |
AbstractComponentGUI * | panelEditFeedback () |
bool | loadOrderStartStop (const iv::file::xml::node &nodeStartStop) |
bool | saveOrderStartStop (iv::file::xml::node &nodeStartStop) const |
void | getChannelsOrderStartStop (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsOrderStartStop (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
AbstractComponentGUI * | panelEditOrder () |
bool | loadRemoteLocal (const iv::file::xml::node &nodeRemoteLocal) |
bool | saveRemoteLocal (iv::file::xml::node &nodeRemoteLocal) const |
void | getChannelsRemoteLocal (const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const |
void | mapChannelsRemoteLocal (const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction) |
eRemoteState | getState () const |
std::string_view | getIconState () const |
AbstractComponentGUI * | panelEditRemoteLocal () |
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) |
iv::mimics::elements::Compressor::Compressor | ( | ) |
|
overridedefault |
|
explicitprotected |
|
protected |
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
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.
|
staticprivateinherited |
|
nodiscardprotectedvirtualinherited |
Reimplemented in iv::mimics::auxiliary::Image, iv::mimics::auxiliary::Line, iv::mimics::auxiliary::Link, iv::mimics::auxiliary::Polyline, iv::mimics::auxiliary::Text, iv::mimics::elementsAutomated::DamperAutomated, iv::mimics::elementsAutomated::ValveAutomated, iv::mimics::elementsPms::BreakerPms, iv::mimics::elementsPms::GeneratorPms, and iv::mimics::elementsPms::OperationModesPms.
|
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 |
|
inherited |
|
inherited |
|
nodiscardoverridevirtual |
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 from iv::mimics::AbstractMimicElement.
|
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 |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardoverridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
nodiscardoverridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
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.
|
nodiscardinherited |
|
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.
|
inherited |
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
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 |
|
inherited |
|
inherited |
|
virtualinherited |
MOVEMENTS.
Reimplemented in iv::mimics::auxiliary::Line, and iv::mimics::auxiliary::Polyline.
|
nodiscardprotectedinherited |
|
inherited |
|
inherited |
|
overridevirtual |
UI methods ///.
PANELS
Crea el panel de edición del control.
Implements iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
nodiscardprotectedinherited |
|
inherited |
|
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 |
|
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.
|
overridevirtual |
Reimplemented from iv::mimics::AbstractMimicElement.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
|
inherited |
|
inherited |
|
protected |
|
inherited |
|
inherited |
Model
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
privateinherited |
|
protected |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
|
inherited |
|
protected |
|
inherited |
|
inherited |
|
privateinherited |
|
protectedinherited |
Controller
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |