Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::mimics::support::Line Class Reference

#include <Line.hpp>

Collaboration diagram for iv::mimics::support::Line:
[legend]

Classes

struct  DefaultValues
 
struct  Keys
 
struct  Sections
 

Public Member Functions

 Line ()
 
 Line (iv::math::geometry::Point2d start, iv::math::geometry::Point2d end)
 
 Line (const Line &other)
 
 ~Line ()=default
 
bool load (const iv::file::xml::node &nodeLine)
 
bool save (iv::file::xml::node &nodeLine) const
 
void draw (IGraphics *graphics, std::optional< iv::types::color > colorState) const
 
void move (double dx, double dy)
 

Public Attributes

iv::types::color m_color
 
iv::types::width m_lineWidth
 
iv::math::geometry::Point2d m_start
 
iv::math::geometry::Point2d m_end
 
double length
 

Constructor & Destructor Documentation

◆ Line() [1/3]

iv::mimics::support::Line::Line ( )

◆ Line() [2/3]

iv::mimics::support::Line::Line ( iv::math::geometry::Point2d start,
iv::math::geometry::Point2d end )

◆ Line() [3/3]

iv::mimics::support::Line::Line ( const Line & other)

◆ ~Line()

iv::mimics::support::Line::~Line ( )
default

Member Function Documentation

◆ draw()

void iv::mimics::support::Line::draw ( IGraphics * graphics,
std::optional< iv::types::color > colorState ) const

◆ load()

bool iv::mimics::support::Line::load ( const iv::file::xml::node & nodeLine)

◆ move()

void iv::mimics::support::Line::move ( double dx,
double dy )

◆ save()

bool iv::mimics::support::Line::save ( iv::file::xml::node & nodeLine) const

Member Data Documentation

◆ length

double iv::mimics::support::Line::length

◆ m_color

iv::types::color iv::mimics::support::Line::m_color

◆ m_end

iv::math::geometry::Point2d iv::mimics::support::Line::m_end

◆ m_lineWidth

iv::types::width iv::mimics::support::Line::m_lineWidth

◆ m_start

iv::math::geometry::Point2d iv::mimics::support::Line::m_start

The documentation for this class was generated from the following files: