KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PADS_IO::SDB_COORDS Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ DesignX()

int32_t PADS_IO::SDB_COORDS::DesignX ( int32_t aRaw) const
inline

Definition at line 85 of file pads_sdb.h.

References m_originX.

Referenced by BOOST_AUTO_TEST_CASE().

◆ DesignY()

int32_t PADS_IO::SDB_COORDS::DesignY ( int32_t aRaw) const
inline

Definition at line 86 of file pads_sdb.h.

References m_originY.

Referenced by BOOST_AUTO_TEST_CASE().

◆ Found()

bool PADS_IO::SDB_COORDS::Found ( ) const
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().

◆ HeaderBase()

uint32_t PADS_IO::SDB_COORDS::HeaderBase ( ) const
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().

◆ OriginX()

int32_t PADS_IO::SDB_COORDS::OriginX ( ) const
inline

Definition at line 81 of file pads_sdb.h.

References m_originX.

Referenced by BOOST_AUTO_TEST_CASE().

◆ OriginY()

int32_t PADS_IO::SDB_COORDS::OriginY ( ) const
inline

Definition at line 82 of file pads_sdb.h.

References m_originY.

Referenced by BOOST_AUTO_TEST_CASE().

Friends And Related Symbol Documentation

◆ PADS_SDB

friend class PADS_SDB
friend

Definition at line 95 of file pads_sdb.h.

References PADS_SDB.

Referenced by PADS_SDB.

Member Data Documentation

◆ m_found

bool PADS_IO::SDB_COORDS::m_found = false
private

Definition at line 99 of file pads_sdb.h.

Referenced by Found().

◆ m_headerBase

uint32_t PADS_IO::SDB_COORDS::m_headerBase = 0
private

Definition at line 100 of file pads_sdb.h.

Referenced by HeaderBase().

◆ m_originX

int32_t PADS_IO::SDB_COORDS::m_originX = 0
private

Definition at line 97 of file pads_sdb.h.

Referenced by DesignX(), and OriginX().

◆ m_originY

int32_t PADS_IO::SDB_COORDS::m_originY = 0
private

Definition at line 98 of file pads_sdb.h.

Referenced by DesignY(), and OriginY().


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