KiCad PCB EDA Suite
dialog_plot.cpp File Reference
#include <wx/bmpbuttn.h>
#include <wx/clntdata.h>
#include <wx/rearrangectrl.h>
#include <kiface_base.h>
#include <plotters/plotter.h>
#include <confirm.h>
#include <pcb_edit_frame.h>
#include <pcbnew_settings.h>
#include <pcbplot.h>
#include <pgm_base.h>
#include <gerber_jobfile_writer.h>
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <layer_ids.h>
#include <locale_io.h>
#include <bitmaps.h>
#include <board.h>
#include <board_design_settings.h>
#include <dialog_plot.h>
#include <dialog_gendrill.h>
#include <widgets/wx_html_report_panel.h>
#include <widgets/std_bitmap_button.h>
#include <tool/tool_manager.h>
#include <tools/zone_filler_tool.h>
#include <tools/drc_tool.h>
#include <math/util.h>
#include <macros.h>
#include <wx/dirdlg.h>

Go to the source code of this file.

Classes

class  PCB_LAYER_ID_CLIENT_DATA
 A helper wxWidgets control client data object to store layer IDs. More...
 

Functions

static bool setDouble (double *aResult, double aValue, double aMin, double aMax)
 
static bool setInt (int *aResult, int aValue, int aMin, int aMax)
 

Function Documentation

◆ setDouble()

static bool setDouble ( double *  aResult,
double  aValue,
double  aMin,
double  aMax 
)
static

Definition at line 732 of file dialog_plot.cpp.

733{
734 if( aValue < aMin )
735 {
736 *aResult = aMin;
737 return false;
738 }
739 else if( aValue > aMax )
740 {
741 *aResult = aMax;
742 return false;
743 }
744
745 *aResult = aValue;
746 return true;
747}

Referenced by DIALOG_PLOT::applyPlotSettings().

◆ setInt()

static bool setInt ( int *  aResult,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 750 of file dialog_plot.cpp.

751{
752 if( aValue < aMin )
753 {
754 *aResult = aMin;
755 return false;
756 }
757 else if( aValue > aMax )
758 {
759 *aResult = aMax;
760 return false;
761 }
762
763 *aResult = aValue;
764 return true;
765}

Referenced by DIALOG_PLOT::applyPlotSettings().