KiCad PCB EDA Suite
|
Go to the source code of this file.
Classes | |
struct | ORIENT_MIRROR |
Functions | |
void | OrientAndMirrorSymbolItems (LIB_SYMBOL *aSymbol, int aOrientation) |
Rotate and/or mirror graphic objects of LIB_SYMBOL aSymbol according to aOrientMirror. | |
void | RotateAndMirrorPin (SCH_PIN &aPin, int aOrientMirror) |
Rotate and/or mirror a SCH_PIN according to aOrientMirror. | |
Variables | |
static ORIENT_MIRROR | symbols_orientations_list [] |
void OrientAndMirrorSymbolItems | ( | LIB_SYMBOL * | aLibSymbol, |
int | aOrientation | ||
) |
Rotate and/or mirror graphic objects of LIB_SYMBOL aSymbol according to aOrientMirror.
aLibSymbol | is the LIB_SYMBOL to modify |
aOrientation | is the orientation+mirror value like returned by SCH_SYMBOL::GetOrientation() |
Definition at line 54 of file symb_transforms_utils.cpp.
References LIB_SYMBOL::GetDrawItems(), ORIENT_MIRROR::mirror_x, ORIENT_MIRROR::mirror_y, ORIENT_MIRROR::n_rots, and symbols_orientations_list.
Referenced by KIGFX::SCH_PAINTER::draw().
void RotateAndMirrorPin | ( | SCH_PIN & | aPin, |
int | aOrientMirror | ||
) |
Rotate and/or mirror a SCH_PIN according to aOrientMirror.
aOrientMirror is usually the orientation/mirror of the parent symbol. The modified pin orientation is the actual pin orientation/mirror when the parent symbol is drawn.
aPin | is the SCH_PIN to modify |
aOrientation | is the orientation+mirror value like returned by SCH_SYMBOL::GetOrientation() |
Definition at line 86 of file symb_transforms_utils.cpp.
References ORIENT_MIRROR::mirror_x, ORIENT_MIRROR::mirror_y, SCH_PIN::MirrorHorizontallyPin(), SCH_PIN::MirrorVerticallyPin(), ORIENT_MIRROR::n_rots, SCH_PIN::RotatePin(), and symbols_orientations_list.
Referenced by EE_SELECTION_TOOL::Main().
|
static |
Definition at line 37 of file symb_transforms_utils.cpp.
Referenced by OrientAndMirrorSymbolItems(), and RotateAndMirrorPin().