24#ifndef PCBNEW_ARRAY_OPTIONS__H 
   25#define PCBNEW_ARRAY_OPTIONS__H 
Class that contains information about a single array axis and the numbering of items along that axis.
 
virtual int GetArraySize() const =0
The number of points in this array.
 
void SetSShouldReannotateFootprints(bool aShouldReannotate)
 
bool m_shouldNumber
True if this array numbers the new items.
 
bool ShouldNumberItems() const
 
virtual wxString GetItemNumber(int n) const =0
Get the position number (name) for the n'th array point.
 
virtual TRANSFORM GetTransform(int aN, const VECTOR2I &aPos) const =0
Get the transform of the n-th point in the array.
 
void SetShouldNumber(bool aShouldNumber)
 
bool ShouldReannotateFootprints() const
 
bool ShouldArrangeSelection() const
 
void SetNumberingStartIsSpecified(bool aIsSpecified)
 
bool m_arrangeSelection
True if this array should arrange the selected items instead of creating an array of copies of the se...
 
bool GetNumberingStartIsSpecified() const
 
@ ARRAY_CIRCULAR
A circular array.
 
@ ARRAY_GRID
A grid (x*y) array.
 
void SetShouldArrangeSelection(bool aShouldArrange)
 
ARRAY_OPTIONS(ARRAY_TYPE_T aType)
 
bool m_numberingStartIsSpecified
True if this array's number starts from the preset point False if the array numbering starts from som...
 
bool m_reannotateFootprints
True if this array will rename any footprints to be unique.
 
static constexpr EDA_ANGLE ANGLE_0
 
long m_nPts
number of point in the array
 
EDA_ANGLE m_angle
angle between points, or 0 for each point separated by this value (decideg)
 
wxString GetItemNumber(int n) const override
Get the position number (name) for the n'th array point.
 
int GetArraySize() const override
The number of points in this array.
 
TRANSFORM GetTransform(int aN, const VECTOR2I &aPos) const override
Get the transform of the n-th point in the array.
 
bool m_horizontalThenVertical
 
VECTOR2I getGridCoords(int n) const
 
bool m_reverseNumberingAlternate
 
wxString GetItemNumber(int n) const override
Get the position number (name) for the n'th array point.
 
VECTOR2I gtItemPosRelativeToItem0(int n) const
 
int GetArraySize() const override
The number of points in this array.
 
TRANSFORM GetTransform(int aN, const VECTOR2I &aPos) const override
Get the transform of the n-th point in the array.
 
VECTOR2< int32_t > VECTOR2I