| 
    KiCad PCB EDA Suite
    
   | 
 
#include <array_options.h>
  
Public Types | |
| enum | ARRAY_TYPE_T { ARRAY_GRID , ARRAY_CIRCULAR } | 
Public Member Functions | |
| ARRAY_CIRCULAR_OPTIONS () | |
| TRANSFORM | GetTransform (int aN, const VECTOR2I &aPos) const override | 
| Get the transform of the n-th point in the array.   | |
| int | GetArraySize () const override | 
| The number of points in this array.   | |
| wxString | GetItemNumber (int n) const override | 
| Get the position number (name) for the n'th array point.   | |
| bool | ShouldNumberItems () const | 
| void | SetShouldNumber (bool aShouldNumber) | 
| bool | ShouldArrangeSelection () const | 
| void | SetShouldArrangeSelection (bool aShouldArrange) | 
| bool | ShouldReannotateFootprints () const | 
| void | SetSShouldReannotateFootprints (bool aShouldReannotate) | 
| bool | GetNumberingStartIsSpecified () const | 
| void | SetNumberingStartIsSpecified (bool aIsSpecified) | 
Public Attributes | |
| 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)   | |
| EDA_ANGLE | m_angleOffset | 
| bool | m_clockwise | 
| VECTOR2I | m_centre | 
| bool | m_rotateItems | 
| ARRAY_AXIS | m_axis | 
Protected Attributes | |
| ARRAY_TYPE_T | m_type | 
| bool | m_shouldNumber | 
| True if this array numbers the new items.   | |
| bool | m_arrangeSelection | 
| True if this array should arrange the selected items instead of creating an array of copies of the selection.   | |
| 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.   | |
Definition at line 200 of file array_options.h.
      
  | 
  inherited | 
| Enumerator | |
|---|---|
| ARRAY_GRID | A grid (x*y) array.  | 
| ARRAY_CIRCULAR | A circular array.  | 
Definition at line 41 of file array_options.h.
      
  | 
  inline | 
Definition at line 202 of file array_options.h.
References ANGLE_0, ARRAY_OPTIONS::ARRAY_CIRCULAR, ARRAY_OPTIONS::ARRAY_OPTIONS(), m_angle, m_angleOffset, m_clockwise, m_nPts, and m_rotateItems.
      
  | 
  overridevirtual | 
The number of points in this array.
Implements ARRAY_OPTIONS.
Definition at line 119 of file array_options.cpp.
References m_nPts.
      
  | 
  overridevirtual | 
Get the position number (name) for the n'th array point.
| n | array point index, from 0 to GetArraySize() - 1. | 
Implements ARRAY_OPTIONS.
Definition at line 152 of file array_options.cpp.
References m_axis.
      
  | 
  inlineinherited | 
Definition at line 134 of file array_options.h.
References m_numberingStartIsSpecified, and m_shouldNumber.
Referenced by ARRAY_PAD_NUMBER_PROVIDER::ARRAY_PAD_NUMBER_PROVIDER().
      
  | 
  overridevirtual | 
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. | 
Implements ARRAY_OPTIONS.
Definition at line 125 of file array_options.cpp.
References ANGLE_0, DEGREES_T, m_angle, m_angleOffset, m_centre, m_clockwise, m_nPts, m_rotateItems, and RotatePoint().
      
  | 
  inlineinherited | 
Definition at line 139 of file array_options.h.
References m_numberingStartIsSpecified.
      
  | 
  inlineinherited | 
Definition at line 110 of file array_options.h.
References m_arrangeSelection.
      
  | 
  inlineinherited | 
Definition at line 97 of file array_options.h.
References m_shouldNumber.
      
  | 
  inlineinherited | 
Definition at line 124 of file array_options.h.
References m_reannotateFootprints.
      
  | 
  inlineinherited | 
Definition at line 105 of file array_options.h.
References m_arrangeSelection.
      
  | 
  inlineinherited | 
Definition at line 92 of file array_options.h.
References m_shouldNumber.
      
  | 
  inlineinherited | 
Definition at line 119 of file array_options.h.
References m_reannotateFootprints.
| EDA_ANGLE ARRAY_CIRCULAR_OPTIONS::m_angle | 
angle between points, or 0 for each point separated by this value (decideg)
Definition at line 216 of file array_options.h.
Referenced by ARRAY_CIRCULAR_OPTIONS(), BOOST_AUTO_TEST_CASE(), and GetTransform().
| EDA_ANGLE ARRAY_CIRCULAR_OPTIONS::m_angleOffset | 
Definition at line 217 of file array_options.h.
Referenced by ARRAY_CIRCULAR_OPTIONS(), and GetTransform().
      
  | 
  protectedinherited | 
True if this array should arrange the selected items instead of creating an array of copies of the selection.
Definition at line 153 of file array_options.h.
Referenced by ARRAY_OPTIONS(), SetShouldArrangeSelection(), and ShouldArrangeSelection().
| ARRAY_AXIS ARRAY_CIRCULAR_OPTIONS::m_axis | 
Definition at line 221 of file array_options.h.
Referenced by GetItemNumber().
| VECTOR2I ARRAY_CIRCULAR_OPTIONS::m_centre | 
Definition at line 219 of file array_options.h.
Referenced by BOOST_AUTO_TEST_CASE(), and GetTransform().
| bool ARRAY_CIRCULAR_OPTIONS::m_clockwise | 
Definition at line 218 of file array_options.h.
Referenced by ARRAY_CIRCULAR_OPTIONS(), and GetTransform().
| long ARRAY_CIRCULAR_OPTIONS::m_nPts | 
number of point in the array
Definition at line 213 of file array_options.h.
Referenced by ARRAY_CIRCULAR_OPTIONS(), BOOST_AUTO_TEST_CASE(), GetArraySize(), and GetTransform().
      
  | 
  protectedinherited | 
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 160 of file array_options.h.
Referenced by ARRAY_OPTIONS(), GetNumberingStartIsSpecified(), and SetNumberingStartIsSpecified().
      
  | 
  protectedinherited | 
True if this array will rename any footprints to be unique.
Definition at line 156 of file array_options.h.
Referenced by ARRAY_OPTIONS(), SetSShouldReannotateFootprints(), and ShouldReannotateFootprints().
| bool ARRAY_CIRCULAR_OPTIONS::m_rotateItems | 
Definition at line 220 of file array_options.h.
Referenced by ARRAY_CIRCULAR_OPTIONS(), BOOST_AUTO_TEST_CASE(), and GetTransform().
      
  | 
  protectedinherited | 
True if this array numbers the new items.
Definition at line 149 of file array_options.h.
Referenced by ARRAY_OPTIONS(), GetNumberingStartIsSpecified(), SetShouldNumber(), and ShouldNumberItems().
      
  | 
  protectedinherited | 
Definition at line 146 of file array_options.h.
Referenced by ARRAY_OPTIONS().