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

#include <unit_selector.h>

Inheritance diagram for UNIT_SELECTOR_THICKNESS:
UNIT_SELECTOR

Public Member Functions

 UNIT_SELECTOR_THICKNESS (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
 
double GetUnitScale () override
 Function GetUnitScale.
 
wxString GetUnitName ()
 

Detailed Description

Definition at line 72 of file unit_selector.h.

Constructor & Destructor Documentation

◆ UNIT_SELECTOR_THICKNESS()

UNIT_SELECTOR_THICKNESS::UNIT_SELECTOR_THICKNESS ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos,
const wxSize &  size,
const wxArrayString &  choices,
long  style = 0 
)

Definition at line 61 of file unit_selector.cpp.

Member Function Documentation

◆ GetUnitName()

wxString UNIT_SELECTOR::GetUnitName ( )
inlineinherited

Definition at line 51 of file unit_selector.h.

Referenced by PANEL_TRACK_WIDTH::TWDisplayValues().

◆ GetUnitScale()

double UNIT_SELECTOR_THICKNESS::GetUnitScale ( )
overridevirtual

Function GetUnitScale.

Returns
the scaling factor to convert users units to normalized units (meter) including oz/ft^2

Implements UNIT_SELECTOR.

Definition at line 80 of file unit_selector.cpp.

References GetCurrentSelection(), UNIT_CM, UNIT_INCH, UNIT_MICRON, UNIT_MIL, UNIT_MM, and UNIT_OZSQFT.

Referenced by PANEL_TRACK_WIDTH::OnTWCalculateFromCurrent(), PANEL_TRACK_WIDTH::OnTWCalculateFromExtWidth(), and PANEL_TRACK_WIDTH::OnTWCalculateFromIntWidth().


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