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

#include <graphics_importer_buffer.h>

Inheritance diagram for IMPORTED_LINE:
IMPORTED_SHAPE

Public Member Functions

 IMPORTED_LINE (const VECTOR2D &aStart, const VECTOR2D &aEnd, 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
 
void SetParentShapeIndex (int aIndex)
 
int GetParentShapeIndex () const
 

Protected Attributes

int m_parentShapeIndex = -1
 

Private Attributes

VECTOR2D m_start
 
VECTOR2D m_end
 
IMPORTED_STROKE m_stroke
 

Detailed Description

Definition at line 54 of file graphics_importer_buffer.h.

Constructor & Destructor Documentation

◆ IMPORTED_LINE()

IMPORTED_LINE::IMPORTED_LINE ( const VECTOR2D aStart,
const VECTOR2D aEnd,
const IMPORTED_STROKE aStroke 
)
inline

Definition at line 57 of file graphics_importer_buffer.h.

Member Function Documentation

◆ clone()

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

Implements IMPORTED_SHAPE.

Definition at line 67 of file graphics_importer_buffer.h.

◆ GetParentShapeIndex()

int IMPORTED_SHAPE::GetParentShapeIndex ( ) const
inlineinherited

◆ ImportTo()

void IMPORTED_LINE::ImportTo ( GRAPHICS_IMPORTER aImporter) const
inlineoverridevirtual

Implements IMPORTED_SHAPE.

Definition at line 62 of file graphics_importer_buffer.h.

References GRAPHICS_IMPORTER::AddLine(), m_end, m_start, and m_stroke.

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

Implements IMPORTED_SHAPE.

Definition at line 72 of file graphics_importer_buffer.h.

References m_end, and m_start.

Member Data Documentation

◆ m_end

VECTOR2D IMPORTED_LINE::m_end
private

Definition at line 80 of file graphics_importer_buffer.h.

Referenced by ImportTo(), and Transform().

◆ m_parentShapeIndex

int IMPORTED_SHAPE::m_parentShapeIndex = -1
protectedinherited

◆ m_start

VECTOR2D IMPORTED_LINE::m_start
private

Definition at line 79 of file graphics_importer_buffer.h.

Referenced by ImportTo(), and Transform().

◆ m_stroke

IMPORTED_STROKE IMPORTED_LINE::m_stroke
private

Definition at line 81 of file graphics_importer_buffer.h.

Referenced by ImportTo().


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