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 <fctsys.h>
#include <vector>
#include <trigo.h>
#include <base_struct.h>
#include <plotter.h>
#include <gr_text.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 138 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 599 of file plotter.cpp.

600 {
601  switch( aType )
602  {
605  return wxPENSTYLE_SOLID;
607  return wxPENSTYLE_SHORT_DASH;
608  case PLOT_DASH_TYPE::DOT:
609  return wxPENSTYLE_DOT;
611  return wxPENSTYLE_DOT_DASH;
612  default:
613  wxFAIL_MSG( "Unhandled PlotDashType" );
614  return wxPENSTYLE_SOLID;
615  }
616 }

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

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