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>

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

529 {
530  if( aValue < aMin )
531  {
532  *aResult = aMin;
533  return false;
534  }
535  else if( aValue > aMax )
536  {
537  *aResult = aMax;
538  return false;
539  }
540 
541  *aResult = aValue;
542  return true;
543 }

Referenced by DIALOG_PLOT::applyPlotSettings().

◆ setInt()

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

Definition at line 546 of file dialog_plot.cpp.

547 {
548  if( aValue < aMin )
549  {
550  *aResult = aMin;
551  return false;
552  }
553  else if( aValue > aMax )
554  {
555  *aResult = aMax;
556  return false;
557  }
558 
559  *aResult = aValue;
560  return true;
561 }

Referenced by DIALOG_PLOT::applyPlotSettings().