Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelTendencyCurves.hpp
Go to the documentation of this file.
1#ifndef LIBS_DIAMAR_CPANELTENDENCYCURVES_HPP_
2#define LIBS_DIAMAR_CPANELTENDENCYCURVES_HPP_
3
7
8#include <optional>
9
24
26{
28 bool showPoint, double xPoint, double yPoint, CGeoCanvas **geoCanvas,
29 const std::shared_ptr<CTendencyCurve> &curve,
30 std::shared_ptr<std::vector<std::shared_ptr<std::vector<iv::math::geometry::Point2d>>>> plotLines);
32
34 double m_xPoint;
35 double m_yPoint;
36
38 std::shared_ptr<CTendencyCurve> m_curve;
39 std::shared_ptr<std::vector<std::shared_ptr<std::vector<iv::math::geometry::Point2d>>>> m_plotLines;
41};
42
44{
45public:
47 CCursorCurves(const CCursorCurves &) = delete;
49
51
52 void
53 addCurve(bool withAxisX, bool withAxisY, bool withVerticalGrid, bool withHorizontalGrid, uint64_t indCurve,
54 uint64_t indAxisY, const std::shared_ptr<CTendencyCurve> &curve,
55 const std::shared_ptr<std::vector<std::shared_ptr<std::vector<iv::math::geometry::Point2d>>>> &plotLines,
56 bool multipleCurves, uint64_t numCurves) const;
57
58 std::vector<SPrvPointsTendencyCurve *> *m_curves;
59};
60
62{
63public:
64 static constexpr uint16_t MAX_CURVES {5};
65
66 static std::shared_ptr<CCursorCurves> createCursor(const std::vector<std::shared_ptr<CTendencyCurve>> &curves,
67 bool multipleCurves);
68 static void updateCursorTendencyCurve(const std::shared_ptr<CCursorCurves> &cursorCurves,
69 const std::vector<std::shared_ptr<CTendencyCurve>> &curves);
70
71 static AbstractComponentGUI *panelMultipleTendencyCurve(const std::shared_ptr<CCursorCurves> &cursorCurve,
72 std::optional<uint64_t> legendPosition);
73};
74
75#endif /* LIBS_DIAMAR_CPANELTENDENCYCURVES_HPP_ */
Definition AbstractComponentGUI.hpp:30
Definition CPanelTendencyCurves.hpp:44
CCursorCurves & operator=(const CCursorCurves &)=delete
void addCurve(bool withAxisX, bool withAxisY, bool withVerticalGrid, bool withHorizontalGrid, uint64_t indCurve, uint64_t indAxisY, const std::shared_ptr< CTendencyCurve > &curve, const std::shared_ptr< std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point2d > > > > &plotLines, bool multipleCurves, uint64_t numCurves) const
Definition CPanelTendencyCurves.cpp:257
CCursorCurves(const CCursorCurves &)=delete
~CCursorCurves()
Definition CPanelTendencyCurves.cpp:251
CCursorCurves()
Definition CPanelTendencyCurves.cpp:246
std::vector< SPrvPointsTendencyCurve * > * m_curves
Definition CPanelTendencyCurves.hpp:58
Definition CGeoCanvas.hpp:13
Definition CPanelTendencyCurves.hpp:62
static std::shared_ptr< CCursorCurves > createCursor(const std::vector< std::shared_ptr< CTendencyCurve > > &curves, bool multipleCurves)
Definition CPanelTendencyCurves.cpp:291
static AbstractComponentGUI * panelMultipleTendencyCurve(const std::shared_ptr< CCursorCurves > &cursorCurve, std::optional< uint64_t > legendPosition)
Definition CPanelTendencyCurves.cpp:437
static constexpr uint16_t MAX_CURVES
Definition CPanelTendencyCurves.hpp:64
static void updateCursorTendencyCurve(const std::shared_ptr< CCursorCurves > &cursorCurves, const std::vector< std::shared_ptr< CTendencyCurve > > &curves)
Definition CPanelTendencyCurves.cpp:364
double height
Definition types.hpp:14
uint32_t color
Definition types.hpp:12
Definition CPanelTendencyCurves.hpp:26
double m_xPoint
Definition CPanelTendencyCurves.hpp:34
bool m_showPoint
Definition CPanelTendencyCurves.hpp:33
double m_yPoint
Definition CPanelTendencyCurves.hpp:35
~SPrvPointsTendencyCurve()
Definition CPanelTendencyCurves.cpp:240
std::shared_ptr< CTendencyCurve > m_curve
Definition CPanelTendencyCurves.hpp:38
CGeoCanvas * m_geoCanvas
Definition CPanelTendencyCurves.hpp:37
SPrvPointsTendencyCurve(bool showPoint, double xPoint, double yPoint, CGeoCanvas **geoCanvas, const std::shared_ptr< CTendencyCurve > &curve, std::shared_ptr< std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point2d > > > > plotLines)
Definition CPanelTendencyCurves.cpp:227
std::shared_ptr< std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point2d > > > > m_plotLines
Definition CPanelTendencyCurves.hpp:39
TendencyCurveVisualProperties m_properties
Definition CPanelTendencyCurves.hpp:40
Definition CPanelTendencyCurves.hpp:11
uint64_t m_indAxisY
Definition CPanelTendencyCurves.hpp:18
iv::types::height m_textHeight
Definition CPanelTendencyCurves.hpp:16
iv::types::color m_colorRGB
Definition CPanelTendencyCurves.hpp:17
uint64_t m_numCurves
Definition CPanelTendencyCurves.hpp:22
bool m_withHorizontalGrid
Definition CPanelTendencyCurves.hpp:15
bool m_withAxisX
Definition CPanelTendencyCurves.hpp:12
bool m_isPrinting
Definition CPanelTendencyCurves.hpp:21
bool m_withAxisY
Definition CPanelTendencyCurves.hpp:13
uint64_t m_indCurve
Definition CPanelTendencyCurves.hpp:19
bool m_multipleCurves
Definition CPanelTendencyCurves.hpp:20
bool m_withVerticalGrid
Definition CPanelTendencyCurves.hpp:14