36 int minWidth =
m_dashLengthCtrl->GetTextExtent( wxT(
"XXX.XXX" ) ).GetWidth();
67 PCB_PLOT_PARAMS settings =
m_frame->GetBoard()->GetPlotOptions();
72 m_frame->GetBoard()->SetPlotOptions( settings );
74 BOARD_DESIGN_SETTINGS& bds =
m_frame->GetBoard()->GetDesignSettings();
80 KIGFX::PCB_VIEW* view =
m_frame->GetCanvas()->GetView();
86 [] ( KIGFX::VIEW_ITEM* aItem ) ->
bool
88 const EDA_ITEM* item =
dynamic_cast<const EDA_ITEM*
>( aItem );
91 m_frame->GetCanvas()->Refresh();
constexpr EDA_IU_SCALE unityScale
Container for design settings for a BOARD object.
Information pertinent to a Pcbnew printed circuit board.
const PCB_PLOT_PARAMS & GetPlotOptions() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
KICAD_T Type() const
Returns the type of object.
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
void SetGapLengthRatio(double aRatio)
void SetDashLengthRatio(double aRatio)
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
void UpdateAllItemsConditionally(int aUpdateFlags, std::function< bool(VIEW_ITEM *)> aCondition)
Update items in the view according to the given flags and condition.
The main frame for Pcbnew.
Parameters and options when plotting/printing a board.
void SetDashedLineGapRatio(double aVal)
void SetDashedLineDashRatio(double aVal)
double GetDashedLineGapRatio() const
double GetDashedLineDashRatio() const
const int minSize
Push and Shove router track width and via size dialog.
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Return the string from aValue according to aUnits (inch, mm ...) for display.
KICOMMON_API double DoubleValueFromString(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Convert aTextValue to a double.
@ REPAINT
Item needs to be redrawn.
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers