KiCad PCB EDA Suite
|
#include <zones_container.h>
Public Member Functions | |
ZONES_CONTAINER (BOARD *board) | |
~ZONES_CONTAINER () override=default | |
std::vector< std::shared_ptr< MANAGED_ZONE > > | GetManagedZones () 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_zonesCloneMap |
std::unordered_map< ZONE *, std::shared_ptr< ZONE_SETTINGS > > | m_zoneSettings |
std::vector< std::shared_ptr< MANAGED_ZONE > > | m_managedZones |
std::vector< ZONE * > | m_clonedZoneList |
std::vector< ZONE * > | m_originalZoneList |
Definition at line 39 of file zones_container.h.
ZONES_CONTAINER::ZONES_CONTAINER | ( | BOARD * | board | ) |
Definition at line 34 of file zones_container.cpp.
References m_clonedZoneList, m_managedZones, m_zonesCloneMap, and BOARD::Zones().
|
overridedefault |
bool ZONES_CONTAINER::FlushPriorityChange | ( | ) |
Flush the priority change to the cloned ones.
Definition at line 112 of file zones_container.cpp.
References m_managedZones.
Referenced by OnUserConfirmChange().
void ZONES_CONTAINER::FlushZoneSettingsChange | ( | ) |
Flush the zone settings change to the cloned ones.
Definition at line 103 of file zones_container.cpp.
References m_managedZones, and m_zoneSettings.
Referenced by OnUserConfirmChange().
|
inline |
Adapter for the zone filler ,zones are actually managed the smart ptr.
Definition at line 56 of file zones_container.h.
References m_clonedZoneList.
|
inline |
Definition at line 45 of file zones_container.h.
References m_managedZones.
|
inline |
Used for restoring the zones in the board after refilling.
Definition at line 62 of file zones_container.h.
References m_originalZoneList.
std::shared_ptr< ZONE_SETTINGS > ZONES_CONTAINER::GetZoneSettings | ( | ZONE * | zone | ) |
Definition at line 65 of file zones_container.cpp.
References m_zoneSettings.
Referenced by PANEL_ZONE_PROPERTIES::ActivateSelectedZone().
|
overridevirtual |
Implements ZONE_MANAGEMENT_BASE.
Definition at line 77 of file zones_container.cpp.
References FlushPriorityChange(), FlushZoneSettingsChange(), ZONE::GetFilledPolysList(), ZONE::GetLayerSet(), m_zonesCloneMap, and LSET::RunOnLayers().
|
private |
Definition at line 81 of file zones_container.h.
Referenced by GetClonedZoneList(), and ZONES_CONTAINER().
|
private |
Definition at line 80 of file zones_container.h.
Referenced by FlushPriorityChange(), FlushZoneSettingsChange(), GetManagedZones(), and ZONES_CONTAINER().
|
private |
Definition at line 82 of file zones_container.h.
Referenced by GetOriginalZoneList().
Definition at line 78 of file zones_container.h.
Referenced by OnUserConfirmChange(), and ZONES_CONTAINER().
|
private |
Definition at line 79 of file zones_container.h.
Referenced by FlushZoneSettingsChange(), and GetZoneSettings().