|
KiCad PCB EDA Suite
|
The per-axis coordinate origin and the design <-> raw transform. More...
#include <pads_sdb.h>
Public Member Functions | |
| int32_t | OriginX () const |
| int32_t | OriginY () const |
| bool | Found () const |
| int32_t | DesignX (int32_t aRaw) const |
| int32_t | DesignY (int32_t aRaw) const |
| uint32_t | HeaderBase () const |
| Absolute file offset of the PCB board-setup parameter block read by PADS_SDB (the origin sits at HeaderBase()+60/+64). | |
Private Attributes | |
| int32_t | m_originX = 0 |
| int32_t | m_originY = 0 |
| bool | m_found = false |
| uint32_t | m_headerBase = 0 |
Friends | |
| class | PADS_SDB |
The per-axis coordinate origin and the design <-> raw transform.
Every coordinate in a PADS file is stored in BASIC units (1/38100 mil) biased by a per-axis origin, so a design value is raw - origin.
Definition at line 78 of file pads_sdb.h.
|
inline |
Definition at line 85 of file pads_sdb.h.
References m_originX.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 86 of file pads_sdb.h.
References m_originY.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 83 of file pads_sdb.h.
References m_found.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Absolute file offset of the PCB board-setup parameter block read by PADS_SDB (the origin sits at HeaderBase()+60/+64).
Other fields in that same block (e.g. MAXIMUMLAYER at +16) need this for the same reason the origin does: section 1 is a rotated logical view over the physical section-2/3 controller stream.
Definition at line 92 of file pads_sdb.h.
References m_headerBase.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 81 of file pads_sdb.h.
References m_originX.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 82 of file pads_sdb.h.
References m_originY.
Referenced by BOOST_AUTO_TEST_CASE().
|
friend |
|
private |
Definition at line 99 of file pads_sdb.h.
Referenced by Found().
|
private |
Definition at line 100 of file pads_sdb.h.
Referenced by HeaderBase().
|
private |
Definition at line 97 of file pads_sdb.h.
|
private |
Definition at line 98 of file pads_sdb.h.