KiCad PCB EDA Suite
IMPORTED_LINE Class Reference

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_LINE:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_LINE (const VECTOR2D &aStart, const VECTOR2D &aEnd, double aWidth)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 

Private Attributes

const VECTOR2D m_start
 
const VECTOR2D m_end
 
double m_width
 

Detailed Description

Definition at line 41 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_LINE()

IMPORTED_LINE::IMPORTED_LINE ( const VECTOR2D aStart,
const VECTOR2D aEnd,
double  aWidth 
)
inline

Definition at line 44 of file graphics_importer_buffer.h.

45  : m_start( aStart ), m_end( aEnd ), m_width( aWidth )
46  {
47  }
const VECTOR2D m_start

Member Function Documentation

◆ ImportTo()

void IMPORTED_LINE::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 49 of file graphics_importer_buffer.h.

50  {
51  aImporter.AddLine( m_start, m_end, m_width );
52  }
const VECTOR2D m_start
virtual void AddLine(const VECTOR2D &aOrigin, const VECTOR2D &aEnd, double aWidth)=0
Create an object representing a line segment.

References GRAPHICS_IMPORTER::AddLine(), m_end, m_start, and m_width.

Member Data Documentation

◆ m_end

const VECTOR2D IMPORTED_LINE::m_end
private

Definition at line 56 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_start

const VECTOR2D IMPORTED_LINE::m_start
private

Definition at line 55 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_width

double IMPORTED_LINE::m_width
private

Definition at line 57 of file graphics_importer_buffer.h.

Referenced by ImportTo().


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