const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
virtual void SetIsFill(bool aIsFillEnabled)
Enable/disable fill.
virtual void DrawRectangle(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a rectangle.
virtual void SetFillColor(const COLOR4D &aColor)
Set the fill color.
virtual void Restore()
Restore the context.
virtual void SetLineWidth(float aLineWidth)
Set the line width.
virtual void SetIsStroke(bool aIsStrokeEnabled)
Enable/disable stroked outlines.
virtual void Save()
Save the context.
GAL * m_gal
Instance of graphic abstraction layer that gives an interface to call commands used to draw (eg.
virtual bool Draw(const VIEW_ITEM *aItem, int aLayer) override
Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
An abstract base class for deriving all objects that can be added to a VIEW.
static wxColour GetBoundBoundingFillColor()
void draw(const BOARD_EDGES_BOUNDING_ITEM *aBox, int aLayer)
bool Draw(const KIGFX::VIEW_ITEM *aItem, int aLayer) override
a few functions useful in geometry calculations.