Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Propeller.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_INDICATORS_PROPELLER_HPP_
2#define IV_SRC_MIMICS_INDICATORS_PROPELLER_HPP_
3
6
8{
9
10class Propeller final : public iv::mimics::Digital
11{
12public:
13 Propeller();
14 ~Propeller() override = default;
15
16 bool load(const iv::file::xml::node &nodeControlMimic) override;
17 bool save(iv::file::xml::node &nodeControlMimic) const override;
18
19 // Controller
20 [[nodiscard]] std::shared_ptr<iv::mimics::AbstractMimicElement> clone() const override;
21
22 // View
23 void drawSpecific(IGraphics *graphics, std::optional<iv::types::color> colorWorkingState,
24 std::optional<iv::types::color> colorControlState, iv::eLanguage drawingLanguage) override;
25
26 // UI
28
29private:
30 Propeller(const Propeller &other);
31
32 // Draw
33 std::unique_ptr<CRectangleGraphics> m_rectangleOpt {nullptr};
34
35 struct Sections
36 {
37 static constexpr std::string_view propellerIndicator {"PropellerIndicator"};
38 };
40 {
41 struct Colors
42 {
44 };
45 };
46};
47
48}// namespace iv::mimics::elements
49
50#endif//IV_SRC_MIMICS_INDICATORS_PROPELLER_HPP_
Definition AbstractComponentGUI.hpp:30
Definition IGraphics.hpp:20
Definition xmlFile.hpp:15
Definition Digital.hpp:15
Definition Propeller.hpp:11
std::shared_ptr< iv::mimics::AbstractMimicElement > clone() const override
Definition Propeller.cpp:36
std::unique_ptr< CRectangleGraphics > m_rectangleOpt
Definition Propeller.hpp:33
bool load(const iv::file::xml::node &nodeControlMimic) override
Definition Propeller.cpp:22
AbstractComponentGUI * panelEditControl() override
UI methods ///.
Definition Propeller.cpp:58
Propeller()
Definition Propeller.cpp:14
bool save(iv::file::xml::node &nodeControlMimic) const override
Definition Propeller.cpp:27
~Propeller() override=default
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.
Definition Propeller.cpp:41
constexpr iv::types::color White
Definition color.hpp:222
Definition enums.hpp:95
uint32_t color
Definition types.hpp:12
eLanguage
Definition enums.hpp:37
static constexpr iv::types::color color
Definition Propeller.hpp:43
static constexpr std::string_view propellerIndicator
Definition Propeller.hpp:37