KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor)
 
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
 
double m_radius
 
IMPORTED_STROKE m_stroke
 
bool m_filled
 
COLOR4D m_fillColor
 

Detailed Description

Definition at line 96 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_CIRCLE()

IMPORTED_CIRCLE::IMPORTED_CIRCLE ( const VECTOR2D aCenter,
double  aRadius,
const IMPORTED_STROKE aStroke,
bool  aFilled,
const COLOR4D aFillColor 
)
inline

Definition at line 99 of file graphics_importer_buffer.h.

Member Function Documentation

◆ clone()

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

Implements IMPORTED_SHAPE.

Definition at line 111 of file graphics_importer_buffer.h.

◆ GetBoundingBox()

BOX2D IMPORTED_CIRCLE::GetBoundingBox ( ) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 127 of file graphics_importer_buffer.h.

References m_center, m_radius, and BOX2< Vec >::Merge().

◆ GetParentShapeIndex()

int IMPORTED_SHAPE::GetParentShapeIndex ( ) const
inlineinherited

◆ ImportTo()

void IMPORTED_CIRCLE::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

◆ 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_CIRCLE::Transform ( const MATRIX3x3D aTransform,
const VECTOR2D aTranslation 
)
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 116 of file graphics_importer_buffer.h.

References VECTOR2< T >::EuclideanNorm(), m_center, and m_radius.

Member Data Documentation

◆ m_center

VECTOR2D IMPORTED_CIRCLE::m_center
private

Definition at line 136 of file graphics_importer_buffer.h.

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

◆ m_fillColor

COLOR4D IMPORTED_CIRCLE::m_fillColor
private

Definition at line 140 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_filled

bool IMPORTED_CIRCLE::m_filled
private

Definition at line 139 of file graphics_importer_buffer.h.

Referenced by ImportTo().

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

◆ m_radius

double IMPORTED_CIRCLE::m_radius
private

Definition at line 137 of file graphics_importer_buffer.h.

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

◆ m_stroke

IMPORTED_STROKE IMPORTED_CIRCLE::m_stroke
private

Definition at line 138 of file graphics_importer_buffer.h.

Referenced by ImportTo().


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