KiCad PCB EDA Suite
INTERACTIVE_PLACER_BASE Struct Referenceabstract

#include <pcb_tool.h>

Public Member Functions

virtual std::unique_ptr< BOARD_ITEMCreateItem ()=0
 
virtual void SnapItem (BOARD_ITEM *aItem)
 
virtual void PlaceItem (BOARD_ITEM *aItem, BOARD_COMMIT &aCommit)
 

Public Attributes

PCB_EDIT_FRAMEm_frame
 
BOARDm_board
 
int m_modifiers
 

Detailed Description

Definition at line 52 of file pcb_tool.h.

Member Function Documentation

virtual std::unique_ptr<BOARD_ITEM> INTERACTIVE_PLACER_BASE::CreateItem ( )
pure virtual
void INTERACTIVE_PLACER_BASE::PlaceItem ( BOARD_ITEM aItem,
BOARD_COMMIT aCommit 
)
virtual

Definition at line 265 of file pcb_tool.cpp.

References COMMIT::Add().

Referenced by PCB_TOOL::doInteractiveItemPlacement().

266 {
267  aCommit.Add( aItem );
268 }
COMMIT & Add(EDA_ITEM *aItem)
Adds a new item to the model
Definition: commit.h:78
void INTERACTIVE_PLACER_BASE::SnapItem ( BOARD_ITEM aItem)
virtual

Definition at line 260 of file pcb_tool.cpp.

Referenced by PCB_TOOL::doInteractiveItemPlacement().

261 {
262  // Base implementation performs no snapping
263 }

Member Data Documentation

BOARD* INTERACTIVE_PLACER_BASE::m_board

Definition at line 59 of file pcb_tool.h.

Referenced by PCB_TOOL::doInteractiveItemPlacement().

PCB_EDIT_FRAME* INTERACTIVE_PLACER_BASE::m_frame

Definition at line 58 of file pcb_tool.h.

Referenced by PCB_TOOL::doInteractiveItemPlacement().

int INTERACTIVE_PLACER_BASE::m_modifiers

Definition at line 60 of file pcb_tool.h.

Referenced by PCB_TOOL::doInteractiveItemPlacement().


The documentation for this struct was generated from the following files: