KiCad PCB EDA Suite
|
#include <zones_container.h>
Public Member Functions | |
ZONES_CONTAINER (BOARD *board) | |
~ZONES_CONTAINER () override | |
std::vector< std::shared_ptr< ZONE_PRIORITY_CONTAINER > > | GetZonesPriorityContainers () const |
std::shared_ptr< ZONE_SETTINGS > | GetZoneSettings (ZONE *zone) |
std::vector< ZONE * > & | GetClonedZoneList () |
Adapter for the zone filler ,zones are actually managed the smart ptr. | |
std::vector< ZONE * > & | GetOriginalZoneList () |
Used for restoring the zones in the board after refilling. | |
void | FlushZoneSettingsChange () |
Flush the zone settings change to the cloned ones. | |
bool | FlushPriorityChange () |
Flush the priority change to the cloned ones. | |
void | OnUserConfirmChange () override |
Private Attributes | |
std::unordered_map< ZONE *, std::shared_ptr< ZONE > > | m_zonesColoneMap |
std::unordered_map< ZONE *, std::shared_ptr< ZONE_SETTINGS > > | m_zoneSettings |
std::vector< std::shared_ptr< ZONE_PRIORITY_CONTAINER > > | m_zonesPriorityContainer |
std::vector< ZONE * > | m_clonedZoneList |
std::vector< ZONE * > | m_originalZoneList |
Definition at line 37 of file zones_container.h.
ZONES_CONTAINER::ZONES_CONTAINER | ( | BOARD * | board | ) |
Definition at line 34 of file zones_container.cpp.
References IsCopperLayer(), m_clonedZoneList, m_zonesColoneMap, m_zonesPriorityContainer, and BOARD::Zones().
|
overridedefault |
bool ZONES_CONTAINER::FlushPriorityChange | ( | ) |
Flush the priority change to the cloned ones.
Definition at line 102 of file zones_container.cpp.
References m_zonesPriorityContainer.
Referenced by OnUserConfirmChange().
void ZONES_CONTAINER::FlushZoneSettingsChange | ( | ) |
Flush the zone settings change to the cloned ones.
Definition at line 93 of file zones_container.cpp.
References m_zoneSettings, and m_zonesPriorityContainer.
Referenced by OnUserConfirmChange().
|
inline |
Adapter for the zone filler ,zones are actually managed the smart ptr.
Definition at line 54 of file zones_container.h.
References m_clonedZoneList.
|
inline |
Used for restoring the zones in the board after refilling.
Definition at line 60 of file zones_container.h.
References m_originalZoneList.
std::shared_ptr< ZONE_SETTINGS > ZONES_CONTAINER::GetZoneSettings | ( | ZONE * | zone | ) |
Definition at line 71 of file zones_container.cpp.
References m_zoneSettings.
Referenced by PANEL_ZONE_PROPERTIES::ActivateSelectedZone().
|
inline |
Definition at line 43 of file zones_container.h.
References m_zonesPriorityContainer.
|
overridevirtual |
Implements ZONE_MANAGEMENT_BASE.
Definition at line 82 of file zones_container.cpp.
References FlushPriorityChange(), FlushZoneSettingsChange(), and m_zonesColoneMap.
|
private |
Definition at line 79 of file zones_container.h.
Referenced by GetClonedZoneList(), and ZONES_CONTAINER().
|
private |
Definition at line 80 of file zones_container.h.
Referenced by GetOriginalZoneList().
Definition at line 76 of file zones_container.h.
Referenced by OnUserConfirmChange(), and ZONES_CONTAINER().
|
private |
Definition at line 77 of file zones_container.h.
Referenced by FlushZoneSettingsChange(), and GetZoneSettings().
|
private |
Definition at line 78 of file zones_container.h.
Referenced by FlushPriorityChange(), FlushZoneSettingsChange(), GetZonesPriorityContainers(), and ZONES_CONTAINER().