KiCad PCB EDA Suite
IMPORTED_POLYGON Class Reference

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_POLYGON:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_POLYGON (const std::vector< VECTOR2D > &aVertices, double aWidth)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 

Private Attributes

const std::vector< VECTOR2Dm_vertices
 
double m_width
 

Detailed Description

Definition at line 102 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

IMPORTED_POLYGON::IMPORTED_POLYGON ( const std::vector< VECTOR2D > &  aVertices,
double  aWidth 
)
inline

Definition at line 105 of file graphics_importer_buffer.h.

106  : m_vertices( aVertices ), m_width( aWidth )
107  {
108  }
const std::vector< VECTOR2D > m_vertices

Member Function Documentation

void IMPORTED_POLYGON::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 110 of file graphics_importer_buffer.h.

References GRAPHICS_IMPORTER::AddPolygon().

111  {
112  aImporter.AddPolygon( m_vertices, m_width );
113  }
virtual void AddPolygon(const std::vector< VECTOR2D > &aVertices, double aWidth)=0
const std::vector< VECTOR2D > m_vertices

Member Data Documentation

const std::vector< VECTOR2D > IMPORTED_POLYGON::m_vertices
private

Definition at line 116 of file graphics_importer_buffer.h.

double IMPORTED_POLYGON::m_width
private

Definition at line 117 of file graphics_importer_buffer.h.


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