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