KiCad PCB EDA Suite
dialog_plot.cpp File Reference
#include <kiface_i.h>
#include <plot_common.h>
#include <confirm.h>
#include <wxPcbStruct.h>
#include <pcbplot.h>
#include <base_units.h>
#include <macros.h>
#include <reporter.h>
#include <class_board.h>
#include <wx/ffile.h>
#include <dialog_plot.h>
#include <wx_html_report_panel.h>
#include <layers_id_colors_and_visibility.h>
#include <drc_stuff.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 546 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

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 }
static bool setInt ( int *  aResult,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 564 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

565 {
566  if( aValue < aMin )
567  {
568  *aResult = aMin;
569  return false;
570  }
571  else if( aValue > aMax )
572  {
573  *aResult = aMax;
574  return false;
575  }
576 
577  *aResult = aValue;
578  return true;
579 }