KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LAYER_REMAPPABLE_PLUGIN Class Reference

Plugin class for import plugins that support remappable layers. More...

#include <plugin_common_layer_mapping.h>

Inheritance diagram for LAYER_REMAPPABLE_PLUGIN:
PCB_IO_CADSTAR_ARCHIVE PCB_IO_EAGLE PCB_IO_IPC2581

Public Member Functions

virtual void RegisterLayerMappingCallback (LAYER_MAPPING_HANDLER aLayerMappingHandler)
 Register a different handler to be called when mapping of input layers to KiCad layers occurs. More...
 
virtual ~LAYER_REMAPPABLE_PLUGIN ()=default
 

Protected Attributes

LAYER_MAPPING_HANDLER m_layer_mapping_handler
 Callback to get layer mapping. More...
 

Detailed Description

Plugin class for import plugins that support remappable layers.

Definition at line 61 of file plugin_common_layer_mapping.h.

Constructor & Destructor Documentation

◆ ~LAYER_REMAPPABLE_PLUGIN()

virtual LAYER_REMAPPABLE_PLUGIN::~LAYER_REMAPPABLE_PLUGIN ( )
virtualdefault

Member Function Documentation

◆ RegisterLayerMappingCallback()

virtual void LAYER_REMAPPABLE_PLUGIN::RegisterLayerMappingCallback ( LAYER_MAPPING_HANDLER  aLayerMappingHandler)
inlinevirtual

Register a different handler to be called when mapping of input layers to KiCad layers occurs.

The function is marked as virtual, so the plugins can implement extra logic (e.g., enable warnings or checks)

Parameters
aLayerMappingHandler

Reimplemented in PCB_IO_CADSTAR_ARCHIVE.

Definition at line 73 of file plugin_common_layer_mapping.h.

References m_layer_mapping_handler.

Referenced by PCB_EDIT_FRAME::OpenProjectFiles(), PCB_IO_CADSTAR_ARCHIVE::PCB_IO_CADSTAR_ARCHIVE(), PCB_IO_EAGLE::PCB_IO_EAGLE(), and PCB_IO_CADSTAR_ARCHIVE::RegisterLayerMappingCallback().

Member Data Documentation

◆ m_layer_mapping_handler

LAYER_MAPPING_HANDLER LAYER_REMAPPABLE_PLUGIN::m_layer_mapping_handler
protected

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