43 using namespace std::placeholders;
46 const wxPoint& aPosition,
const wxSize& aSize,
75 SetEvtHandlerEnabled(
true );
128 return static_cast<KIGFX::SCH_VIEW*>(
m_view );
void SetScaleLimits(double aMaximum, double aMinimum)
Set minimum and maximum values for scale.
KIGFX::GAL * m_gal
Interface for drawing objects on a 2D-surface.
void OnShow() override
Called when the window is shown for the first time.
KIGFX::WX_VIEW_CONTROLS * m_viewControls
Control for VIEW (moving, zooming, etc.)
void SetLayerOrder(int aLayer, int aRenderingOrder)
Set rendering order of a particular layer.
KIGFX::SCH_VIEW * view() const
Reassign layer order to the initial settings.
An implementation of class VIEW_CONTROLS for wxWidgets library.
void SetCursorEnabled(bool aCursorEnabled)
Enable/disable cursor.
void UpdateAllLayersOrder()
Do everything that is needed to apply the rendering order of layers.
void SetMirror(bool aMirrorX, bool aMirrorY)
Control the mirroring of the VIEW.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
WX_VIEW_CONTROLS class definition.
static constexpr int VIEW_MAX_LAYERS
maximum number of layers that may be shown
Auxiliary rendering target (noncached)
static const LAYER_NUM SCH_LAYER_ORDER[]
void SetLayerTarget(int aLayer, RENDER_TARGET aTarget)
Change the rendering target for a particular layer.
void SetGridColor(const COLOR4D &aGridColor)
Set the grid color.
void setDefaultLayerOrder()
Set rendering targets & dependencies for layers.
virtual void onPaint(wxPaintEvent &WXUNUSED(aEvent))
VECTOR2< double > VECTOR2D
SCH_PREVIEW_PANEL(wxWindow *aParentWindow, wxWindowID aWindowId, const wxPoint &aPosition, const wxSize &aSize, KIGFX::GAL_DISPLAY_OPTIONS &aOptions, GAL_TYPE aGalType=GAL_TYPE_OPENGL)
std::unique_ptr< KIGFX::PAINTER > m_painter
Contains information about how to draw items using GAL.
void SetLayerDisplayOnly(int aLayer, bool aDisplayOnly=true)
SCH_PAINTER Contains methods for drawing schematic-specific items.
Items that may change while the view stays the same (noncached)
void onPaint(wxPaintEvent &WXUNUSED(aEvent)) override
virtual void SetFocus() override
~SCH_PREVIEW_PANEL() override
Called when the window is shown for the first time.
void SetGridSize(const VECTOR2D &aGridSize)
Set the grid size.
SETTINGS_MANAGER * GetSettingsManager()
#define ZOOM_MIN_LIMIT_EESCHEMA_PREVIEW
void StartDrawing()
Begin drawing if it was stopped previously.
void SetWorldUnitLength(double aWorldUnitLength)
Set the unit length.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
int LAYER_NUM
This can be replaced with int and removed.
void setDefaultLayerDeps()
constexpr double SCH_WORLD_UNIT(1e-7/0.0254)
KIGFX::VIEW * m_view
Stores view settings (scale, center, etc.) and items to be drawn.
currently selected items overlay
void SetPainter(PAINTER *aPainter)
Set the painter object used by the view for drawing #VIEW_ITEMS.
drawingsheet frame and titleblock
void Refresh(bool aEraseBackground, const wxRect *aRect) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void SetGAL(GAL *aGal)
Assign a rendering device for the VIEW.
#define ZOOM_MAX_LIMIT_EESCHEMA_PREVIEW