39 m_constructMan( aManager ),
71 while( degs < -3600.0 )
74 while( degs > 3600.0 )
101 std::vector<wxString> cursorStrings;
115 cursorStrings.push_back(
DimensionLabel( wxString::FromUTF8(
"θ" ), degs,
130 cursorStrings.push_back(
DimensionLabel( wxString::FromUTF8(
"Δθ" ), subtendedDeg,
132 cursorStrings.push_back(
DimensionLabel( wxString::FromUTF8(
"θ" ), endAngleDeg,
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override final
Draw the assistance (with reference to the construction manager.
currently selected items overlay
Manage the construction of a circular arc though sequential setting of critical points: center,...
ARC_ASSISTANT(const ARC_GEOM_MANAGER &aManager, EDA_UNITS aUnits)
VECTOR2I GetEndRadiusEnd() const
Get the radius of the arc (valid if step >= SET_START)
Implementation of conversion functions that require both schematic and board internal units.
the 3d code uses this value
double RAD2DECIDEG(double rad)
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
VECTOR2I GetStartRadiusEnd() const
Get the coordinates of the arc end point.
const ARC_GEOM_MANAGER & m_constructMan
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...
double GetStartAngle() const
Get the angle of the vector leading to the end point (valid if step >= SET_ANGLE)
double GetSubtended() const
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 ResetTextAttributes()
Reset text attributes to default styling.
Waiting to lock in the arc start point.
VECTOR2I GetOrigin() const
< Get the center point of the arc (valid when state > SET_ORIGIN)
double GetRadius() const
Get the angle of the vector leading to the start point (valid if step >= SET_START)
void DrawCircle(const VECTOR2I &aOrigin, double aRad, bool aDeEmphasised)
Draw a preview circle on the current layer.
A KIGFX::PREVIEW::DRAW_CONTEXT is a wrapper around a GAL and some other settings that makes it easy t...
VECTOR2I GetLastPoint() const
Get the last point added (locked in or not).
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
double getNormDeciDegFromRad(double aRadians)
Get deci-degrees from radians, normalised to +/- 360.
ARC_STEPS GetStep() const
Get the current step the manager is on (useful when drawing something depends on the current state)
A base class for most all the KiCad significant classes used in schematics and boards.
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.