KiCad PCB EDA Suite
|
Options that govern the setup of an "array" of multiple item. More...
#include <array_options.h>
Classes | |
struct | TRANSFORM |
Transform applied to an object by this array. More... | |
Public Types | |
enum | ARRAY_TYPE_T { ARRAY_GRID , ARRAY_CIRCULAR } |
Public Member Functions | |
ARRAY_OPTIONS (ARRAY_TYPE_T aType) | |
virtual | ~ARRAY_OPTIONS () |
virtual TRANSFORM | GetTransform (int aN, const VECTOR2I &aPos) const =0 |
Get the transform of the n-th point in the array. | |
virtual int | GetArraySize () const =0 |
The number of points in this array. | |
virtual wxString | GetItemNumber (int n) const =0 |
Get the position number (name) for the n'th array point. | |
bool | ShouldNumberItems () const |
void | SetShouldNumber (bool aShouldNumber) |
bool | ShouldReannotateFootprints () const |
void | SetSShouldReannotateFootprints (bool aShouldReannotate) |
bool | GetNumberingStartIsSpecified () const |
void | SetNumberingStartIsSpecified (bool aIsSpecified) |
Protected Attributes | |
ARRAY_TYPE_T | m_type |
bool | m_shouldNumber |
True if this array numbers the new items. | |
bool | m_reannotateFootprints |
True if this array will rename any footprints to be unique. | |
bool | m_numberingStartIsSpecified |
True if this array's number starts from the preset point False if the array numbering starts from some externally provided point. | |
Options that govern the setup of an "array" of multiple item.
The base ARRAY_OPTIONS do not encode a specific geometry or numbering method, this is done by derived classes.
Definition at line 37 of file array_options.h.
Enumerator | |
---|---|
ARRAY_GRID | A grid (x*y) array. |
ARRAY_CIRCULAR | A circular array. |
Definition at line 40 of file array_options.h.
|
inline |
Definition at line 46 of file array_options.h.
|
inlinevirtual |
Definition at line 54 of file array_options.h.
|
pure virtual |
The number of points in this array.
Implemented in ARRAY_GRID_OPTIONS, and ARRAY_CIRCULAR_OPTIONS.
Referenced by CheckArrayNumbering(), and CheckArrayTransforms().
|
pure virtual |
Get the position number (name) for the n'th array point.
n | array point index, from 0 to GetArraySize() - 1 |
Implemented in ARRAY_GRID_OPTIONS, and ARRAY_CIRCULAR_OPTIONS.
Referenced by CheckArrayNumbering(), and ARRAY_PAD_NUMBER_PROVIDER::getNextNumber().
|
inline |
Definition at line 118 of file array_options.h.
Referenced by ARRAY_PAD_NUMBER_PROVIDER::ARRAY_PAD_NUMBER_PROVIDER().
Get the transform of the n-th point in the array.
aN | the index of the array point (0 is the original point) |
aPos | the existing item position |
Implemented in ARRAY_GRID_OPTIONS, and ARRAY_CIRCULAR_OPTIONS.
Referenced by CheckArrayTransforms(), and TransformItem().
|
inline |
Definition at line 123 of file array_options.h.
|
inline |
Definition at line 94 of file array_options.h.
|
inline |
Definition at line 108 of file array_options.h.
|
inline |
Definition at line 89 of file array_options.h.
|
inline |
Definition at line 103 of file array_options.h.
|
protected |
True if this array's number starts from the preset point False if the array numbering starts from some externally provided point.
Definition at line 140 of file array_options.h.
|
protected |
True if this array will rename any footprints to be unique.
Definition at line 136 of file array_options.h.
|
protected |
True if this array numbers the new items.
Definition at line 133 of file array_options.h.
|
protected |
Definition at line 130 of file array_options.h.