KiCad PCB EDA Suite
plotter.cpp File Reference

KiCad: Base of all the specialized plotters the class PLOTTER handle basic functions to plot schematic and boards with different plot formats. More...

#include <fill_type.h>
#include <vector>
#include <trigo.h>
#include <eda_item.h>
#include <plotter.h>
#include <geometry/shape_line_chain.h>
#include <geometry/geometry_utils.h>
#include <bezier_curves.h>
#include <math/util.h>

Go to the source code of this file.

Macros

#define IU_PER_MILS   ( m_IUsPerDecimil * 10 )
 

Functions

wxPenStyle GetwxPenStyle (PLOT_DASH_TYPE aType)
 Convert KiCad line plot styles to wxWidgets device context styles. More...
 

Detailed Description

KiCad: Base of all the specialized plotters the class PLOTTER handle basic functions to plot schematic and boards with different plot formats.

There are currently engines for: HPGL POSTSCRIPT GERBER DXF an SVG 'plot' is also provided along with the 'print' function by wx, but is not handled here.

Definition in file plotter.cpp.

Macro Definition Documentation

◆ IU_PER_MILS

#define IU_PER_MILS   ( m_IUsPerDecimil * 10 )

Definition at line 137 of file plotter.cpp.

Function Documentation

◆ GetwxPenStyle()

wxPenStyle GetwxPenStyle ( PLOT_DASH_TYPE  aType)

Convert KiCad line plot styles to wxWidgets device context styles.

Parameters
aTypeThe KiCad line plot style to convert.
Returns
The equivalent wxPenStyle of aType.

Definition at line 611 of file plotter.cpp.

612 {
613  switch( aType )
614  {
617  return wxPENSTYLE_SOLID;
619  return wxPENSTYLE_SHORT_DASH;
620  case PLOT_DASH_TYPE::DOT:
621  return wxPENSTYLE_DOT;
623  return wxPENSTYLE_DOT_DASH;
624  default:
625  wxFAIL_MSG( "Unhandled PlotDashType" );
626  return wxPENSTYLE_SOLID;
627  }
628 }

References DASH, DASHDOT, DEFAULT, DOT, and SOLID.

Referenced by SCH_BUS_ENTRY_BASE::Print(), and SCH_LINE::Print().