KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VIA_CROSS_SECTION_PREVIEW Class Reference

Draws a cross section of a via from its protection and machining settings. More...

#include <via_cross_section_preview.h>

Inheritance diagram for VIA_CROSS_SECTION_PREVIEW:

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
 

Detailed Description

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.

Member Typedef Documentation

◆ POST_MACHINING

◆ STATE

Constructor & Destructor Documentation

◆ VIA_CROSS_SECTION_PREVIEW()

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.

References _, and onPaint().

Member Function Documentation

◆ HasTransparentBackground()

bool VIA_CROSS_SECTION_PREVIEW::HasTransparentBackground ( )
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.

◆ onPaint()

◆ SetState()

void VIA_CROSS_SECTION_PREVIEW::SetState ( const STATE & aState)

Definition at line 143 of file via_cross_section_preview.cpp.

References m_state.

Member Data Documentation

◆ m_state

STATE VIA_CROSS_SECTION_PREVIEW::m_state
private

Definition at line 50 of file via_cross_section_preview.h.

Referenced by onPaint(), and SetState().


The documentation for this class was generated from the following files: