KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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, 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
 
std::vector< VECTOR2D > & Vertices ()
 
bool IsFilled () const
 
const COLOR4DGetFillColor () const
 
const IMPORTED_STROKEGetStroke () const
 
void SetParentShapeIndex (int aIndex)
 
int GetParentShapeIndex () const
 

Protected Attributes

int m_parentShapeIndex = -1
 

Private Attributes

std::vector< VECTOR2Dm_vertices
 
IMPORTED_STROKE m_stroke
 
bool m_filled
 
COLOR4D m_fillColor
 

Detailed Description

Definition at line 159 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_POLYGON()

IMPORTED_POLYGON::IMPORTED_POLYGON ( const std::vector< VECTOR2D > &  aVertices,
const IMPORTED_STROKE aStroke,
bool  aFilled,
const COLOR4D aFillColor 
)
inline

Definition at line 162 of file graphics_importer_buffer.h.

Member Function Documentation

◆ clone()

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

Implements IMPORTED_SHAPE.

Definition at line 174 of file graphics_importer_buffer.h.

◆ GetFillColor()

const COLOR4D & IMPORTED_POLYGON::GetFillColor ( ) const
inline

◆ GetParentShapeIndex()

int IMPORTED_SHAPE::GetParentShapeIndex ( ) const
inlineinherited

◆ GetStroke()

const IMPORTED_STROKE & IMPORTED_POLYGON::GetStroke ( ) const
inline

Definition at line 193 of file graphics_importer_buffer.h.

References m_stroke.

Referenced by GRAPHICS_IMPORTER_BUFFER::PostprocessNestedPolygons().

◆ ImportTo()

void IMPORTED_POLYGON::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

◆ IsFilled()

bool IMPORTED_POLYGON::IsFilled ( ) const
inline

Definition at line 189 of file graphics_importer_buffer.h.

References m_filled.

Referenced by GRAPHICS_IMPORTER_BUFFER::PostprocessNestedPolygons().

◆ SetParentShapeIndex()

void IMPORTED_SHAPE::SetParentShapeIndex ( int  aIndex)
inlineinherited

Definition at line 46 of file graphics_importer_buffer.h.

References IMPORTED_SHAPE::m_parentShapeIndex.

◆ Transform()

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

Implements IMPORTED_SHAPE.

Definition at line 179 of file graphics_importer_buffer.h.

References m_vertices.

◆ Vertices()

std::vector< VECTOR2D > & IMPORTED_POLYGON::Vertices ( )
inline

Definition at line 187 of file graphics_importer_buffer.h.

References m_vertices.

Member Data Documentation

◆ m_fillColor

COLOR4D IMPORTED_POLYGON::m_fillColor
private

Definition at line 199 of file graphics_importer_buffer.h.

Referenced by GetFillColor(), and ImportTo().

◆ m_filled

bool IMPORTED_POLYGON::m_filled
private

Definition at line 198 of file graphics_importer_buffer.h.

Referenced by ImportTo(), and IsFilled().

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

◆ m_stroke

IMPORTED_STROKE IMPORTED_POLYGON::m_stroke
private

Definition at line 197 of file graphics_importer_buffer.h.

Referenced by GetStroke(), and ImportTo().

◆ m_vertices

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

Definition at line 196 of file graphics_importer_buffer.h.

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


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