KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 (POLYGON_GEOM_MANAGER &aMgr)=0
 Called before the first point is added - clients can do initialization here, and can veto the start of the process (e.g.
 
virtual void OnGeometryChange (const POLYGON_GEOM_MANAGER &aMgr)=0
 Called when the polygon is complete.
 
virtual void OnComplete (const POLYGON_GEOM_MANAGER &aMgr)=0
 
virtual ~CLIENT ()
 

Detailed Description

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

Definition at line 43 of file polygon_geom_manager.h.

Constructor & Destructor Documentation

◆ ~CLIENT()

virtual POLYGON_GEOM_MANAGER::CLIENT::~CLIENT ( )
inlinevirtual

Definition at line 61 of file polygon_geom_manager.h.

Member Function Documentation

◆ OnComplete()

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

◆ OnFirstPoint()

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

Called before the first point is added - clients can do initialization here, and can veto the start of the process (e.g.

if user cancels a dialog)

Returns
false to veto start of new polygon Sent when the polygon geometry changes

Implemented in ZONE_CREATE_HELPER.

Referenced by POLYGON_GEOM_MANAGER::AddPoint().

◆ OnGeometryChange()

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: