1#ifndef IV_SRC_MIMICS_MODEL_SUPPORT_LINE_HPP_
2#define IV_SRC_MIMICS_MODEL_SUPPORT_LINE_HPP_
22 void draw(
IGraphics *graphics, std::optional<iv::types::color> colorState)
const;
24 void move(
double dx,
double dy);
36 static constexpr std::string_view
color {
"Color"};
37 static constexpr std::string_view
lineWidth {
"LineWidth"};
41 static constexpr std::string
string {};
47 static constexpr std::string_view
start {
"Start"};
48 static constexpr std::string_view
end {
"End"};
49 static constexpr std::string_view
attributes {
"Attributes"};
Definition IGraphics.hpp:20
Definition xmlFile.hpp:15
iv::types::width m_lineWidth
Definition Line.hpp:27
Line()
Definition Line.cpp:6
void move(double dx, double dy)
Definition Line.cpp:80
bool save(iv::file::xml::node &nodeLine) const
Definition Line.cpp:54
iv::math::geometry::Point2d m_start
Definition Line.hpp:28
void draw(IGraphics *graphics, std::optional< iv::types::color > colorState) const
Definition Line.cpp:71
iv::types::color m_color
Definition Line.hpp:26
bool load(const iv::file::xml::node &nodeLine)
Definition Line.cpp:31
double length
Definition Line.hpp:30
iv::math::geometry::Point2d m_end
Definition Line.hpp:29
constexpr iv::types::color LineElementDefault
Definition color.hpp:480
double width
Definition types.hpp:23
uint32_t color
Definition types.hpp:12
Definition structs.hpp:16
static constexpr iv::types::width lineWidth
Definition Line.hpp:43
static constexpr iv::types::color color
Definition Line.hpp:42
static constexpr std::string_view color
Definition Line.hpp:36
static constexpr std::string_view lineWidth
Definition Line.hpp:37
static constexpr std::string_view attributes
Definition Line.hpp:49
static constexpr std::string_view end
Definition Line.hpp:48
static constexpr std::string_view start
Definition Line.hpp:47