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.

Macros

#define KICAD_USE_GBR_NETATTRIBUTES
 

Functions

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

Macro Definition Documentation

#define KICAD_USE_GBR_NETATTRIBUTES

Definition at line 44 of file dialog_plot.cpp.

Function Documentation

static bool setDouble ( double *  aResult,
double  aValue,
double  aMin,
double  aMax 
)
static

Definition at line 504 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

505 {
506  if( aValue < aMin )
507  {
508  *aResult = aMin;
509  return false;
510  }
511  else if( aValue > aMax )
512  {
513  *aResult = aMax;
514  return false;
515  }
516 
517  *aResult = aValue;
518  return true;
519 }
static bool setInt ( int *  aResult,
int  aValue,
int  aMin,
int  aMax 
)
static

Definition at line 522 of file dialog_plot.cpp.

Referenced by DIALOG_PLOT::applyPlotSettings().

523 {
524  if( aValue < aMin )
525  {
526  *aResult = aMin;
527  return false;
528  }
529  else if( aValue > aMax )
530  {
531  *aResult = aMax;
532  return false;
533  }
534 
535  *aResult = aValue;
536  return true;
537 }