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

#include <unit_selector.h>

Inheritance diagram for UNIT_SELECTOR_SPEED:
UNIT_SELECTOR

Public Member Functions

 UNIT_SELECTOR_SPEED (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 190 of file unit_selector.h.

Constructor & Destructor Documentation

◆ UNIT_SELECTOR_SPEED()

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

Definition at line 283 of file unit_selector.cpp.

References _, and UNIT_SELECTOR::UNIT_SELECTOR().

Member Function Documentation

◆ GetUnitName()

wxString UNIT_SELECTOR::GetUnitName ( )
inlineinherited

Definition at line 51 of file unit_selector.h.

◆ GetUnitScale()

double UNIT_SELECTOR_SPEED::GetUnitScale ( )
overridevirtual

Function GetUnitScale.

Returns
the scaling factor to convert users units to normalized units ( ohm/m )

Implements UNIT_SELECTOR.

Definition at line 299 of file unit_selector.cpp.

References GetCurrentSelection(), UNIT_FEET_PER_SECOND, UNIT_KILOMETER_PER_HOUR, UNIT_METER_PER_SECOND, and UNIT_MILES_PER_HOUR.


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