KiCad PCB EDA Suite
|
Go to the source code of this file.
Enumerations | |
enum class | FLIP_DIRECTION { LEFT_RIGHT , TOP_BOTTOM } |
Functions | |
template<typename T > | |
constexpr T | MIRRORVAL (T aPoint, T aMirrorRef) |
Returns the mirror of aPoint relative to the aMirrorRef. | |
template<typename T > | |
constexpr void | MIRROR (T &aPoint, const T &aMirrorRef) |
Updates aPoint with the mirror of aPoint relative to the aMirrorRef. | |
template<typename VT > | |
constexpr void | MIRROR (VT &aPoint, const VT &aMirrorRef, FLIP_DIRECTION aFlipDirection) |
Updates aPoint with the mirror of aPoint relative to the aMirrorRef, in the specified direction. | |
|
strong |
|
constexpr |
Updates aPoint with the mirror of aPoint relative to the aMirrorRef.
Definition at line 45 of file mirror.h.
References MIRRORVAL().
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::applyTransform(), PCB_GENERATOR::baseMirror(), EDA_SHAPE::flip(), REFERENCE_IMAGE::Flip(), FOOTPRINT::Flip(), PAD::Flip(), PCB_SHAPE::Mirror(), PCB_TRACK::Mirror(), PCB_ARC::Mirror(), PCB_DIMENSION_BASE::Mirror(), MIRROR(), SCH_BUS_ENTRY_BASE::MirrorHorizontally(), SCH_JUNCTION::MirrorHorizontally(), SCH_LINE::MirrorHorizontally(), SCH_NO_CONNECT::MirrorHorizontally(), SCH_SHEET::MirrorHorizontally(), SCH_SYMBOL::MirrorHorizontally(), mirrorPad(), SCH_BUS_ENTRY_BASE::MirrorVertically(), SCH_JUNCTION::MirrorVertically(), SCH_LINE::MirrorVertically(), SCH_NO_CONNECT::MirrorVertically(), SCH_SHEET::MirrorVertically(), SCH_SYMBOL::MirrorVertically(), and PCB_IO_EASYEDAPRO_PARSER::ParseBoard().
|
constexpr |
Updates aPoint with the mirror of aPoint relative to the aMirrorRef, in the specified direction.
Definition at line 56 of file mirror.h.
References LEFT_RIGHT, and MIRROR().
|
constexpr |
Returns the mirror of aPoint relative to the aMirrorRef.
Definition at line 36 of file mirror.h.
Referenced by PCB_TEXT::Flip(), PCB_TEXT::Mirror(), MIRROR(), SCH_DIRECTIVE_LABEL::MirrorHorizontally(), SCH_TEXT::MirrorHorizontally(), SCH_DIRECTIVE_LABEL::MirrorVertically(), and SCH_TEXT::MirrorVertically().