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 <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

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

Definition at line 514 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

515 {
516  if( aValue < aMin )
517  {
518  *aResult = aMin;
519  return false;
520  }
521  else if( aValue > aMax )
522  {
523  *aResult = aMax;
524  return false;
525  }
526 
527  *aResult = aValue;
528  return true;
529 }
static bool setInt ( int *  aResult,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 532 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

533 {
534  if( aValue < aMin )
535  {
536  *aResult = aMin;
537  return false;
538  }
539  else if( aValue > aMax )
540  {
541  *aResult = aMax;
542  return false;
543  }
544 
545  *aResult = aValue;
546  return true;
547 }