42using namespace std::placeholders;
46 const wxPoint& aPosition,
const wxSize& aSize,
81 std::vector<MSG_PANEL_ITEM>& aList )
101 dummy.SetPaperFormat(
m_edaFrame->GetPageSettings().GetTypeAsString() );
111 const int penWidth = 0;
113 m_pageDrawItem = std::make_unique<DS_DRAW_ITEM_PAGE>( penWidth, markerSize );
122 double size_x =
m_edaFrame->GetPageSizeIU().x;
123 double size_y =
m_edaFrame->GetPageSizeIU().y;
125 m_view->SetBoundary( boundary );
163 m_view->SetTopLayer( aLayer );
169 m_view->UpdateAllLayersOrder();
constexpr EDA_IU_SCALE drawSheetIUScale
wxString m_ColorTheme
Active color theme name.
Drawing sheet structure type definitions.
Handle the graphic items list to draw/plot the frame and title block.
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
Store the list of graphic items: rect, lines, polygons and texts to draw/plot the title block and fra...
The base class for create windows for drawing purpose.
EDA_DRAW_FRAME * m_edaFrame
Parent EDA_DRAW_FRAME (if available)
std::unique_ptr< KIGFX::PAINTER > m_painter
Contains information about how to draw items using GAL.
KIGFX::GAL * m_gal
Interface for drawing objects on a 2D-surface.
EDA_DRAW_PANEL_GAL(wxWindow *aParentWindow, wxWindowID aWindowId, const wxPoint &aPosition, const wxSize &aSize, KIGFX::GAL_DISPLAY_OPTIONS &aOptions, GAL_TYPE aGalType=GAL_TYPE_OPENGL)
Create a drawing panel that is contained inside aParentWindow.
KIGFX::VIEW * m_view
Stores view settings (scale, center, etc.) and items to be drawn.
KIGFX::WX_VIEW_CONTROLS * m_viewControls
Control for VIEW (moving, zooming, etc.)
KIGFX::GAL * GetGAL() const
Return a pointer to the GAL instance used in the panel.
virtual bool SwitchBackend(GAL_TYPE aGalType)
Switch method of rendering graphics.
void SetWorldUnitLength(double aWorldUnitLength)
Set the unit length.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
static constexpr int VIEW_MAX_LAYERS
Maximum number of layers that may be shown.
An implementation of class VIEW_CONTROLS for wxWidgets library.
std::unique_ptr< DS_DRAW_ITEM_PAGE > m_pageDrawItem
virtual ~PL_DRAW_PANEL_GAL()
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
virtual void SetTopLayer(int aLayer) override
Move the selected layer to the top, so it is displayed above all others.
PL_DRAW_PANEL_GAL(wxWindow *aParentWindow, wxWindowID aWindowId, const wxPoint &aPosition, const wxSize &aSize, KIGFX::GAL_DISPLAY_OPTIONS &aOptions, GAL_TYPE aGalType=GAL_TYPE_OPENGL)
void DisplayDrawingSheet()
Build and update the list of WS_DRAW_ITEM_xxx showing the frame layout.
void setDefaultLayerDeps()
Set rendering targets & dependencies for layers.
bool SwitchBackend(GAL_TYPE aGalType) override
Switch method of rendering graphics.
The main window used in the drawing sheet editor.
virtual void Clear() override
Remove all the stored items from the group.
@ LAYER_DRAWINGSHEET_PAGEn
Sheet Editor previewing pages after first page.
@ LAYER_DRAWINGSHEET
Sheet frame and title block.
@ LAYER_GP_OVERLAY
General purpose overlay.
@ LAYER_DRAWINGSHEET_PAGE1
Sheet Editor previewing first page.
@ LAYER_SELECT_OVERLAY
Selected items overlay.
@ TARGET_NONCACHED
Auxiliary rendering target (noncached)
@ TARGET_OVERLAY
Items that may change while the view stays the same (noncached)
COLOR_SETTINGS * GetColorSettings(const wxString &aName)
T * GetAppSettings(const char *aFilename)
std::vector< FAB_LAYER_COLOR > dummy
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D
WX_VIEW_CONTROLS class definition.
#define ZOOM_MAX_LIMIT_PLEDITOR
#define ZOOM_MIN_LIMIT_PLEDITOR