KiCad PCB EDA Suite
|
#include <panel_zone_gal.h>
Public Types | |
enum | GAL_TYPE { GAL_TYPE_UNKNOWN = -1 , GAL_TYPE_NONE = 0 , GAL_TYPE_OPENGL , GAL_TYPE_CAIRO , GAL_TYPE_LAST } |
Public Member Functions | |
PANEL_ZONE_GAL (BOARD *aPcb, wxWindow *aParentWindow, KIGFX::GAL_DISPLAY_OPTIONS &aOptions, wxWindowID aWindowId=0, const wxPoint &aPosition=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, GAL_TYPE aGalType=GAL_TYPE_OPENGL) | |
~PANEL_ZONE_GAL () override | |
const wxSize | GetPageSizeIU () const |
void | ZoomFitScreen () |
BOX2I | GetBoardBoundingBox (bool aBoardEdgesOnly) const |
const BOX2I | GetDocumentExtents (bool aIncludeAllVisible=true) const |
bool | OnLayerSelected (int aLayer) |
Show the zone painting on layer. | |
int | GetLayer () const |
void | ActivateSelectedZone (ZONE *aZone) override |
ZONE * | GetZone () const |
void | DisplayBoard (BOARD *aBoard, PROGRESS_REPORTER *aReporter=nullptr) |
Add all items from the current board to the VIEW, so they can be displayed by GAL. | |
void | SetDrawingSheet (DS_PROXY_VIEW_ITEM *aDrawingSheet) |
Sets (or updates) drawing-sheet used by the draw panel. | |
DS_PROXY_VIEW_ITEM * | GetDrawingSheet () const |
void | UpdateColors () |
Update the color settings in the painter and GAL. | |
virtual void | SetHighContrastLayer (int aLayer) override |
SetHighContrastLayer(), with some extra smarts for PCB. | |
void | SetHighContrastLayer (PCB_LAYER_ID aLayer) |
Move the selected layer to the top, so it is displayed above all others. | |
virtual void | SetTopLayer (int aLayer) override |
SetTopLayer(), with some extra smarts for PCB. | |
void | SetTopLayer (PCB_LAYER_ID aLayer) |
void | SyncLayersVisibility (const BOARD *aBoard) |
Update "visibility" property of each layer of a given BOARD. | |
void | GetMsgPanelInfo (EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override |
Called when the window is shown for the first time. | |
void | OnShow () override |
Called when the window is shown for the first time. | |
bool | SwitchBackend (GAL_TYPE aGalType) override |
Force refresh of the ratsnest visual representation. | |
void | RedrawRatsnest () |
Return the bounding box of the view that should be used if model is not valid. | |
BOX2I | GetDefaultViewBBox () const override |
Return the bounding box of the view that should be used if model is not valid. | |
virtual KIGFX::PCB_VIEW * | GetView () const override |
Return a pointer to the #VIEW instance used in the panel. | |
void | SetFocus () override |
bool | StatusPopupHasFocus () |
void | SetStatusPopup (wxWindow *aPopup) |
GAL_TYPE | GetBackend () const |
Return the type of backend currently used by GAL canvas. | |
KIGFX::GAL * | GetGAL () const |
Return a pointer to the GAL instance used in the panel. | |
KIGFX::VIEW_CONTROLS * | GetViewControls () const |
Return a pointer to the #VIEW_CONTROLS instance used in the panel. | |
virtual void | Refresh (bool aEraseBackground=true, const wxRect *aRect=nullptr) override |
void | ForceRefresh () |
Force a redraw. | |
void | RequestRefresh () |
Make sure a refresh gets done on the next idle event if it hasn't already. | |
void | SetEventDispatcher (TOOL_DISPATCHER *aEventDispatcher) |
Set a dispatcher that processes events and forwards them to tools. | |
void | StartDrawing () |
Begin drawing if it was stopped previously. | |
void | StopDrawing () |
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called. | |
EDA_DRAW_FRAME * | GetParentEDAFrame () const |
Returns parent EDA_DRAW_FRAME, if available or NULL otherwise. | |
bool | IsDialogPreview () const |
void | SetStealsFocus (bool aStealsFocus) |
Set whether focus is taken on certain events (mouseover, keys, etc). | |
void | SetCurrentCursor (KICURSOR aCursor) |
Set the current cursor shape for this panel. | |
void | OnEvent (wxEvent &aEvent) |
Used to forward events to the canvas from popups, etc. | |
bool | DoRePaint () |
Repaint the canvas, and fix scrollbar cursors. | |
std::shared_ptr< KIGFX::VIEW_OVERLAY > | DebugOverlay () |
Create an overlay for rendering debug graphics. | |
void | ClearDebugOverlay () |
Clear the contents of the debug overlay and removes it from the VIEW. | |
void | OnZoneSelectionChanged (ZONE *aZone) |
Inform the subscriber about the zone selection change. | |
ZONE * | GetSelectedZone () const |
Static Public Member Functions | |
static KIGFX::VC_SETTINGS | GetVcSettings () |
Gets a populated View Controls settings object dervived from our program settings. | |
Public Attributes | |
bool | m_MouseCapturedLost |
used on wxMSW: true after a wxEVT_MOUSE_CAPTURE_LOST was received false after the mouse is recaptured. | |
std::unique_ptr< PROF_COUNTER > | m_PaintEventCounter |
Static Public Attributes | |
static constexpr GAL_TYPE | GAL_FALLBACK = GAL_TYPE_CAIRO |
Protected Member Functions | |
void | setDefaultLayerOrder () |
< Reassign layer order to the initial settings. | |
void | setDefaultLayerDeps () |
virtual void | onPaint (wxPaintEvent &WXUNUSED(aEvent)) |
void | onSize (wxSizeEvent &aEvent) |
void | onEnter (wxMouseEvent &aEvent) |
void | onLostFocus (wxFocusEvent &aEvent) |
void | onIdle (wxIdleEvent &aEvent) |
void | onRefreshTimer (wxTimerEvent &aEvent) |
void | onShowTimer (wxTimerEvent &aEvent) |
Protected Attributes | |
std::unique_ptr< DS_PROXY_VIEW_ITEM > | m_drawingSheet |
Currently used drawing-sheet. | |
std::unique_ptr< RATSNEST_VIEW_ITEM > | m_ratsnest |
Ratsnest view item. | |
wxWindow * | m_parent |
Pointer to the parent window. | |
EDA_DRAW_FRAME * | m_edaFrame |
Parent EDA_DRAW_FRAME (if available) | |
wxLongLong | m_lastRepaintStart |
Timestamp of the last repaint start. | |
wxLongLong | m_lastRepaintEnd |
Timestamp of the last repaint end. | |
wxTimer | m_refreshTimer |
Timer to prevent too-frequent refreshing. | |
std::mutex | m_refreshMutex |
Blocks multiple calls to the draw. | |
bool | m_drawing |
True if GAL is currently redrawing the view. | |
bool | m_drawingEnabled |
Flag that determines if VIEW may use GAL for redrawing the screen. | |
bool | m_needIdleRefresh |
True when canvas needs to be refreshed from idle handler. | |
wxTimer | m_onShowTimer |
Timer used to execute OnShow() when the window finally appears on the screen. | |
KIGFX::GAL * | m_gal |
Interface for drawing objects on a 2D-surface. | |
KIGFX::VIEW * | m_view |
Stores view settings (scale, center, etc.) and items to be drawn. | |
std::unique_ptr< KIGFX::PAINTER > | m_painter |
Contains information about how to draw items using GAL. | |
KIGFX::WX_VIEW_CONTROLS * | m_viewControls |
Control for VIEW (moving, zooming, etc.) | |
GAL_TYPE | m_backend |
Currently used GAL. | |
KIGFX::GAL_DISPLAY_OPTIONS & | m_options |
TOOL_DISPATCHER * | m_eventDispatcher |
Processes and forwards events to tools. | |
bool | m_lostFocus |
Flag to indicate that focus should be regained on the next mouse event. | |
bool | m_stealsFocus |
Flag to indicate whether the panel should take focus at certain times (when moused over, and on various mouse/key events) | |
wxWindow * | m_statusPopup |
std::shared_ptr< KIGFX::VIEW_OVERLAY > | m_debugOverlay |
Optional overlay for drawing transient debug objects. | |
Private Attributes | |
BOARD * | m_pcb |
int | m_layer |
std::unique_ptr< BOARD_EDGES_BOUNDING_ITEM > | m_pcb_bounding_box |
ZONE * | m_zone |
Definition at line 38 of file panel_zone_gal.h.
|
inherited |
Definition at line 63 of file class_draw_panel_gal.h.
PANEL_ZONE_GAL::PANEL_ZONE_GAL | ( | BOARD * | aPcb, |
wxWindow * | aParentWindow, | ||
KIGFX::GAL_DISPLAY_OPTIONS & | aOptions, | ||
wxWindowID | aWindowId = 0 , |
||
const wxPoint & | aPosition = wxDefaultPosition , |
||
const wxSize & | aSize = wxDefaultSize , |
||
GAL_TYPE | aGalType = GAL_TYPE_OPENGL |
||
) |
Definition at line 61 of file panel_zone_gal.cpp.
References KIGFX::VIEW::Add(), DRAW_ORDER_BOARD_BOUNDING, FRAME_FOOTPRINT_PREVIEW, ZONE_MANAGER_PREFERENCE::GetCanvasBackgroundColor(), EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_painter, m_pcb_bounding_box, EDA_DRAW_PANEL_GAL::m_view, KIGFX::VIEW::SetPainter(), EDA_DRAW_PANEL_GAL::StartDrawing(), PCB_DRAW_PANEL_GAL::UpdateColors(), and KIGFX::VIEW::UseDrawPriority().
|
override |
Definition at line 83 of file panel_zone_gal.cpp.
|
overridevirtual |
Implements ZONE_SELECTION_CHANGE_NOTIFIER.
Definition at line 125 of file panel_zone_gal.cpp.
References KIGFX::VIEW::Add(), DRAW_ORDER_ZONE, ZONE::GetFirstLayer(), EDA_DRAW_PANEL_GAL::m_view, m_zone, OnLayerSelected(), Refresh(), and KIGFX::VIEW::Remove().
Referenced by PANE_ZONE_VIEWER::ActivateSelectedZone().
|
inherited |
Clear the contents of the debug overlay and removes it from the VIEW.
Definition at line 692 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_debugOverlay, EDA_DRAW_PANEL_GAL::m_view, and KIGFX::VIEW::Remove().
|
inherited |
Create an overlay for rendering debug graphics.
Definition at line 680 of file draw_panel_gal.cpp.
References KIGFX::VIEW::Add(), EDA_DRAW_PANEL_GAL::m_debugOverlay, and EDA_DRAW_PANEL_GAL::m_view.
|
inherited |
Add all items from the current board to the VIEW, so they can be displayed by GAL.
aBoard | is the PCB to be loaded. |
Definition at line 265 of file pcb_draw_panel_gal.cpp.
References KIGFX::VIEW::Add(), BOARD::CacheTriangulation(), KIGFX::VIEW::Clear(), BOARD::Drawings(), BOARD::Footprints(), BOARD::Generators(), BOARD::GetConnectivity(), BOARD::GetFileName(), BOARD::IsFootprintHolder(), PCB_DRAW_PANEL_GAL::m_drawingSheet, PCB_DRAW_PANEL_GAL::m_ratsnest, EDA_DRAW_PANEL_GAL::m_view, BOARD::Markers(), TO_UTF8, BOARD::Tracks(), and BOARD::Zones().
Referenced by PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PCB_EDIT_FRAME::RebuildAndRefresh(), PCB_BASE_EDIT_FRAME::SetBoard(), DISPLAY_FOOTPRINTS_FRAME::updateView(), FOOTPRINT_EDIT_FRAME::UpdateView(), FOOTPRINT_VIEWER_FRAME::updateView(), and FOOTPRINT_WIZARD_FRAME::updateView().
|
inherited |
Repaint the canvas, and fix scrollbar cursors.
Usually called by a OnPaint event.
Because it does not use a wxPaintDC, it can be called outside a wxPaintEvent.
Definition at line 197 of file draw_panel_gal.cpp.
References _, KIGFX::GAL::ClearScreen(), KIGFX::VIEW::ClearTargets(), DisplayErrorMessage(), DisplayInfoMessage(), KIGFX::GAL::DrawCursor(), KIGFX::GAL::DrawGrid(), EDA_DRAW_PANEL_GAL::GAL_FALLBACK, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, KIGFX::RENDER_SETTINGS::GetBackgroundColor(), KIGFX::VIEW::GetCenter(), KIGFX::RENDER_SETTINGS::GetCursorColor(), KIGFX::WX_VIEW_CONTROLS::GetCursorPosition(), KIGFX::RENDER_SETTINGS::GetGridColor(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), EDA_DRAW_FRAME::GetScreen(), EDA_DRAW_PANEL_GAL::GetView(), KIGFX::GAL::HasTarget(), KIGFX::GAL::IsContextLocked(), EDA_DRAW_PANEL_GAL::IsDialogPreview(), KIGFX::VIEW::IsDirty(), KIGFX::GAL::IsInitialized(), KIGFX::VIEW::IsTargetDirty(), KIGFX::GAL::IsVisible(), KI_TRACE, EDA_DRAW_PANEL_GAL::m_backend, EDA_DRAW_PANEL_GAL::m_drawing, EDA_DRAW_PANEL_GAL::m_drawingEnabled, EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_lastRepaintEnd, EDA_DRAW_PANEL_GAL::m_lastRepaintStart, EDA_DRAW_PANEL_GAL::m_painter, EDA_DRAW_PANEL_GAL::m_parent, EDA_DRAW_PANEL_GAL::m_refreshMutex, BASE_SCREEN::m_ScrollCenter, EDA_DRAW_PANEL_GAL::m_view, EDA_DRAW_PANEL_GAL::m_viewControls, KIGFX::VIEW::MarkDirty(), Pgm(), KIGFX::VIEW::Redraw(), KIGFX::GAL::SetClearColor(), KIGFX::GAL::SetCursorColor(), KIGFX::GAL::SetGridColor(), PROF_TIMER::Start(), EDA_DRAW_PANEL_GAL::StartDrawing(), PROF_TIMER::Stop(), EDA_DRAW_PANEL_GAL::StopDrawing(), EDA_DRAW_PANEL_GAL::SwitchBackend(), KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, PROF_TIMER::to_string(), traceDrawPanel, traceGalProfile, KIGFX::VIEW::UpdateItems(), and KIGFX::WX_VIEW_CONTROLS::UpdateScrollbars().
Referenced by EDA_DRAW_PANEL_GAL::ForceRefresh(), EDA_DRAW_PANEL_GAL::onPaint(), and EDA_DRAW_PANEL_GAL::Refresh().
|
inherited |
Force a redraw.
Definition at line 403 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::DoRePaint(), KIGFX::GAL::IsInitialized(), EDA_DRAW_PANEL_GAL::m_drawingEnabled, EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_refreshTimer, EDA_DRAW_PANEL_GAL::onIdle(), and EDA_DRAW_PANEL_GAL::onPaint().
Referenced by SCH_EDITOR_CONTROL::AssignNetclass(), BOARD_EDITOR_CONTROL::AssignNetclass(), SCH_EDIT_FRAME::CommonSettingsChanged(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), GERBVIEW_FRAME::CommonSettingsChanged(), PL_EDITOR_FRAME::CommonSettingsChanged(), FOOTPRINT_EDIT_FRAME::CommonSettingsChanged(), FOOTPRINT_VIEWER_FRAME::CommonSettingsChanged(), PCB_EDIT_FRAME::CommonSettingsChanged(), DESIGN_BLOCK_PREVIEW_WIDGET::DisplayDesignBlock(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), SYMBOL_PREVIEW_WIDGET::DisplayPart(), SYMBOL_PREVIEW_WIDGET::DisplaySymbol(), PCB_SELECTION_TOOL::doSyncSelection(), PAD_TOOL::ExitPadEditMode(), PCB_SELECTION_TOOL::FindItem(), COMMON_TOOLS::GridOrigin(), SCH_BASE_FRAME::HardRedraw(), SCH_EDIT_FRAME::HardRedraw(), FOOTPRINT_EDIT_FRAME::HardRedraw(), GERBVIEW_SELECTION_TOOL::Main(), PL_SELECTION_TOOL::Main(), PCB_SELECTION_TOOL::Main(), EDA_DRAW_PANEL_GAL::onRefreshTimer(), DESIGN_BLOCK_PREVIEW_WIDGET::onSize(), SYMBOL_PREVIEW_WIDGET::onSize(), SYMBOL_DIFF_WIDGET::onSlider(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), FOOTPRINT_PREVIEW_PANEL::RefreshAll(), PCB_SELECTION_TOOL::RequestSelection(), FOOTPRINT_EDITOR_CONTROL::Save(), FOOTPRINT_EDITOR_CONTROL::SaveAs(), PCB_SELECTION_TOOL::SelectAll(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), NL_SCHEMATIC_PLUGIN_IMPL::SetTransaction(), NL_GERBVIEW_PLUGIN_IMPL::SetTransaction(), NL_PL_EDITOR_PLUGIN_IMPL::SetTransaction(), NL_PCBNEW_PLUGIN_IMPL::SetTransaction(), COMMON_TOOLS::ToggleBoundingBoxes(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataFromWindow(), PCB_SELECTION_TOOL::UnselectAll(), PANEL_EESCHEMA_COLOR_SETTINGS::zoomFitPreview(), PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview(), and PCB_SELECTION_TOOL::zoomFitSelection().
|
inlineinherited |
Return the type of backend currently used by GAL canvas.
Definition at line 114 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_backend.
Referenced by EDA_DRAW_FRAME::CommonSettingsChanged(), EE_INSPECTION_TOOL::constructDiffPanel(), PANEL_SYMBOL_CHOOSER::constructRightPanel(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_PAD_PROPERTIES::prepareCanvas(), SCH_EDITOR_CONTROL::RescueLegacyProject(), SCH_EDITOR_CONTROL::RescueSymbolLibTableProject(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), EDA_DRAW_FRAME::SwitchCanvas(), GERBVIEW_FRAME::UpdateXORLayers(), GERBVIEW_FRAME::~GERBVIEW_FRAME(), PCB_BASE_FRAME::~PCB_BASE_FRAME(), PL_EDITOR_FRAME::~PL_EDITOR_FRAME(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().
BOX2I PANEL_ZONE_GAL::GetBoardBoundingBox | ( | bool | aBoardEdgesOnly | ) | const |
Definition at line 87 of file panel_zone_gal.cpp.
References BOARD::GetBoardEdgesBoundingBox(), BOARD::GetBoundingBox(), BOX2< Vec >::GetHeight(), GetPageSizeIU(), BOX2< Vec >::GetWidth(), m_pcb, BOX2< Vec >::SetEnd(), and BOX2< Vec >::SetOrigin().
Referenced by GetDocumentExtents().
|
overridevirtualinherited |
Return the bounding box of the view that should be used if model is not valid.
For example, the drawing sheet bounding box for an empty PCB
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 631 of file pcb_draw_panel_gal.cpp.
References KIGFX::VIEW::IsLayerVisible(), LAYER_DRAWINGSHEET, PCB_DRAW_PANEL_GAL::m_drawingSheet, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview(), and ZoomFitScreen().
const BOX2I PANEL_ZONE_GAL::GetDocumentExtents | ( | bool | aIncludeAllVisible = true | ) | const |
Definition at line 101 of file panel_zone_gal.cpp.
References Edge_Cuts, GetBoardBoundingBox(), BOARD::IsLayerVisible(), and m_pcb.
Referenced by ZoomFitScreen().
|
inlineinherited |
Definition at line 62 of file pcb_draw_panel_gal.h.
References PCB_DRAW_PANEL_GAL::m_drawingSheet.
Referenced by EDIT_TOOL::Init(), EDIT_TOOL::Properties(), and DRC_TOOL::RunTests().
|
inlineinherited |
Return a pointer to the GAL instance used in the panel.
Definition at line 121 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_gal.
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), FOOTPRINT_EDIT_FRAME::ActivateGalCanvas(), SCH_BASE_FRAME::CommonSettingsChanged(), SYMBOL_VIEWER_FRAME::CommonSettingsChanged(), PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches(), PANEL_PCBNEW_COLOR_SETTINGS::createSwatches(), DESIGN_BLOCK_PREVIEW_WIDGET::DESIGN_BLOCK_PREVIEW_WIDGET(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), GERBVIEW_FRAME::DisplayGridMsg(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), NL_SCHEMATIC_PLUGIN_IMPL::GetModelExtents(), NL_GERBVIEW_PLUGIN_IMPL::GetModelExtents(), NL_PL_EDITOR_PLUGIN_IMPL::GetModelExtents(), NL_PCBNEW_PLUGIN_IMPL::GetModelExtents(), EDA_DRAW_FRAME::GetNearestGridPosition(), EDA_DRAW_FRAME::GetNearestHalfGridPosition(), NL_SCHEMATIC_PLUGIN_IMPL::GetViewExtents(), NL_GERBVIEW_PLUGIN_IMPL::GetViewExtents(), NL_PL_EDITOR_PLUGIN_IMPL::GetViewExtents(), NL_PCBNEW_PLUGIN_IMPL::GetViewExtents(), EDA_DRAW_FRAME::GetZoomLevelIndicator(), EDA_DRAW_FRAME::OnMove(), GERBER_LAYER_WIDGET::OnRenderEnable(), EDA_DRAW_FRAME::OnUpdateSelectZoom(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), PCB_EDIT_FRAME::RebuildAndRefresh(), PCB_BASE_EDIT_FRAME::SetBoard(), GERBVIEW_FRAME::SetGridColor(), PCB_EDIT_FRAME::SetGridColor(), EDA_DRAW_FRAME::SetGridVisibility(), FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), PL_DRAW_PANEL_GAL::SwitchBackend(), SYMBOL_EDIT_FRAME::SwitchCanvas(), FOOTPRINT_EDIT_FRAME::SwitchCanvas(), SYMBOL_DIFF_FRAME::SYMBOL_DIFF_FRAME(), SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET(), ZOOM_MENU::update(), PANEL_EESCHEMA_COLOR_SETTINGS::updatePreview(), PANEL_PCBNEW_COLOR_SETTINGS::updatePreview(), and EDA_DRAW_FRAME::UpdateZoomSelectBox().
|
inline |
Definition at line 62 of file panel_zone_gal.h.
References m_layer.
|
overridevirtualinherited |
Called when the window is shown for the first time.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 519 of file pcb_draw_panel_gal.cpp.
References _, BOARD::Footprints(), GetBoard(), BOARD::GetConnectivity(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), pad, PCB_VIA_T, and BOARD::Tracks().
const wxSize PANEL_ZONE_GAL::GetPageSizeIU | ( | ) | const |
Definition at line 145 of file panel_zone_gal.cpp.
References BOARD::GetPageSettings(), PAGE_INFO::GetSizeIU(), EDA_IU_SCALE::IU_PER_MILS, m_pcb, pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GetBoardBoundingBox().
|
inlineinherited |
Returns parent EDA_DRAW_FRAME, if available or NULL otherwise.
Definition at line 192 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_edaFrame.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), PCB_DRAW_PANEL_GAL::GetMsgPanelInfo(), KIGFX::WX_VIEW_CONTROLS::onMotion(), SCH_DRAW_PANEL::OnShow(), GERBVIEW_DRAW_PANEL_GAL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), EDA_DRAW_PANEL_GAL::onSize(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), and PCB_DRAW_PANEL_GAL::UpdateColors().
|
inlineinherited |
Definition at line 54 of file zone_selection_change_notifier.h.
References ZONE_SELECTION_CHANGE_NOTIFIER::m_zone.
|
staticinherited |
Gets a populated View Controls settings object dervived from our program settings.
Definition at line 702 of file draw_panel_gal.cpp.
References COMMON_SETTINGS::INPUT::auto_pan, COMMON_SETTINGS::INPUT::auto_pan_acceleration, COMMON_SETTINGS::INPUT::center_on_zoom, COMMON_SETTINGS::INPUT::drag_left, COMMON_SETTINGS::INPUT::drag_middle, COMMON_SETTINGS::INPUT::drag_right, COMMON_SETTINGS::INPUT::focus_follow_sch_pcb, PGM_BASE::GetCommonSettings(), COMMON_SETTINGS::INPUT::horizontal_pan, KIGFX::VC_SETTINGS::m_autoPanAcceleration, KIGFX::VC_SETTINGS::m_autoPanSettingEnabled, KIGFX::VC_SETTINGS::m_dragLeft, KIGFX::VC_SETTINGS::m_dragMiddle, KIGFX::VC_SETTINGS::m_dragRight, KIGFX::VC_SETTINGS::m_focusFollowSchPcb, KIGFX::VC_SETTINGS::m_horizontalPan, COMMON_SETTINGS::m_Input, KIGFX::VC_SETTINGS::m_scrollModifierPanH, KIGFX::VC_SETTINGS::m_scrollModifierPanV, KIGFX::VC_SETTINGS::m_scrollModifierZoom, KIGFX::VC_SETTINGS::m_scrollReversePanH, KIGFX::VC_SETTINGS::m_scrollReverseZoom, KIGFX::VC_SETTINGS::m_warpCursor, KIGFX::VC_SETTINGS::m_zoomAcceleration, KIGFX::VC_SETTINGS::m_zoomSpeed, KIGFX::VC_SETTINGS::m_zoomSpeedAuto, Pgm(), COMMON_SETTINGS::INPUT::reverse_scroll_pan_h, COMMON_SETTINGS::INPUT::reverse_scroll_zoom, COMMON_SETTINGS::INPUT::scroll_modifier_pan_h, COMMON_SETTINGS::INPUT::scroll_modifier_pan_v, COMMON_SETTINGS::INPUT::scroll_modifier_zoom, COMMON_SETTINGS::INPUT::zoom_acceleration, COMMON_SETTINGS::INPUT::zoom_speed, and COMMON_SETTINGS::INPUT::zoom_speed_auto.
Referenced by EDA_3D_VIEWER_FRAME::applySettings(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
overridevirtualinherited |
Return a pointer to the #VIEW instance used in the panel.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 730 of file pcb_draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_view.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), FOOTPRINT_EDIT_FRAME::Clear_Pcb(), PCB_EDIT_FRAME::Clear_Pcb(), PCB_BASE_FRAME::CommonSettingsChanged(), FOOTPRINT_EDIT_FRAME::CommonSettingsChanged(), PCB_EDIT_FRAME::CommonSettingsChanged(), DIALOG_PRINT_PCBNEW::createPrintout(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprints(), APPEARANCE_CONTROLS::doApplyLayerPreset(), APPEARANCE_CONTROLS::doApplyViewport(), DRAWING_TOOL::DrawVia(), PCB_EDIT_FRAME::Edit_Zone_Params(), PAD_TOOL::enterPadEditMode(), EVT_GRID_CMD_CELL_CHANGED(), DIALOG_DRC::ExcludeMarker(), PAD_TOOL::ExitPadEditMode(), PCB_SELECTION_TOOL::FindItem(), FOOTPRINT_PREVIEW_PANEL::fitToCurrentFootprint(), PCB_BASE_FRAME::FocusOnItems(), FOOTPRINT_PREVIEW_PANEL::GetBackgroundColor(), FOOTPRINT_PREVIEW_PANEL::GetForegroundColor(), PCB_TUNING_PATTERN::GetPreviewItems(), APPEARANCE_CONTROLS::getVisibleLayers(), APPEARANCE_CONTROLS::getVisibleObjects(), PCB_BASE_FRAME::HideSolderMask(), PCB_NET_INSPECTOR_PANEL::highlightSelectedNets(), PCB_EDIT_FRAME::ImportSpecctraSession(), DISPLAY_FOOTPRINTS_FRAME::InitDisplay(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), PCB_EDIT_FRAME::LoadProjectSettings(), PCB_BASE_FRAME::LoadSettings(), NL_PCBNEW_PLUGIN_IMPL::NL_PCBNEW_PLUGIN_IMPL(), PCB_EDIT_FRAME::onBoardLoaded(), DIALOG_PAD_PROPERTIES::onChangePadMode(), PCB_NET_INSPECTOR_PANEL::onClearHighlighting(), APPEARANCE_CONTROLS::OnColorSwatchChanged(), PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet(), DIALOG_DRC::OnDRCItemRClick(), APPEARANCE_CONTROLS::onLayerVisibilityToggled(), APPEARANCE_CONTROLS::onNetclassColorChanged(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::onNetColorMode(), PCB_EDIT_FRAME::OnNetlistChanged(), PCB_NET_INSPECTOR_PANEL::OnNetsListContextMenu(), APPEARANCE_CONTROLS::onObjectVisibilityChanged(), PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet(), APPEARANCE_CONTROLS::onViewportChanged(), BOARD_EDITOR_CONTROL::PageSettings(), BOARD_EDITOR_CONTROL::PlaceFootprint(), DIALOG_PAD_PROPERTIES::prepareCanvas(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), DIALOG_BOARD_REANNOTATE::ReannotateBoard(), NET_GRID_TABLE::Rebuild(), PCB_EDIT_FRAME::RebuildAndRefresh(), DIALOG_PAD_PROPERTIES::redraw(), PCB_EDIT_FRAME::redrawNetnames(), ZONE_FILLER_TOOL::refresh(), FOOTPRINT_PREVIEW_PANEL::RefreshAll(), refreshCallback(), DISPLAY_FOOTPRINTS_FRAME::ReloadFootprint(), FOOTPRINT_PREVIEW_PANEL::renderFootprint(), PCB_EDIT_FRAME::ResolveDRCExclusions(), DIALOG_FOOTPRINT_CHECKER::runChecks(), PCB_EDIT_FRAME::SaveProjectLocalSettings(), PCB_EDIT_FRAME::saveProjectSettings(), DISPLAY_FOOTPRINTS_FRAME::SaveSettings(), FOOTPRINT_VIEWER_FRAME::SaveSettings(), NETS_SEARCH_HANDLER::SelectItems(), RATSNEST_SEARCH_HANDLER::SelectItems(), PCB_EDIT_FRAME::SetActiveLayer(), PCB_BASE_FRAME::SetBoard(), PCB_BASE_EDIT_FRAME::SetBoard(), PCB_BASE_FRAME::SetDisplayOptions(), PCB_EDIT_FRAME::SetElementVisibility(), APPEARANCE_CONTROLS::SetLayerVisible(), APPEARANCE_CONTROLS::SetObjectVisible(), PCB_BASE_FRAME::SetPlotSettings(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), APPEARANCE_CONTROLS::setVisibleLayers(), APPEARANCE_CONTROLS::setVisibleObjects(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), PCB_BASE_EDIT_FRAME::ShowReferenceImagePropertiesDialog(), PCB_BASE_FRAME::ShowSolderMask(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataFromWindow(), APPEARANCE_CONTROLS::UpdateDisplayOptions(), BOARD_NETLIST_UPDATER::updateFootprintParameters(), NET_GRID_TABLE::updateNetColor(), PANEL_PCBNEW_COLOR_SETTINGS::updatePreview(), PCB_EDIT_FRAME::UpdateUserInterface(), GLOBAL_EDIT_TOOL::ZonesManager(), PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview(), DISPLAY_FOOTPRINTS_FRAME::~DISPLAY_FOOTPRINTS_FRAME(), FOOTPRINT_PREVIEW_PANEL::~FOOTPRINT_PREVIEW_PANEL(), FOOTPRINT_VIEWER_FRAME::~FOOTPRINT_VIEWER_FRAME(), and PCB_BASE_EDIT_FRAME::~PCB_BASE_EDIT_FRAME().
|
inlineinherited |
Return a pointer to the #VIEW_CONTROLS instance used in the panel.
Definition at line 135 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_viewControls.
Referenced by PCB_BASE_FRAME::ActivateGalCanvas(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), EDA_DRAW_FRAME::CommonSettingsChanged(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), EVT_GRID_CMD_CELL_CHANGED(), EDA_DRAW_FRAME::FocusOnLocation(), NL_SCHEMATIC_PLUGIN_IMPL::GetPointerPosition(), NL_GERBVIEW_PLUGIN_IMPL::GetPointerPosition(), NL_PL_EDITOR_PLUGIN_IMPL::GetPointerPosition(), NL_PCBNEW_PLUGIN_IMPL::GetPointerPosition(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), DIALOG_MIGRATE_BUSES::onItemSelected(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), DIALOG_PAD_PROPERTIES::prepareCanvas(), SCH_BASE_FRAME::RedrawScreen(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_BASE_FRAME::UpdateStatusBar(), GERBVIEW_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), PL_EDITOR_FRAME::UpdateStatusBar(), DIALOG_IMPORT_NETLIST::~DIALOG_IMPORT_NETLIST(), and DIALOG_UPDATE_PCB::~DIALOG_UPDATE_PCB().
|
inline |
Definition at line 66 of file panel_zone_gal.h.
References m_zone.
|
inlineinherited |
Definition at line 194 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_edaFrame, and EDA_DRAW_PANEL_GAL::m_parent.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), PCB_DRAW_PANEL_GAL::OnShow(), and PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL().
|
protectedinherited |
Definition at line 607 of file draw_panel_gal.cpp.
References KIUI::IsInputControlFocused(), KIUI::IsModalDialogFocused(), KIPLATFORM::UI::IsWindowActive(), EDA_DRAW_PANEL_GAL::m_edaFrame, EDA_DRAW_PANEL_GAL::m_stealsFocus, and EDA_DRAW_PANEL_GAL::SetFocus().
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
inherited |
Used to forward events to the canvas from popups, etc.
Definition at line 579 of file draw_panel_gal.cpp.
References TOOL_DISPATCHER::DispatchWxEvent(), KIUI::IsInputControlFocused(), KIUI::IsModalDialogFocused(), KIPLATFORM::UI::IsWindowActive(), EDA_DRAW_PANEL_GAL::m_edaFrame, EDA_DRAW_PANEL_GAL::m_eventDispatcher, EDA_DRAW_PANEL_GAL::m_lastRepaintEnd, EDA_DRAW_PANEL_GAL::m_lastRepaintStart, EDA_DRAW_PANEL_GAL::m_lostFocus, EDA_DRAW_PANEL_GAL::m_stealsFocus, Refresh(), EDA_DRAW_PANEL_GAL::RequestRefresh(), and EDA_DRAW_PANEL_GAL::SetFocus().
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), HOTKEY_CYCLE_POPUP::HOTKEY_CYCLE_POPUP(), STATUS_POPUP::onCharHook(), and HOTKEY_CYCLE_POPUP::TryBefore().
|
protectedinherited |
Definition at line 632 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_needIdleRefresh, and Refresh().
Referenced by EDA_DRAW_PANEL_GAL::ForceRefresh(), and EDA_DRAW_PANEL_GAL::StopDrawing().
bool PANEL_ZONE_GAL::OnLayerSelected | ( | int | aLayer | ) |
Show the zone painting on layer.
aLayer | The expected layer |
Definition at line 109 of file panel_zone_gal.cpp.
References Edge_Cuts, m_layer, EDA_DRAW_PANEL_GAL::m_view, PCB_LAYER_ID_COUNT, Refresh(), and KIGFX::VIEW::SetLayerVisible().
Referenced by ActivateSelectedZone(), and PANE_ZONE_VIEWER::OnNotebook().
|
protectedinherited |
Definition at line 622 of file draw_panel_gal.cpp.
References KIGFX::WX_VIEW_CONTROLS::CancelDrag(), EDA_DRAW_PANEL_GAL::m_lostFocus, and EDA_DRAW_PANEL_GAL::m_viewControls.
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
protectedvirtualinherited |
Reimplemented in SCH_DRAW_PANEL, and SCH_PREVIEW_PANEL.
Definition at line 191 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::DoRePaint().
Referenced by EDA_DRAW_PANEL_GAL::ForceRefresh(), SCH_DRAW_PANEL::onPaint(), SCH_PREVIEW_PANEL::onPaint(), and EDA_DRAW_PANEL_GAL::StopDrawing().
|
protectedinherited |
Definition at line 644 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::ForceRefresh().
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
overridevirtualinherited |
Called when the window is shown for the first time.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 559 of file pcb_draw_panel_gal.cpp.
References PCB_BASE_FRAME::ActivateGalCanvas(), DisplayError(), EDA_DRAW_PANEL_GAL::GAL_FALLBACK, PCB_BASE_FRAME::GetActiveLayer(), PCB_BASE_FRAME::GetDisplayOptions(), KIGFX::VIEW::GetPainter(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), PCB_BASE_FRAME::GetPcbNewSettings(), KIGFX::PCB_PAINTER::GetSettings(), EDA_DRAW_PANEL_GAL::IsDialogPreview(), KIGFX::PCB_RENDER_SETTINGS::LoadDisplayOptions(), EDA_DRAW_PANEL_GAL::m_backend, PCBNEW_SETTINGS::m_Display, KIGFX::PCB_RENDER_SETTINGS::m_ForceShowFieldsWhenFPSelected, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ForceShowFieldsWhenFPSelected, EDA_DRAW_PANEL_GAL::m_view, PCB_DRAW_PANEL_GAL::SetTopLayer(), PCB_DRAW_PANEL_GAL::SwitchBackend(), and KIGFX::VIEW::UpdateItems().
|
protectedinherited |
Definition at line 650 of file draw_panel_gal.cpp.
References KIGFX::GAL::IsInitialized(), KIGFX::GAL::IsVisible(), EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_onShowTimer, and EDA_DRAW_PANEL_GAL::OnShow().
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Definition at line 352 of file draw_panel_gal.cpp.
References EDA_BASE_FRAME::GetInfoBar(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), KIGFX::GAL::GetScreenPixelSize(), KIGFX::GAL::IsContextLocked(), WX_INFOBAR::IsLocked(), EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_view, KIGFX::VIEW::MarkTargetDirty(), KIGFX::GAL::ResizeScreen(), KIGFX::VIEW::SetCenter(), KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, ToVECTOR2I(), and KIGFX::VIEW::ToWorld().
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
inlineinherited |
Inform the subscriber about the zone selection change.
aZone | The current zone selection from the publisher |
Definition at line 46 of file zone_selection_change_notifier.h.
References ZONE_SELECTION_CHANGE_NOTIFIER::ActivateSelectedZone(), and ZONE_SELECTION_CHANGE_NOTIFIER::m_zone.
|
inherited |
Return the bounding box of the view that should be used if model is not valid.
For example, the drawing sheet bounding box for an empty PCB
Definition at line 624 of file pcb_draw_panel_gal.cpp.
References PCB_DRAW_PANEL_GAL::m_ratsnest, EDA_DRAW_PANEL_GAL::m_view, and KIGFX::VIEW::Update().
Referenced by BOARD_INSPECTION_TOOL::doHideRatsnestNet(), PCB_EDIT_FRAME::HardRedraw(), DIALOG_DRC::OnDRCItemRClick(), APPEARANCE_CONTROLS::onNetclassColorChanged(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::onObjectVisibilityChanged(), BOARD_COMMIT::Push(), PCB_CONTROL::RatsnestModeCycle(), PCB_BASE_FRAME::rebuildConnectivity(), EDIT_TOOL::rebuildConnectivity(), ZONE_FILLER_TOOL::rebuildConnectivity(), APPEARANCE_CONTROLS::showNetclass(), PCB_CONTROL::ToggleRatsnest(), NET_GRID_TABLE::updateNetColor(), and GLOBAL_EDIT_TOOL::ZonesManager().
|
overridevirtualinherited |
Reimplemented in SCH_PREVIEW_PANEL.
Definition at line 396 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::DoRePaint(), and EDA_DRAW_PANEL_GAL::RequestRefresh().
Referenced by PCB_EDIT_FRAME::ActivateGalCanvas(), SCH_EDIT_FRAME::AnnotateSymbols(), GERBVIEW_CONTROL::ClearAllLayers(), FOOTPRINT_WIZARD_FRAME::ClickOnPageList(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), EDIT_TOOL::DeleteItems(), GERBVIEW_CONTROL::DisplayControl(), APPEARANCE_CONTROLS::doApplyLayerPreset(), APPEARANCE_CONTROLS::doApplyViewport(), COMMON_TOOLS::doCenter(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), BOARD_INSPECTION_TOOL::doHideRatsnestNet(), COMMON_TOOLS::doZoomFit(), COMMON_TOOLS::doZoomToPreset(), DRAWING_TOOL::drawArc(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawOneBezier(), DRAWING_TOOL::drawShape(), DRAWING_TOOL::DrawTable(), DRAWING_TOOL::DrawZone(), SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties(), SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextBoxProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), GERBVIEW_FRAME::Erase_Current_DrawLayer(), EE_INSPECTION_TOOL::ExcludeMarker(), PCB_EDIT_FRAME::ExecuteRemoteCommand(), SCH_FIND_REPLACE_TOOL::FindNext(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), PCB_BASE_FRAME::FocusOnItems(), PL_EDITOR_FRAME::GetLayoutFromRedoList(), PL_EDITOR_FRAME::GetLayoutFromUndoList(), PCB_VIEWER_TOOLS::GraphicOutlines(), PL_EDITOR_FRAME::HardRedraw(), GERBVIEW_CONTROL::HighlightControl(), PCB_NET_INSPECTOR_PANEL::highlightSelectedNets(), SCH_EDITOR_CONTROL::ImportFPAssignments(), DISPLAY_FOOTPRINTS_FRAME::InitDisplay(), PCB_CONTROL::InteractiveDelete(), SCH_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), GERBVIEW_FRAME::LoadListOfGerberAndDrillFiles(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), GERBVIEW_CONTROL::LoadZipfile(), EE_POINT_EDITOR::Main(), PL_POINT_EDITOR::Main(), SCH_EDITOR_CONTROL::MarkSimExclusions(), PCB_VIEWER_TOOLS::MeasureTool(), DIALOG_MIGRATE_BUSES::onAcceptClicked(), PROPERTIES_FRAME::OnAcceptPrms(), DIALOG_BOARD_REANNOTATE::OnApplyClick(), DIALOG_INSPECTOR::onCellClicked(), DIALOG_LIB_EDIT_PIN_TABLE::OnCellSelected(), PCB_NET_INSPECTOR_PANEL::onClearHighlighting(), APPEARANCE_CONTROLS::OnColorSwatchChanged(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), GERBER_LAYER_WIDGET::OnLayerColorChange(), APPEARANCE_CONTROLS::OnLayerContextMenu(), GERBER_LAYER_WIDGET::OnLayerSelect(), APPEARANCE_CONTROLS::onLayerVisibilityToggled(), GERBER_LAYER_WIDGET::OnLayerVisible(), DIALOG_GROUP_PROPERTIES::OnMemberSelected(), SCH_EDIT_FRAME::OnModify(), APPEARANCE_CONTROLS::onNetclassColorChanged(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::onNetContextMenu(), PCB_EDIT_FRAME::OnNetlistChanged(), SCH_EDIT_FRAME::onNetNavigatorSelection(), APPEARANCE_CONTROLS::onObjectVisibilityChanged(), DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked(), SIMULATOR_FRAME_UI::onPlotClosed(), GERBER_LAYER_WIDGET::onPopupSelection(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_GROUP_PROPERTIES::OnRemoveMember(), PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet(), GERBER_LAYER_WIDGET::OnRenderColorChange(), GERBER_LAYER_WIDGET::OnRenderEnable(), KIGFX::WX_VIEW_CONTROLS::onScroll(), GERBVIEW_FRAME::OnSelectActiveDCode(), GERBVIEW_FRAME::OnSelectActiveLayer(), PL_EDITOR_FRAME::OnSelectCoordOriginCorner(), EDA_DRAW_FRAME::OnSelectGrid(), DIALOG_CLEANUP_GRAPHICS::OnSelectItem(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnSelectItem(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), PL_EDITOR_FRAME::OnSelectPage(), EDA_DRAW_FRAME::OnSelectZoom(), PROPERTIES_FRAME::OnSetDefaultValues(), SIMULATOR_FRAME::onSimFinished(), DIALOG_UPDATE_FROM_PCB::OnUpdateClick(), GERBVIEW_CONTROL::OpenJobFile(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), GERBVIEW_CONTROL::OpenZipFile(), PCB_VIEWER_TOOLS::PadDisplayMode(), SCH_EDITOR_CONTROL::PageSetup(), ROUTER_TOOL::performRouting(), DRAWING_TOOL::PlaceImportedGraphics(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::PlaceTuningPattern(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), ROUTER_TOOL::prepareInteractive(), PL_EDITOR_FRAME::PrintPage(), PCB_EDIT_FRAME::Process_Special_Functions(), SCH_EDIT_TOOL::Properties(), FOOTPRINT_EDITOR_CONTROL::Properties(), SCH_COMMIT::pushSchEdit(), PCB_CONTROL::RatsnestModeCycle(), PCB_EDIT_FRAME::RebuildAndRefresh(), SYMBOL_EDIT_FRAME::RebuildView(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), FOOTPRINT_WIZARD_FRAME::ReCreatePageList(), SCH_EDITOR_CONTROL::Redo(), DIALOG_PAD_PROPERTIES::redraw(), DIALOG_ERC::redrawDrawPanel(), SCH_BASE_FRAME::RedrawScreen(), ZONE_FILLER_TOOL::refresh(), SCH_PREVIEW_PANEL::Refresh(), refreshCallback(), EDA_DRAW_FRAME::RefreshCanvas(), DIALOG_DRC::refreshEditor(), DIALOG_FOOTPRINT_CHECKER::refreshEditor(), FOOTPRINT_WIZARD_FRAME::RegenerateFootprint(), POSITION_RELATIVE_TOOL::RelativeItemSelectionMove(), DISPLAY_FOOTPRINTS_FRAME::ReloadFootprint(), GERBVIEW_FRAME::RemapLayers(), SCH_EDITOR_CONTROL::RemapSymbols(), EDIT_TOOL::Remove(), SCH_EDITOR_CONTROL::rescueProject(), PCB_BASE_EDIT_FRAME::RestoreCopyFromRedoList(), PCB_BASE_EDIT_FRAME::RestoreCopyFromUndoList(), FOOTPRINT_EDIT_FRAME::RevertFootprint(), PL_EDITOR_FRAME::RollbackFromUndo(), PCB_BASE_EDIT_FRAME::RollbackFromUndo(), SCH_EDIT_FRAME::RollbackSchematicFromUndo(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_SEARCH_HANDLER::SelectItems(), PCB_SEARCH_HANDLER::SelectItems(), NETS_SEARCH_HANDLER::SelectItems(), RATSNEST_SEARCH_HANDLER::SelectItems(), FOOTPRINT_EDIT_FRAME::SelectLayer(), GERBVIEW_FRAME::SetActiveLayer(), FOOTPRINT_EDIT_FRAME::SetActiveLayer(), SYMBOL_EDIT_FRAME::SetCurSymbol(), PCB_BASE_FRAME::SetDisplayOptions(), EDA_DRAW_FRAME::SetGridVisibility(), GERBVIEW_FRAME::SetLayerDrawPrms(), APPEARANCE_CONTROLS::SetObjectVisible(), PCB_BASE_FRAME::SetPlotSettings(), SYMBOL_VIEWER_FRAME::SetSelectedLibrary(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), SYMBOL_EDIT_FRAME::ShowChangedLanguage(), SYMBOL_EDITOR_CONTROL::ShowElectricalTypes(), PCB_EDIT_FRAME::ShowFootprintPropertiesDialog(), APPEARANCE_CONTROLS::showNetclass(), PCB_VIEWER_TOOLS::ShowPadNumbers(), SYMBOL_EDITOR_CONTROL::ShowPinNumbers(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), PCB_BASE_FRAME::SwitchLayer(), PCB_EDIT_FRAME::SwitchLayer(), DIALOG_ERC::testErc(), PCB_VIEWER_TOOLS::TextOutlines(), SCH_EDITOR_CONTROL::ToggleDirectiveLabels(), SCH_EDITOR_CONTROL::ToggleERCErrors(), SCH_EDITOR_CONTROL::ToggleERCExclusions(), SCH_EDITOR_CONTROL::ToggleERCWarnings(), SCH_EDITOR_CONTROL::ToggleHiddenFields(), SYMBOL_EDITOR_CONTROL::ToggleHiddenFields(), SCH_EDITOR_CONTROL::ToggleHiddenPins(), SYMBOL_EDITOR_CONTROL::ToggleHiddenPins(), SCH_EDITOR_CONTROL::ToggleOPCurrents(), SCH_EDITOR_CONTROL::ToggleOPVoltages(), SCH_EDITOR_CONTROL::TogglePinAltIcons(), SYMBOL_EDITOR_CONTROL::TogglePinAltIcons(), PCB_CONTROL::ToggleRatsnest(), PCB_CONTROL::TrackDisplayMode(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), SCH_EDITOR_CONTROL::Undo(), SCH_FIND_REPLACE_TOOL::UpdateFind(), NET_GRID_TABLE::updateNetColor(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), PANEL_PCBNEW_COLOR_SETTINGS::updatePreview(), SYMBOL_VIEWER_FRAME::updatePreviewSymbol(), PCB_CONTROL::ViaDisplayMode(), PCB_CONTROL::ZoneDisplayMode(), DIALOG_GROUP_PROPERTIES::~DIALOG_GROUP_PROPERTIES(), and DIALOG_LIB_EDIT_PIN_TABLE::~DIALOG_LIB_EDIT_PIN_TABLE().
|
inherited |
Make sure a refresh gets done on the next idle event if it hasn't already.
Definition at line 390 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_needIdleRefresh.
Referenced by EDA_DRAW_PANEL_GAL::OnEvent(), and EDA_DRAW_PANEL_GAL::Refresh().
|
inherited |
Set the current cursor shape for this panel.
Definition at line 660 of file draw_panel_gal.cpp.
References DPI_SCALING_COMMON::GetContentScaleFactor(), EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_parent, and KIGFX::GAL::SetNativeCursorStyle().
Referenced by SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), EDIT_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SCH_MOVE_TOOL::doMoveSelection(), DRAWING_TOOL::drawArc(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawOneBezier(), SCH_DRAWING_TOOLS::DrawRuleArea(), SCH_DRAWING_TOOLS::DrawShape(), PL_DRAWING_TOOLS::DrawShape(), DRAWING_TOOL::drawShape(), SCH_DRAWING_TOOLS::DrawSheet(), SCH_DRAWING_TOOLS::DrawTable(), DRAWING_TOOL::DrawTable(), DRAWING_TOOL::DrawZone(), PAD_TOOL::EnumeratePads(), SCH_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SCH_DRAWING_TOOLS::ImportSheet(), PCB_CONTROL::InteractiveDelete(), DRAWING_TOOL::InteractivePlaceWithPreview(), CVPCB_FOOTPRINT_VIEWER_SELECTION_TOOL::Main(), EE_SELECTION_TOOL::Main(), GERBVIEW_SELECTION_TOOL::Main(), PICKER_TOOL::Main(), ZOOM_TOOL::Main(), PL_EDIT_TOOL::Main(), PL_SELECTION_TOOL::Main(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), PCB_VIEWER_TOOLS::MeasureTool(), EE_SELECTION_TOOL::OnIdle(), PCB_SELECTION_TOOL::OnIdle(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), BOARD_EDITOR_CONTROL::PlaceFootprint(), SCH_DRAWING_TOOLS::PlaceImage(), DRAWING_TOOL::PlaceImportedGraphics(), PL_DRAWING_TOOLS::PlaceItem(), DRAWING_TOOL::PlaceReferenceImage(), SCH_DRAWING_TOOLS::PlaceSymbol(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::PlaceTuningPattern(), EE_SELECTION_TOOL::selectMultiple(), PL_SELECTION_TOOL::selectMultiple(), PCB_SELECTION_TOOL::selectMultiple(), DRAWING_TOOL::SetAnchor(), EE_POINT_EDITOR::setEditedPoint(), PL_POINT_EDITOR::setEditedPoint(), SCH_DRAWING_TOOLS::SingleClickPlace(), EDA_DRAW_PANEL_GAL::SwitchBackend(), SCH_DRAWING_TOOLS::TwoClickPlace(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
protectedinherited |
Definition at line 640 of file pcb_draw_panel_gal.cpp.
References BITMAP_LAYER_FOR, GAL_LAYER_ORDER, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, GetNetnameLayer(), IsCopperLayer(), IsNetnameLayer(), IsNonCopperLayer(), LAYER_ANCHOR, LAYER_CONFLICTS_SHADOW, LAYER_DRAWINGSHEET, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPE1, LAYER_DRC_SHAPE2, LAYER_DRC_WARNING, LAYER_GP_OVERLAY, LAYER_GRID, LAYER_LOCKED_ITEM_SHADOW, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_PADS, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, LAYER_VIAS, EDA_DRAW_PANEL_GAL::m_backend, EDA_DRAW_PANEL_GAL::m_view, KIGFX::VIEW::SetLayerDisplayOnly(), KIGFX::VIEW::SetLayerTarget(), KIGFX::VIEW::SetRequired(), KIGFX::TARGET_CACHED, KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, KIGFX::VIEW::VIEW_MAX_LAYERS, and ZONE_LAYER_FOR.
Referenced by PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), and PCB_DRAW_PANEL_GAL::SwitchBackend().
|
protectedinherited |
< Reassign layer order to the initial settings.
Set rendering targets & dependencies for layers.
Definition at line 598 of file pcb_draw_panel_gal.cpp.
References GAL_LAYER_ORDER, LAYER_BITMAP_END, LAYER_BITMAP_START, EDA_DRAW_PANEL_GAL::m_view, KIGFX::VIEW::SetLayerOrder(), KIGFX::VIEW::TOP_LAYER_MODIFIER, and KIGFX::VIEW::VIEW_MAX_LAYERS.
Referenced by PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), and PCB_DRAW_PANEL_GAL::SetTopLayer().
|
inherited |
Sets (or updates) drawing-sheet used by the draw panel.
aDrawingSheet | is the drawing-sheet to be used. The object is then owned by PCB_DRAW_PANEL_GAL. |
Definition at line 306 of file pcb_draw_panel_gal.cpp.
References KIGFX::VIEW::Add(), PCB_DRAW_PANEL_GAL::m_drawingSheet, and EDA_DRAW_PANEL_GAL::m_view.
Referenced by PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems(), and PCB_EDIT_FRAME::SetPageSettings().
|
inherited |
Set a dispatcher that processes events and forwards them to tools.
#DRAW_PANEL_GAL does not take over the ownership. Passing NULL disconnects all event handlers from the #DRAW_PANEL_GAL and parent frame.
aEventDispatcher | is the object that will be used for dispatching events. |
Definition at line 428 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_eventDispatcher.
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), SCH_EDIT_FRAME::doCloseWindow(), FOOTPRINT_EDIT_FRAME::doCloseWindow(), EVT_GRID_CMD_CELL_CHANGED(), SCH_EDIT_FRAME::setupTools(), SYMBOL_EDIT_FRAME::setupTools(), SYMBOL_VIEWER_FRAME::setupTools(), PL_EDITOR_FRAME::setupTools(), and FOOTPRINT_EDIT_FRAME::setupTools().
|
overrideinherited |
Definition at line 183 of file draw_panel_gal.cpp.
References KIPLATFORM::UI::ImeNotifyCancelComposition(), and EDA_DRAW_PANEL_GAL::m_lostFocus.
Referenced by ZONE_CREATE_HELPER::createNewZone(), HOTKEY_CYCLE_POPUP::HOTKEY_CYCLE_POPUP(), EDA_DRAW_PANEL_GAL::onEnter(), KIGFX::WX_VIEW_CONTROLS::onEnter(), EDA_DRAW_PANEL_GAL::OnEvent(), EDA_DRAW_FRAME::OnSelectGrid(), EDA_DRAW_FRAME::OnSelectZoom(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), GERBVIEW_FRAME::SetActiveLayer(), FOOTPRINT_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), ZONE_FILLER_TOOL::singleShotRefocus(), PCB_EDIT_FRAME::ToggleSearch(), and PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event().
|
inlineoverridevirtualinherited |
SetHighContrastLayer(), with some extra smarts for PCB.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 71 of file pcb_draw_panel_gal.h.
References PCB_DRAW_PANEL_GAL::SetHighContrastLayer().
Referenced by FOOTPRINT_EDIT_FRAME::SetActiveLayer(), PCB_EDIT_FRAME::SetActiveLayer(), and PCB_DRAW_PANEL_GAL::SetHighContrastLayer().
|
inherited |
Move the selected layer to the top, so it is displayed above all others.
Definition at line 344 of file pcb_draw_panel_gal.cpp.
References B_Cu, BITMAP_LAYER_FOR, KIGFX::RENDER_SETTINGS::ClearHighContrastLayers(), F_Cu, GetNetnameLayer(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), IsCopperLayer(), LAYER_ANCHOR, LAYER_CONFLICTS_SHADOW, LAYER_CURSOR, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPE1, LAYER_DRC_SHAPE2, LAYER_DRC_WARNING, LAYER_FOOTPRINTS_BK, LAYER_FOOTPRINTS_FR, LAYER_GP_OVERLAY, LAYER_LOCKED_ITEM_SHADOW, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_BK_NETNAMES, LAYER_PAD_FR_NETNAMES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, EDA_DRAW_PANEL_GAL::m_view, KIGFX::RENDER_SETTINGS::SetActiveLayer(), KIGFX::RENDER_SETTINGS::SetLayerIsHighContrast(), PCB_DRAW_PANEL_GAL::SetTopLayer(), KIGFX::VIEW::UpdateAllLayersColor(), and ZONE_LAYER_FOR.
|
inlineinherited |
Definition at line 99 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_statusPopup.
Referenced by EDIT_TOOL::doMoveSelection(), PAD_TOOL::EnumeratePads(), EDIT_TOOL::pickReferencePoint(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), PCB_PICKER_TOOL::SelectItemInteractively(), and PCB_PICKER_TOOL::SelectPointInteractively().
|
inlineinherited |
Set whether focus is taken on certain events (mouseover, keys, etc).
This should be true (and is by default) for any primary canvas, but can be false to make well behaved preview panes and the like.
Definition at line 207 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_stealsFocus.
Referenced by SYMBOL_VIEWER_FRAME::ClickOnSymbolList(), PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches(), DESIGN_BLOCK_PREVIEW_WIDGET::DESIGN_BLOCK_PREVIEW_WIDGET(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), DIALOG_PAD_PROPERTIES::prepareCanvas(), SYMBOL_VIEWER_FRAME::SetSelectedLibrary(), and SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET().
|
inlineoverridevirtualinherited |
SetTopLayer(), with some extra smarts for PCB.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 80 of file pcb_draw_panel_gal.h.
References PCB_DRAW_PANEL_GAL::SetTopLayer().
Referenced by PCB_DRAW_PANEL_GAL::OnShow(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), and PCB_DRAW_PANEL_GAL::SetTopLayer().
|
inherited |
Definition at line 396 of file pcb_draw_panel_gal.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, BITMAP_LAYER_FOR, KIGFX::VIEW::ClearTopLayers(), KIGFX::VIEW::EnableTopLayer(), F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, KIGFX::VIEW::GetLayerOrder(), GetNetnameLayer(), IsBackLayer(), IsCopperLayer(), IsFrontLayer(), LAYER_CONFLICTS_SHADOW, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_SHAPE1, LAYER_DRC_SHAPE2, LAYER_DRC_WARNING, LAYER_GP_OVERLAY, LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_BK_NETNAMES, LAYER_PAD_FR_NETNAMES, LAYER_PAD_HOLEWALLS, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, EDA_DRAW_PANEL_GAL::m_view, NETNAMES_LAYER_INDEX, PCB_LAYER_ID_COUNT, PCB_DRAW_PANEL_GAL::setDefaultLayerOrder(), KIGFX::VIEW::SetLayerOrder(), KIGFX::VIEW::SetTopLayer(), KIGFX::VIEW::UpdateAllLayersOrder(), and ZONE_LAYER_FOR.
|
inherited |
Begin drawing if it was stopped previously.
Definition at line 434 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_refreshTimer.
Referenced by EDA_DRAW_FRAME::ActivateGalCanvas(), GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), EDA_DRAW_PANEL_GAL::DoRePaint(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), PANEL_ZONE_GAL(), DIALOG_PAD_PROPERTIES::prepareCanvas(), DIALOG_PAD_PROPERTIES::redraw(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), and SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL().
|
inlineinherited |
Definition at line 94 of file class_draw_panel_gal.h.
References EDA_DRAW_PANEL_GAL::m_statusPopup.
Referenced by KIGFX::WX_VIEW_CONTROLS::onTimer().
|
inherited |
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called.
Definition at line 441 of file draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_drawingEnabled, EDA_DRAW_PANEL_GAL::m_refreshTimer, EDA_DRAW_PANEL_GAL::onIdle(), and EDA_DRAW_PANEL_GAL::onPaint().
Referenced by SYMBOL_VIEWER_FRAME::doCloseWindow(), GERBVIEW_FRAME::doCloseWindow(), FOOTPRINT_EDIT_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), PCB_EDIT_FRAME::doCloseWindow(), EDA_DRAW_PANEL_GAL::DoRePaint(), DIALOG_PAD_PROPERTIES::OnCancel(), DIALOG_PAD_PROPERTIES::redraw(), EDA_DRAW_PANEL_GAL::SwitchBackend(), DIALOG_FOOTPRINT_CHOOSER::TearDownQuasiModal(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), DISPLAY_FOOTPRINTS_FRAME::~DISPLAY_FOOTPRINTS_FRAME(), EDA_DRAW_PANEL_GAL::~EDA_DRAW_PANEL_GAL(), FOOTPRINT_VIEWER_FRAME::~FOOTPRINT_VIEWER_FRAME(), and FOOTPRINT_WIZARD_FRAME::~FOOTPRINT_WIZARD_FRAME().
|
overridevirtualinherited |
Force refresh of the ratsnest visual representation.
Reimplemented from EDA_DRAW_PANEL_GAL.
Definition at line 615 of file pcb_draw_panel_gal.cpp.
References EDA_DRAW_PANEL_GAL::m_gal, PCB_DRAW_PANEL_GAL::setDefaultLayerDeps(), KIGFX::GAL::SetWorldUnitLength(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
Referenced by PCB_DRAW_PANEL_GAL::OnShow().
|
inherited |
Update "visibility" property of each layer of a given BOARD.
aBoard | contains layers visibility settings to be applied. |
Definition at line 478 of file pcb_draw_panel_gal.cpp.
References GAL_LAYER_ID_END, GAL_LAYER_ID_START, BOARD::IsElementVisible(), BOARD::IsLayerVisible(), LAYER_BITMAP_END, LAYER_BITMAP_START, LAYER_DRC_SHAPE1, LAYER_DRC_SHAPE2, LAYER_GP_OVERLAY, LAYER_MARKER_SHADOWS, LAYER_PAD_HOLEWALLS, LAYER_PAD_PLATEDHOLES, LAYER_RATSNEST, LAYER_SELECT_OVERLAY, LAYER_UI_END, LAYER_UI_START, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, LAYER_ZONE_END, LAYER_ZONE_START, EDA_DRAW_PANEL_GAL::m_view, NETNAMES_LAYER_ID_END, NETNAMES_LAYER_ID_START, PCB_LAYER_ID_COUNT, and KIGFX::VIEW::SetLayerVisible().
Referenced by PCB_BASE_EDIT_FRAME::ActivateGalCanvas(), APPEARANCE_CONTROLS::doApplyLayerPreset(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), API_HANDLER_PCB::handleSetVisibleLayers(), PCB_EDIT_FRAME::onBoardLoaded(), APPEARANCE_CONTROLS::OnLayerContextMenu(), and PCB_EDIT_FRAME::RebuildAndRefresh().
|
inherited |
Update the color settings in the painter and GAL.
Take care of display settings for the given layer to be displayed in high contrast mode.
Definition at line 313 of file pcb_draw_panel_gal.cpp.
References SETTINGS_MANAGER::GetAppSettings(), COLOR_SETTINGS::GetColor(), PCB_BASE_FRAME::GetColorSettings(), SETTINGS_MANAGER::GetColorSettings(), KIGFX::VIEW::GetPainter(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), KIGFX::PAINTER::GetSettings(), PGM_BASE::GetSettingsManager(), LAYER_CURSOR, LAYER_GRID, LAYER_GRID_AXES, KIGFX::PCB_RENDER_SETTINGS::LoadColors(), EDA_DRAW_PANEL_GAL::m_gal, EDA_DRAW_PANEL_GAL::m_view, Pgm(), KIGFX::GAL::SetAxesColor(), KIGFX::GAL::SetCursorColor(), and KIGFX::GAL::SetGridColor().
Referenced by PCB_EDIT_FRAME::ActivateGalCanvas(), PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems(), FOOTPRINT_PREVIEW_PANEL::FOOTPRINT_PREVIEW_PANEL(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), APPEARANCE_CONTROLS::OnColorSwatchChanged(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PANEL_ZONE_GAL(), DIALOG_PAD_PROPERTIES::prepareCanvas(), PCB_BASE_EDIT_FRAME::SetBoard(), DISPLAY_FOOTPRINTS_FRAME::updateView(), FOOTPRINT_EDIT_FRAME::UpdateView(), FOOTPRINT_VIEWER_FRAME::updateView(), and FOOTPRINT_WIZARD_FRAME::updateView().
void PANEL_ZONE_GAL::ZoomFitScreen | ( | ) |
Definition at line 151 of file panel_zone_gal.cpp.
References BOX2< Vec >::Centre(), PCB_DRAW_PANEL_GAL::GetDefaultViewBBox(), GetDocumentExtents(), BOX2< Vec >::GetHeight(), KIGFX::VIEW::GetScale(), BOX2< Vec >::GetSize(), BOX2< Vec >::GetWidth(), EDA_DRAW_PANEL_GAL::m_view, Refresh(), scale, KIGFX::VIEW::SetCenter(), KIGFX::VIEW::SetScale(), KIGFX::VIEW::ToWorld(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
staticconstexprinherited |
Definition at line 75 of file class_draw_panel_gal.h.
Referenced by DESIGN_BLOCK_PREVIEW_WIDGET::DESIGN_BLOCK_PREVIEW_WIDGET(), DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME(), EDA_DRAW_PANEL_GAL::DoRePaint(), EVT_GRID_CMD_CELL_CHANGED(), EVT_UPDATE_UI_RANGE(), SCH_DRAW_PANEL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), EDA_DRAW_FRAME::resolveCanvasType(), FOOTPRINT_EDIT_FRAME::resolveCanvasType(), EDA_DRAW_PANEL_GAL::SwitchBackend(), and SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET().
|
protectedinherited |
Currently used GAL.
Definition at line 307 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), EDA_DRAW_PANEL_GAL::GetBackend(), SCH_DRAW_PANEL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), SCH_DRAW_PANEL::setDefaultLayerDeps(), GERBVIEW_DRAW_PANEL_GAL::setDefaultLayerDeps(), PCB_DRAW_PANEL_GAL::setDefaultLayerDeps(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
protectedinherited |
Optional overlay for drawing transient debug objects.
Definition at line 324 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::ClearDebugOverlay(), and EDA_DRAW_PANEL_GAL::DebugOverlay().
|
protectedinherited |
True if GAL is currently redrawing the view.
Definition at line 283 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), and EDA_DRAW_PANEL_GAL::~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Flag that determines if VIEW may use GAL for redrawing the screen.
Definition at line 286 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), EDA_DRAW_PANEL_GAL::ForceRefresh(), and EDA_DRAW_PANEL_GAL::StopDrawing().
|
protectedinherited |
Currently used drawing-sheet.
Definition at line 119 of file pcb_draw_panel_gal.h.
Referenced by PCB_DRAW_PANEL_GAL::DisplayBoard(), PCB_DRAW_PANEL_GAL::GetDefaultViewBBox(), PCB_DRAW_PANEL_GAL::GetDrawingSheet(), and PCB_DRAW_PANEL_GAL::SetDrawingSheet().
|
protectedinherited |
Parent EDA_DRAW_FRAME (if available)
Definition at line 274 of file class_draw_panel_gal.h.
Referenced by PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::GetParentEDAFrame(), EDA_DRAW_PANEL_GAL::IsDialogPreview(), EDA_DRAW_PANEL_GAL::onEnter(), and EDA_DRAW_PANEL_GAL::OnEvent().
|
protectedinherited |
Processes and forwards events to tools.
Definition at line 311 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::OnEvent(), and EDA_DRAW_PANEL_GAL::SetEventDispatcher().
|
protectedinherited |
Interface for drawing objects on a 2D-surface.
Definition at line 295 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), EDA_DRAW_PANEL_GAL::ForceRefresh(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::GetGAL(), SCH_DRAW_PANEL::onPaint(), EDA_DRAW_PANEL_GAL::onShowTimer(), EDA_DRAW_PANEL_GAL::onSize(), PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), EDA_DRAW_PANEL_GAL::SetCurrentCursor(), EDA_DRAW_PANEL_GAL::SwitchBackend(), SCH_DRAW_PANEL::SwitchBackend(), PCB_DRAW_PANEL_GAL::SwitchBackend(), PCB_DRAW_PANEL_GAL::UpdateColors(), and EDA_DRAW_PANEL_GAL::~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Timestamp of the last repaint end.
Definition at line 277 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), and EDA_DRAW_PANEL_GAL::OnEvent().
|
protectedinherited |
Timestamp of the last repaint start.
Definition at line 276 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), and EDA_DRAW_PANEL_GAL::OnEvent().
|
private |
Definition at line 70 of file panel_zone_gal.h.
Referenced by GetLayer(), and OnLayerSelected().
|
protectedinherited |
Flag to indicate that focus should be regained on the next mouse event.
It is a workaround for cases when the panel loses keyboard focus, so it does not react to hotkeys anymore.
Definition at line 315 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::OnEvent(), EDA_DRAW_PANEL_GAL::onLostFocus(), and EDA_DRAW_PANEL_GAL::SetFocus().
|
inherited |
used on wxMSW: true after a wxEVT_MOUSE_CAPTURE_LOST was received false after the mouse is recaptured.
Used to avoid calling twice a CaptureMouse(), not accepted by wxMSW
Definition at line 260 of file class_draw_panel_gal.h.
Referenced by KIGFX::WX_VIEW_CONTROLS::CaptureCursor(), and KIGFX::WX_VIEW_CONTROLS::onCaptureLost().
|
protectedinherited |
True when canvas needs to be refreshed from idle handler.
Definition at line 289 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::onIdle(), and EDA_DRAW_PANEL_GAL::RequestRefresh().
|
protectedinherited |
Timer used to execute OnShow() when the window finally appears on the screen.
Definition at line 292 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), and EDA_DRAW_PANEL_GAL::onShowTimer().
|
protectedinherited |
Definition at line 308 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::SwitchBackend().
|
protectedinherited |
Contains information about how to draw items using GAL.
Definition at line 301 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), SCH_PREVIEW_PANEL::GetRenderSettings(), PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
inherited |
Definition at line 262 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Pointer to the parent window.
Definition at line 273 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::IsDialogPreview(), EDA_DRAW_PANEL_GAL::SetCurrentCursor(), and EDA_DRAW_PANEL_GAL::SwitchBackend().
|
private |
Definition at line 69 of file panel_zone_gal.h.
Referenced by GetBoardBoundingBox(), GetDocumentExtents(), and GetPageSizeIU().
|
private |
Definition at line 71 of file panel_zone_gal.h.
Referenced by PANEL_ZONE_GAL().
|
protectedinherited |
Ratsnest view item.
Definition at line 120 of file pcb_draw_panel_gal.h.
Referenced by PCB_DRAW_PANEL_GAL::DisplayBoard(), and PCB_DRAW_PANEL_GAL::RedrawRatsnest().
|
protectedinherited |
Blocks multiple calls to the draw.
Definition at line 280 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint().
|
protectedinherited |
Timer to prevent too-frequent refreshing.
Definition at line 278 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::ForceRefresh(), EDA_DRAW_PANEL_GAL::StartDrawing(), and EDA_DRAW_PANEL_GAL::StopDrawing().
|
protectedinherited |
Definition at line 321 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::SetStatusPopup(), and EDA_DRAW_PANEL_GAL::StatusPopupHasFocus().
|
protectedinherited |
Flag to indicate whether the panel should take focus at certain times (when moused over, and on various mouse/key events)
Definition at line 319 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::onEnter(), EDA_DRAW_PANEL_GAL::OnEvent(), and EDA_DRAW_PANEL_GAL::SetStealsFocus().
|
protectedinherited |
Stores view settings (scale, center, etc.) and items to be drawn.
Definition at line 298 of file class_draw_panel_gal.h.
Referenced by ActivateSelectedZone(), EDA_DRAW_PANEL_GAL::ClearDebugOverlay(), EDA_DRAW_PANEL_GAL::DebugOverlay(), PCB_DRAW_PANEL_GAL::DisplayBoard(), PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), EDA_DRAW_PANEL_GAL::DoRePaint(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), GERBVIEW_DRAW_PANEL_GAL::GetDefaultViewBBox(), PCB_DRAW_PANEL_GAL::GetDefaultViewBBox(), EDA_DRAW_PANEL_GAL::GetView(), SCH_DRAW_PANEL::GetView(), PCB_DRAW_PANEL_GAL::GetView(), OnLayerSelected(), SCH_DRAW_PANEL::OnShow(), GERBVIEW_DRAW_PANEL_GAL::OnShow(), PCB_DRAW_PANEL_GAL::OnShow(), EDA_DRAW_PANEL_GAL::onSize(), PANEL_ZONE_GAL(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), PCB_DRAW_PANEL_GAL::RedrawRatsnest(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), SCH_DRAW_PANEL::setDefaultLayerDeps(), SCH_PREVIEW_PANEL::setDefaultLayerDeps(), GERBVIEW_DRAW_PANEL_GAL::setDefaultLayerDeps(), PL_DRAW_PANEL_GAL::setDefaultLayerDeps(), PCB_DRAW_PANEL_GAL::setDefaultLayerDeps(), SCH_DRAW_PANEL::setDefaultLayerOrder(), SCH_PREVIEW_PANEL::setDefaultLayerOrder(), PCB_DRAW_PANEL_GAL::setDefaultLayerOrder(), GERBVIEW_DRAW_PANEL_GAL::SetDrawingSheet(), PCB_DRAW_PANEL_GAL::SetDrawingSheet(), EDA_DRAW_PANEL_GAL::SetHighContrastLayer(), GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), EDA_DRAW_PANEL_GAL::SetTopLayer(), GERBVIEW_DRAW_PANEL_GAL::SetTopLayer(), PL_DRAW_PANEL_GAL::SetTopLayer(), PCB_DRAW_PANEL_GAL::SetTopLayer(), EDA_DRAW_PANEL_GAL::SwitchBackend(), GERBVIEW_DRAW_PANEL_GAL::SwitchBackend(), PCB_DRAW_PANEL_GAL::SyncLayersVisibility(), PCB_DRAW_PANEL_GAL::UpdateColors(), SCH_PREVIEW_PANEL::view(), ZoomFitScreen(), and EDA_DRAW_PANEL_GAL::~EDA_DRAW_PANEL_GAL().
|
protectedinherited |
Control for VIEW (moving, zooming, etc.)
Definition at line 304 of file class_draw_panel_gal.h.
Referenced by EDA_DRAW_PANEL_GAL::DoRePaint(), GERBVIEW_DRAW_PANEL_GAL::GERBVIEW_DRAW_PANEL_GAL(), EDA_DRAW_PANEL_GAL::GetViewControls(), EDA_DRAW_PANEL_GAL::onLostFocus(), PCB_DRAW_PANEL_GAL::PCB_DRAW_PANEL_GAL(), PL_DRAW_PANEL_GAL::PL_DRAW_PANEL_GAL(), SCH_DRAW_PANEL::SCH_DRAW_PANEL(), SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL(), and EDA_DRAW_PANEL_GAL::~EDA_DRAW_PANEL_GAL().
|
private |
Definition at line 72 of file panel_zone_gal.h.
Referenced by ActivateSelectedZone(), and GetZone().