KiCad PCB EDA Suite
Loading...
Searching...
No Matches
IMPORTED_ARC Class Reference

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_ARC:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_ARC (const VECTOR2D &aCenter, const VECTOR2D &aStart, const EDA_ANGLE &aAngle, const IMPORTED_STROKE &aStroke)
 
void ImportTo (GRAPHICS_IMPORTER &aImporter) const override
 
virtual std::unique_ptr< IMPORTED_SHAPEclone () const override
 
void Transform (const MATRIX3x3D &aTransform, const VECTOR2D &aTranslation) override
 
BOX2D GetBoundingBox () const override
 
void SetParentShapeIndex (int aIndex)
 
int GetParentShapeIndex () const
 

Protected Attributes

int m_parentShapeIndex = -1
 

Private Attributes

VECTOR2D m_center
 
VECTOR2D m_start
 
EDA_ANGLE m_angle
 
IMPORTED_STROKE m_stroke
 

Detailed Description

Definition at line 144 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_ARC()

IMPORTED_ARC::IMPORTED_ARC ( const VECTOR2D aCenter,
const VECTOR2D aStart,
const EDA_ANGLE aAngle,
const IMPORTED_STROKE aStroke 
)
inline

Definition at line 147 of file graphics_importer_buffer.h.

Member Function Documentation

◆ clone()

virtual std::unique_ptr< IMPORTED_SHAPE > IMPORTED_ARC::clone ( ) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 159 of file graphics_importer_buffer.h.

◆ GetBoundingBox()

BOX2D IMPORTED_ARC::GetBoundingBox ( ) const
inlineoverridevirtual

◆ GetParentShapeIndex()

int IMPORTED_SHAPE::GetParentShapeIndex ( ) const
inlineinherited

◆ ImportTo()

void IMPORTED_ARC::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 154 of file graphics_importer_buffer.h.

References GRAPHICS_IMPORTER::AddArc(), m_angle, m_center, m_start, and m_stroke.

◆ SetParentShapeIndex()

void IMPORTED_SHAPE::SetParentShapeIndex ( int  aIndex)
inlineinherited

Definition at line 47 of file graphics_importer_buffer.h.

References IMPORTED_SHAPE::m_parentShapeIndex.

◆ Transform()

void IMPORTED_ARC::Transform ( const MATRIX3x3D aTransform,
const VECTOR2D aTranslation 
)
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 164 of file graphics_importer_buffer.h.

References m_center, and m_start.

Member Data Documentation

◆ m_angle

EDA_ANGLE IMPORTED_ARC::m_angle
private

Definition at line 193 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), and ImportTo().

◆ m_center

VECTOR2D IMPORTED_ARC::m_center
private

Definition at line 191 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), ImportTo(), and Transform().

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

◆ m_start

VECTOR2D IMPORTED_ARC::m_start
private

Definition at line 192 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), ImportTo(), and Transform().

◆ m_stroke

IMPORTED_STROKE IMPORTED_ARC::m_stroke
private

Definition at line 194 of file graphics_importer_buffer.h.

Referenced by GetBoundingBox(), and ImportTo().


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