KiCad PCB EDA Suite
SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY Struct Reference

Public Member Functions

 SHAPE_ENTRY (T aParent)
 
 ~SHAPE_ENTRY ()
 

Public Attributes

parent
 
const SHAPEshape
 
BOX2I bbox
 

Detailed Description

template<class T, const SHAPE * = defaultShapeFunctor<T>>
struct SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY

Definition at line 44 of file shape_index_list.h.

Constructor & Destructor Documentation

◆ SHAPE_ENTRY()

template<class T , const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::SHAPE_ENTRY ( aParent)
inline

Definition at line 46 of file shape_index_list.h.

47 {
48 shape = ShapeFunctor( aParent );
49 bbox = shape->BBox( 0 );
50 parent = aParent;
51 }
virtual const BOX2I BBox(int aClearance=0) const =0
Compute a bounding box of the shape, with a margin of aClearance a collision.
BOX2I bbox
T parent
const SHAPE * shape

References SHAPE::BBox(), SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::bbox, SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::parent, and SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::shape.

◆ ~SHAPE_ENTRY()

template<class T , const SHAPE * = defaultShapeFunctor<T>>
SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::~SHAPE_ENTRY ( )
inline

Definition at line 53 of file shape_index_list.h.

54 {
55 }

Member Data Documentation

◆ bbox

template<class T , const SHAPE * = defaultShapeFunctor<T>>
BOX2I SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::bbox

Definition at line 59 of file shape_index_list.h.

Referenced by SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::SHAPE_ENTRY().

◆ parent

template<class T , const SHAPE * = defaultShapeFunctor<T>>
T SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::parent

Definition at line 57 of file shape_index_list.h.

Referenced by SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::SHAPE_ENTRY().

◆ shape

template<class T , const SHAPE * = defaultShapeFunctor<T>>
const SHAPE* SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::shape

Definition at line 58 of file shape_index_list.h.

Referenced by SHAPE_INDEX_LIST< T, >::SHAPE_ENTRY::SHAPE_ENTRY().


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