KiCad PCB EDA Suite
POLYGON_GEOM_MANAGER::CLIENT Class Referenceabstract

"Listener" interface for a class that wants to be updated about polygon geometry changes More...

#include <polygon_geom_manager.h>

Inheritance diagram for POLYGON_GEOM_MANAGER::CLIENT:
ZONE_CREATE_HELPER

Public Member Functions

virtual bool OnFirstPoint ()=0
 Called before the first point is added - clients can do initialisation here, and can veto the start of the process (eg if user cancels a dialog) More...
 
virtual void OnGeometryChange (const POLYGON_GEOM_MANAGER &aMgr)=0
 

Sent when the polygon geometry changes

More...
 
virtual void OnComplete (const POLYGON_GEOM_MANAGER &aMgr)=0
 

Called when the polygon is complete

More...
 

Detailed Description

"Listener" interface for a class that wants to be updated about polygon geometry changes

Definition at line 45 of file polygon_geom_manager.h.

Member Function Documentation

virtual void POLYGON_GEOM_MANAGER::CLIENT::OnComplete ( const POLYGON_GEOM_MANAGER aMgr)
pure virtual

Called when the polygon is complete

Implemented in ZONE_CREATE_HELPER.

Referenced by POLYGON_GEOM_MANAGER::SetFinished().

virtual bool POLYGON_GEOM_MANAGER::CLIENT::OnFirstPoint ( )
pure virtual

Called before the first point is added - clients can do initialisation here, and can veto the start of the process (eg if user cancels a dialog)

Returns
false to veto start of new polygon

Implemented in ZONE_CREATE_HELPER.

Referenced by POLYGON_GEOM_MANAGER::AddPoint().

virtual void POLYGON_GEOM_MANAGER::CLIENT::OnGeometryChange ( const POLYGON_GEOM_MANAGER aMgr)
pure virtual

The documentation for this class was generated from the following file: