|
KiCad PCB EDA Suite
|
Draws a cross section of a via from its protection and machining settings. More...
#include <via_cross_section_preview.h>
Public Types | |
| using | STATE = VIA_CROSS_SECTION_GEOMETRY::STATE |
| using | POST_MACHINING = VIA_CROSS_SECTION_GEOMETRY::POST_MACHINING |
Public Member Functions | |
| VIA_CROSS_SECTION_PREVIEW (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0) | |
| void | SetState (const STATE &aState) |
| bool | HasTransparentBackground () override |
| The dialog paints the background, so the hole and the cuts show it through. | |
Private Member Functions | |
| void | onPaint (wxPaintEvent &aEvent) |
Private Attributes | |
| STATE | m_state |
Draws a cross section of a via from its protection and machining settings.
The shapes come from VIA_CROSS_SECTION_GEOMETRY. This panel only scales them to its size and paints them, with a mixed value hatched.
Definition at line 33 of file via_cross_section_preview.h.
Definition at line 37 of file via_cross_section_preview.h.
Definition at line 36 of file via_cross_section_preview.h.
| VIA_CROSS_SECTION_PREVIEW::VIA_CROSS_SECTION_PREVIEW | ( | wxWindow * | aParent, |
| wxWindowID | aId = wxID_ANY, | ||
| const wxPoint & | aPos = wxDefaultPosition, | ||
| const wxSize & | aSize = wxDefaultSize, | ||
| long | aStyle = 0 ) |
Definition at line 130 of file via_cross_section_preview.cpp.
|
inlineoverride |
The dialog paints the background, so the hole and the cuts show it through.
Definition at line 45 of file via_cross_section_preview.h.
|
private |
Definition at line 150 of file via_cross_section_preview.cpp.
References VIA_CROSS_SECTION_GEOMETRY::Bodies(), VIA_CROSS_SECTION_GEOMETRY::Bores(), VIA_CROSS_SECTION_GEOMETRY::COPPER, VIA_CROSS_SECTION_GEOMETRY::CORE, VIA_CROSS_SECTION_GEOMETRY::COVER, cut, VIA_CROSS_SECTION_GEOMETRY::Cuts(), dc, VIA_CROSS_SECTION_GEOMETRY::GRID_W, VIA_CROSS_SECTION_GEOMETRY::GridHeight(), KIPLATFORM::UI::IsDarkTheme(), m_state, BODY_PAINTER::Material(), VIA_CROSS_SECTION_GEOMETRY::PLUG, BODY_PAINTER::Region(), VIA_CROSS_SECTION_GEOMETRY::SOLDER_MASK, and VIA_CROSS_SECTION_GEOMETRY::UNDER_MASK.
Referenced by VIA_CROSS_SECTION_PREVIEW().
| void VIA_CROSS_SECTION_PREVIEW::SetState | ( | const STATE & | aState | ) |
Definition at line 143 of file via_cross_section_preview.cpp.
References m_state.
|
private |
Definition at line 50 of file via_cross_section_preview.h.
Referenced by onPaint(), and SetState().