KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER Class Referenceabstract

#include <item_modification_routine.h>

Inheritance diagram for ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER:
ITEM_MODIFICATION_ROUTINE::CALLABLE_BASED_HANDLER

Public Member Functions

virtual ~CHANGE_HANDLER ()=default
 
virtual void AddNewItem (std::unique_ptr< BOARD_ITEM > aItem)=0
 Report that the tools wants to add a new item to the board.
 
virtual void MarkItemModified (BOARD_ITEM &aItem)=0
 Report that the tool has modified an item on the board.
 
virtual void DeleteItem (BOARD_ITEM &aItem)=0
 Report that the tool has deleted an item on the board.
 

Detailed Description

Definition at line 62 of file item_modification_routine.h.

Constructor & Destructor Documentation

◆ ~CHANGE_HANDLER()

virtual ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER::~CHANGE_HANDLER ( )
virtualdefault

Member Function Documentation

◆ AddNewItem()

virtual void ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER::AddNewItem ( std::unique_ptr< BOARD_ITEM aItem)
pure virtual

◆ DeleteItem()

virtual void ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER::DeleteItem ( BOARD_ITEM aItem)
pure virtual

Report that the tool has deleted an item on the board.

Parameters
aItemthe deleted item

Implemented in ITEM_MODIFICATION_ROUTINE::CALLABLE_BASED_HANDLER.

Referenced by ITEM_MODIFICATION_ROUTINE::ModifyLineOrDeleteIfZeroLength(), OUTSET_ROUTINE::ProcessItem(), and POLYGON_BOOLEAN_ROUTINE::ProcessShape().

◆ MarkItemModified()

virtual void ITEM_MODIFICATION_ROUTINE::CHANGE_HANDLER::MarkItemModified ( BOARD_ITEM aItem)
pure virtual

Report that the tool has modified an item on the board.

Parameters
aItemthe modified item

Implemented in ITEM_MODIFICATION_ROUTINE::CALLABLE_BASED_HANDLER.

Referenced by ITEM_MODIFICATION_ROUTINE::ModifyLineOrDeleteIfZeroLength(), and LINE_EXTENSION_ROUTINE::ProcessLinePair().


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