KiCad PCB EDA Suite
IMPORTED_CIRCLE Class Reference

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_CIRCLE:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_CIRCLE (const VECTOR2D &aCenter, double aRadius, double aWidth)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 

Private Attributes

const VECTOR2D m_center
 
double m_radius
 
double m_width
 

Detailed Description

Definition at line 61 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_CIRCLE()

IMPORTED_CIRCLE::IMPORTED_CIRCLE ( const VECTOR2D aCenter,
double  aRadius,
double  aWidth 
)
inline

Definition at line 64 of file graphics_importer_buffer.h.

65  : m_center( aCenter ), m_radius( aRadius ), m_width( aWidth )
66  {
67  }

Member Function Documentation

◆ ImportTo()

void IMPORTED_CIRCLE::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 69 of file graphics_importer_buffer.h.

70  {
71  aImporter.AddCircle( m_center, m_radius, m_width );
72  }
virtual void AddCircle(const VECTOR2D &aCenter, double aRadius, double aWidth)=0
Create an object representing a circle.

References GRAPHICS_IMPORTER::AddCircle(), m_center, m_radius, and m_width.

Member Data Documentation

◆ m_center

const VECTOR2D IMPORTED_CIRCLE::m_center
private

Definition at line 75 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_radius

double IMPORTED_CIRCLE::m_radius
private

Definition at line 76 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_width

double IMPORTED_CIRCLE::m_width
private

Definition at line 77 of file graphics_importer_buffer.h.

Referenced by ImportTo().


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