40 m_constructMan( aManager ),
41 m_iuScale( aIuScale ),
82 std::vector<wxString> cursorStrings;
95 cursorStrings.push_back(
98 EDA_UNITS::DEGREES ) );
106 EDA_ANGLE normalizedEnd = ( start + subtended ).Normalize180();
113 cursorStrings.push_back(
DimensionLabel( wxString::FromUTF8(
"θ" ),
115 EDA_UNITS::DEGREES ) );
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.
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override final
Draw the assistance (with reference to the construction manager.
const ARC_GEOM_MANAGER & m_constructMan
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
ARC_ASSISTANT(const ARC_GEOM_MANAGER &aManager, const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits)
const EDA_IU_SCALE & m_iuScale
Manage the construction of a circular arc though sequential setting of critical points: center,...
VECTOR2I GetOrigin() const
< Get the center point of the arc (valid when state > SET_ORIGIN)
ARC_STEPS GetStep() const
Get the current step the manager is on (useful when drawing something depends on the current state)
EDA_ANGLE GetStartAngle() const
Get the angle of the vector leading to the end point (valid if step >= SET_ANGLE)
VECTOR2I GetStartRadiusEnd() const
Get the coordinates of the arc end point.
VECTOR2I GetEndRadiusEnd() const
Get the radius of the arc (valid if step >= SET_START)
double GetRadius() const
Get the angle of the vector leading to the start point (valid if step >= SET_START)
EDA_ANGLE GetSubtended() const
@ SET_START
Waiting to lock in the arc start point.
A KIGFX::PREVIEW::DRAW_CONTEXT is a wrapper around a GAL and some other settings that makes it easy t...
void DrawLineWithAngleHighlight(const VECTOR2I &aStart, const VECTOR2I &aEnd, bool aDeEmphasised)
Draw a straight line on the current layer, with a special highlight when the line angle is a multiple...
void DrawCircle(const VECTOR2I &aOrigin, double aRad, bool aDeEmphasised)
Draw a preview circle on the current layer.
VECTOR2I GetLastPoint() const
Get the last point added (locked in or not).
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.
@ LAYER_SELECT_OVERLAY
currently selected items overlay
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...
void DrawTextNextToCursor(KIGFX::VIEW *aView, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const std::vector< wxString > &aStrings, bool aDrawingDropShadows)
Draw strings next to the cursor.
@ NOT_USED
the 3d code uses this value