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 <layers_id_colors_and_visibility.h>
#include <bitmaps.h>
#include <class_board.h>
#include <dialog_plot.h>
#include <dialog_gendrill.h>
#include <wx_html_report_panel.h>
#include <tool/tool_manager.h>
#include <tools/drc.h>
#include <tools/zone_filler_tool.h>
#include <math/util.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 534 of file dialog_plot.cpp.

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 }

Referenced by DIALOG_PLOT::applyPlotSettings().

◆ setInt()

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

Definition at line 552 of file dialog_plot.cpp.

553 {
554  if( aValue < aMin )
555  {
556  *aResult = aMin;
557  return false;
558  }
559  else if( aValue > aMax )
560  {
561  *aResult = aMax;
562  return false;
563  }
564 
565  *aResult = aValue;
566  return true;
567 }

Referenced by DIALOG_PLOT::applyPlotSettings().