128 wxArrayString cursorStrings;
135 cursorStrings.push_back(
constexpr void SetMaximum()
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Plain ellipse / elliptical-arc data.
VECTOR2< NumericType > GetArcEndPoint() const
Get the point on the ellipse at the end angle of the arc.
VECTOR2< NumericType > GetPointAtAngle(EDA_ANGLE angle) const
Get the point on the ellipse at a given angle.
VECTOR2< NumericType > GetArcStartPoint() const
Get the point on the ellipse at the start angle of the arc.
VECTOR2< NumericType > Center
EDA_ANGLE GetSubtendedAngle() const
Get the subtended angle of the ellipse or elliptical arc at the center.
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 DrawRectangle(const VECTOR2I &aC1, const VECTOR2I &aC2, bool aDeEmphasised)
Draw a rectangle on the current layer.
void DrawEllipse(const VECTOR2I &aOrigin, double aA, double aB, EDA_ANGLE aRot, bool aDeEmphasised)
Draw a preview ellipse on the current layer.
void DrawLine(const VECTOR2I &aStart, const VECTOR2I &aEnd, bool aDeEmphasised)
Draw a simple line on the current layer.
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...
const EDA_IU_SCALE & m_iuScale
EDA_UNITS m_units
Draw the arc segment (or just the radius lines).
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override final
Draw the parts of the object belonging to layer aLayer.
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
ELLIPSE_ASSISTANT(const ELLIPSE_GEOM_MANAGER &aManager, const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits)
const ELLIPSE_GEOM_MANAGER & m_constructMan
Manage the construction of an elliptical arc through sequential setting of critical points: two bound...
@ SET_BBOX_C1
Waiting to lock in first bbox corner.
@ SET_BBOX_C2
Waiting to lock in second bbox corner.
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.
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_90
@ LAYER_SELECT_OVERLAY
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...
@ NOT_USED
the 3d code uses this value
VECTOR2< int32_t > VECTOR2I