24#ifndef EESCHEMA_TOOLS_RULE_CREATE_HELPER__H_
25#define EESCHEMA_TOOLS_RULE_CREATE_HELPER__H_
A preview item which shows an in-progress polygon, which can be used for zone outlines,...
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
"Listener" interface for a class that wants to be updated about polygon geometry changes
Class that handles the drawing of a polygon, including management of last corner deletion and drawing...
An adjunct helper to the DRAWING_TOOL interactive tool, which handles incoming geometry changes from ...
std::unique_ptr< SCH_RULE_AREA > createNewRuleArea()
Create a new SCH_RULE_AREA.
std::unique_ptr< SCH_RULE_AREA > m_rule_area
The TOOL_MANAGER running the tool.
void OnGeometryChange(const POLYGON_GEOM_MANAGER &aMgr) override
Called when the polygon is complete.
void OnComplete(const POLYGON_GEOM_MANAGER &aMgr) override
virtual ~RULE_AREA_CREATE_HELPER()
KIGFX::VIEW & m_parentView
The active schematic edit frame.
bool OnFirstPoint(POLYGON_GEOM_MANAGER &aMgr) override
Called before the first point is added - clients can do initialization here, and can veto the start o...
void commitRuleArea(std::unique_ptr< SCH_RULE_AREA > aRuleArea)
Commit the current rule area in progress to the schematic.
TOOL_MANAGER * m_toolManager
SCH_RULE_AREA * GetRuleArea() const
KIGFX::PREVIEW::POLYGON_ITEM m_previewItem
< The preview item to display
SCH_EDIT_FRAME * m_frame
The rule area in progress.
Schematic editor (Eeschema) main window.
The Cairo implementation of the graphics abstraction layer.