![]() |
KiCad PCB EDA Suite
|
Classes | |
class | ARC_ASSISTANT |
Class SELECTION_AREA. More... | |
class | ARC_GEOM_MANAGER |
Class ARC_GEOM_MANAGER. More... | |
class | CENTRELINE_RECT_ITEM |
Class CENTRELINE_RECT_ITEM. More... | |
class | MULTISTEP_GEOM_MANAGER |
A geometry manager that works by accepting a sequence of points and advancing though stages of geometric construction with each point "locked in". More... | |
class | POLYGON_ITEM |
Class POLYGON_ITEM. More... | |
class | RULER_ITEM |
Class RULER_ITEM. More... | |
class | SELECTION_AREA |
Class SELECTION_AREA. More... | |
class | SIMPLE_OVERLAY_ITEM |
SIMPLE_OVERLAY_ITEM is class that represents a visual area drawn on a canvas, used to temporarily demarcate an area or show something on an overlay. More... | |
class | TWO_POINT_GEOMETRY_MANAGER |
Class TWO_POINT_GEOMETRY_MANAGER. More... | |
Functions | |
double | PreviewOverlayDeemphAlpha (bool aDeemph=true) |
Default alpha of "de-emphasised" features (like previously locked-in lines. More... | |
wxString | DimensionLabel (const wxString &prefix, double aVal, EDA_UNITS_T aUnits) |
Get a formatted string showing a dimension to a sane precision with an optional prefix and unit suffix. More... | |
void | SetConstantGlyphHeight (KIGFX::GAL &aGal, double aHeight) |
Set the GAL glyph height to a constant scaled value, so that it always looks the same on screen. More... | |
void | DrawTextNextToCursor (KIGFX::VIEW *aView, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const std::vector< wxString > &aStrings) |
Draw strings next to the cursor. More... | |
wxString KIGFX::PREVIEW::DimensionLabel | ( | const wxString & | prefix, |
double | aVal, | ||
EDA_UNITS_T | aUnits | ||
) |
Get a formatted string showing a dimension to a sane precision with an optional prefix and unit suffix.
Definition at line 92 of file preview_utils.cpp.
References formatPreviewDimension(), and str.
Referenced by drawCursorStrings(), drawTicksAlongLine(), and KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw().
void KIGFX::PREVIEW::DrawTextNextToCursor | ( | KIGFX::VIEW * | aView, |
const VECTOR2D & | aCursorPos, | ||
const VECTOR2D & | aTextQuadrant, | ||
const std::vector< wxString > & | aStrings | ||
) |
Draw strings next to the cursor.
aGal | the GAL to draw on |
aCursorPos | the position of the cursor to draw next to |
aTextQuadrant | a vector pointing to the quadrant to draw the text in |
aStrings | list of strings to draw, top to bottom |
Definition at line 115 of file preview_utils.cpp.
References KIGFX::VIEW::GetGAL(), KIGFX::GAL::GetGlyphSize(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, LAYER_AUX_ITEMS, PreviewOverlayDeemphAlpha(), str, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by drawCursorStrings(), and KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw().
double KIGFX::PREVIEW::PreviewOverlayDeemphAlpha | ( | bool | aDeemph = true | ) |
Default alpha of "de-emphasised" features (like previously locked-in lines.
Definition at line 30 of file preview_utils.cpp.
Referenced by drawLineWithHilight(), DrawTextNextToCursor(), drawTicksAlongLine(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().
void KIGFX::PREVIEW::SetConstantGlyphHeight | ( | KIGFX::GAL & | aGal, |
double | aHeight | ||
) |
Set the GAL glyph height to a constant scaled value, so that it always looks the same on screen.
aGal | the GAL to draw on |
aHeight | the height of the glyph, in pixels |
Definition at line 105 of file preview_utils.cpp.
References KIGFX::GAL::GetGlyphSize(), KIGFX::GAL::GetWorldScale(), and KIGFX::GAL::SetGlyphSize().
Referenced by KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().