KiCad PCB EDA Suite
Loading...
Searching...
No Matches
symb_transforms_utils.h File Reference

Go to the source code of this file.

Functions

void OrientAndMirrorSymbolItems (LIB_SYMBOL *aLibSymbol, 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.
 

Function Documentation

◆ OrientAndMirrorSymbolItems()

void OrientAndMirrorSymbolItems ( LIB_SYMBOL aLibSymbol,
int  aOrientation 
)

Rotate and/or mirror graphic objects of LIB_SYMBOL aSymbol according to aOrientMirror.

Parameters
aLibSymbolis the LIB_SYMBOL to modify
aOrientationis 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().

◆ RotateAndMirrorPin()

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.

Parameters
aPinis the SCH_PIN to modify
aOrientationis 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().