35 m_constructMan( aManager ),
67 const VECTOR2I radVec = end - origin;
69 if( radVec.
x == 0 && radVec.
y == 0 )
76 std::vector<wxString> cursorStrings;
90 preview_ctx.
DrawLine( origin, end,
false );
currently selected items overlay
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Represent a very simple geometry manager for items that have a start and end point.
the 3d code uses this value
VECTOR2I GetOrigin() const
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
wxString DimensionLabel(const wxString &prefix, double aVal, EDA_UNITS aUnits, bool aIncludeUnits=true)
Get a formatted string showing a dimension to a sane precision with an optional prefix and unit suffi...
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override final
Draw the assistance (with reference to the construction manager.
void DrawLine(const VECTOR2I &aStart, const VECTOR2I &aEnd, bool aDeEmphasised)
Draw a simple line on the current layer.
void ResetTextAttributes()
Reset text attributes to default styling.
const TWO_POINT_GEOMETRY_MANAGER & m_constructMan
A KIGFX::PREVIEW::DRAW_CONTEXT is a wrapper around a GAL and some other settings that makes it easy t...
A base class for most all the KiCad significant classes used in schematics and boards.
T EuclideanNorm() const
Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2).
TWO_POINT_ASSISTANT(const TWO_POINT_GEOMETRY_MANAGER &aManager, EDA_UNITS aUnits, GEOM_SHAPE aShape)
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
void DrawTextNextToCursor(KIGFX::VIEW *aView, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const std::vector< wxString > &aStrings, bool aDrawingDropShadows)
Draw strings next to the cursor.
Abstract interface for drawing on a 2D-surface.