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

#include <shape.h>

Inheritance diagram for SHAPE_BASE:
SHAPE SHAPE_ARC SHAPE_CIRCLE SHAPE_COMPOUND SHAPE_LINE_CHAIN_BASE SHAPE_NULL SHAPE_POLY_SET SHAPE_RECT SHAPE_SEGMENT

Public Member Functions

 SHAPE_BASE (SHAPE_TYPE aType)
 Create an empty shape of type aType.
 
virtual ~SHAPE_BASE ()
 
SHAPE_TYPE Type () const
 Return the type of the shape.
 
wxString TypeName () const
 
virtual bool HasIndexableSubshapes () const
 
virtual size_t GetIndexableSubshapeCount () const
 
virtual void GetIndexableSubshapes (std::vector< const SHAPE * > &aSubshapes) const
 

Protected Attributes

SHAPE_TYPE m_type
 < type of our shape
 

Detailed Description

Definition at line 80 of file shape.h.

Constructor & Destructor Documentation

◆ SHAPE_BASE()

SHAPE_BASE::SHAPE_BASE ( SHAPE_TYPE  aType)
inline

Create an empty shape of type aType.

Definition at line 86 of file shape.h.

◆ ~SHAPE_BASE()

virtual SHAPE_BASE::~SHAPE_BASE ( )
inlinevirtual

Definition at line 90 of file shape.h.

Member Function Documentation

◆ GetIndexableSubshapeCount()

virtual size_t SHAPE_BASE::GetIndexableSubshapeCount ( ) const
inlinevirtual

Reimplemented in SHAPE_COMPOUND, and SHAPE_POLY_SET.

Definition at line 113 of file shape.h.

Referenced by SHAPE::GetClearance().

◆ GetIndexableSubshapes()

virtual void SHAPE_BASE::GetIndexableSubshapes ( std::vector< const SHAPE * > &  aSubshapes) const
inlinevirtual

Reimplemented in SHAPE_COMPOUND, and SHAPE_POLY_SET.

Definition at line 115 of file shape.h.

Referenced by SHAPE_COMPOUND::AddShape(), SHAPE::GetClearance(), and ROUTER_PREVIEW_ITEM::ViewDraw().

◆ HasIndexableSubshapes()

virtual bool SHAPE_BASE::HasIndexableSubshapes ( ) const
inlinevirtual

Reimplemented in SHAPE_COMPOUND, and SHAPE_POLY_SET.

Definition at line 108 of file shape.h.

Referenced by ROUTER_PREVIEW_ITEM::ViewDraw().

◆ Type()

◆ TypeName()

wxString SHAPE_BASE::TypeName ( ) const
inline

Definition at line 103 of file shape.h.

References m_type, and SHAPE_TYPE_asString().

Referenced by Collide().

Member Data Documentation

◆ m_type

SHAPE_TYPE SHAPE_BASE::m_type
protected

< type of our shape

Definition at line 119 of file shape.h.

Referenced by SHAPE::Format(), SHAPE::IsNull(), Type(), and TypeName().


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