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

Referenced by DIALOG_PLOT::applyPlotSettings().

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

Definition at line 534 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

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