|
KiCad PCB EDA Suite
|
#include <sch_label.h>
Public Types | |
| enum | SPIN : int { LEFT = 0 , UP = 1 , RIGHT = 2 , BOTTOM = 3 } |
Public Member Functions | |
| SPIN_STYLE ()=default | |
| constexpr | SPIN_STYLE (SPIN aSpin) |
| constexpr bool | operator== (SPIN a) const |
| constexpr bool | operator!= (SPIN a) const |
| operator int () const | |
| SPIN_STYLE | RotateCCW () |
| SPIN_STYLE | MirrorX () |
| Mirror the label spin style across the X axis or simply swaps up and bottom. | |
| SPIN_STYLE | MirrorY () |
| Mirror the label spin style across the Y axis or simply swaps left and right. | |
| unsigned | CCWRotationsTo (const SPIN_STYLE &aOther) const |
| Get CCW rotation needed to get to the given spin style. | |
Private Attributes | |
| SPIN | m_spin |
Definition at line 41 of file sch_label.h.
| enum SPIN_STYLE::SPIN : int |
| Enumerator | |
|---|---|
| LEFT | |
| UP | |
| RIGHT | |
| BOTTOM | |
Definition at line 44 of file sch_label.h.
|
default |
Referenced by CCWRotationsTo(), MirrorX(), MirrorY(), and RotateCCW().
|
inlineconstexpr |
Definition at line 54 of file sch_label.h.
References m_spin.
| unsigned SPIN_STYLE::CCWRotationsTo | ( | const SPIN_STYLE & | aOther | ) | const |
Get CCW rotation needed to get to the given spin style.
Definition at line 161 of file sch_label.cpp.
References m_spin, and SPIN_STYLE().
Referenced by SCH_EDIT_TOOL::Swap().
| SPIN_STYLE SPIN_STYLE::MirrorX | ( | ) |
Mirror the label spin style across the X axis or simply swaps up and bottom.
Definition at line 129 of file sch_label.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().
| SPIN_STYLE SPIN_STYLE::MirrorY | ( | ) |
Mirror the label spin style across the Y axis or simply swaps left and right.
Definition at line 145 of file sch_label.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().
|
inline |
Definition at line 68 of file sch_label.h.
References m_spin.
|
inlineconstexpr |
Definition at line 63 of file sch_label.h.
References m_spin.
|
inlineconstexpr |
Definition at line 58 of file sch_label.h.
References m_spin.
| SPIN_STYLE SPIN_STYLE::RotateCCW | ( | ) |
Definition at line 113 of file sch_label.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getSpinStyle(), orientLabel(), and SCH_EASYEDA_PARSER::ParseSchematic().
|
private |
Definition at line 91 of file sch_label.h.
Referenced by CCWRotationsTo(), MirrorX(), MirrorY(), operator int(), operator!=(), operator==(), RotateCCW(), and SPIN_STYLE().