KiCad PCB EDA Suite
dialog_plot.cpp File Reference
#include <kiface_i.h>
#include <plotter.h>
#include <confirm.h>
#include <pcb_edit_frame.h>
#include <pcbplot.h>
#include <gerber_jobfile_writer.h>
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <bitmaps.h>
#include <class_board.h>
#include <dialog_plot.h>
#include <dialog_gendrill.h>
#include <wx_html_report_panel.h>
#include <drc.h>
#include <layers_id_colors_and_visibility.h>

Go to the source code of this file.

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 519 of file dialog_plot.cpp.

520 {
521  if( aValue < aMin )
522  {
523  *aResult = aMin;
524  return false;
525  }
526  else if( aValue > aMax )
527  {
528  *aResult = aMax;
529  return false;
530  }
531 
532  *aResult = aValue;
533  return true;
534 }

Referenced by DIALOG_PLOT::applyPlotSettings().

◆ setInt()

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

Definition at line 537 of file dialog_plot.cpp.

538 {
539  if( aValue < aMin )
540  {
541  *aResult = aMin;
542  return false;
543  }
544  else if( aValue > aMax )
545  {
546  *aResult = aMax;
547  return false;
548  }
549 
550  *aResult = aValue;
551  return true;
552 }

Referenced by DIALOG_PLOT::applyPlotSettings().