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 <base_units.h>
#include <macros.h>
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <bitmaps.h>
#include <class_board.h>
#include <wx/ffile.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 566 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

567 {
568  if( aValue < aMin )
569  {
570  *aResult = aMin;
571  return false;
572  }
573  else if( aValue > aMax )
574  {
575  *aResult = aMax;
576  return false;
577  }
578 
579  *aResult = aValue;
580  return true;
581 }
static bool setInt ( int *  aResult,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 584 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

585 {
586  if( aValue < aMin )
587  {
588  *aResult = aMin;
589  return false;
590  }
591  else if( aValue > aMax )
592  {
593  *aResult = aMax;
594  return false;
595  }
596 
597  *aResult = aValue;
598  return true;
599 }