KiCad PCB EDA Suite
|
#include <plotters_pslike.h>
Classes | |
struct | OUTLINE_NODE |
Public Member Functions | |
PDF_PLOTTER (const PROJECT *aProject=nullptr) | |
virtual PLOT_FORMAT | GetPlotterType () const override |
Return the effective plot engine in use. | |
virtual bool | OpenFile (const wxString &aFullFilename) override |
Open or create the plot file aFullFilename. | |
virtual bool | StartPlot (const wxString &aPageNumber) override |
The PDF engine supports multiple pages; the first one is opened 'for free' the following are to be closed and reopened. | |
virtual bool | StartPlot (const wxString &aPageNumber, const wxString &aPageName=wxEmptyString) |
virtual bool | EndPlot () override |
virtual void | StartPage (const wxString &aPageNumber, const wxString &aPageName=wxEmptyString, const wxString &aParentPageNumber=wxEmptyString, const wxString &aParentPageName=wxEmptyString) |
Start a new page in the PDF document. | |
virtual void | ClosePage () |
Close the current page in the PDF document (and emit its compressed stream). | |
virtual void | SetCurrentLineWidth (int width, void *aData=nullptr) override |
Pen width setting for PDF. | |
virtual void | SetDash (int aLineWidth, LINE_STYLE aLineStyle) override |
PDF supports dashed lines. | |
virtual void | SetViewport (const VECTOR2I &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override |
PDF can have multiple pages, so SetPageSettings can be called with the outputFile open (but not inside a page stream!) | |
virtual void | Rect (const VECTOR2I &p1, const VECTOR2I &p2, FILL_T fill, int width) override |
Rectangles in PDF. | |
virtual void | Circle (const VECTOR2I &pos, int diametre, FILL_T fill, int width) override |
Circle drawing for PDF. | |
virtual void | Arc (const VECTOR2D &aCenter, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) override |
The PDF engine can't directly plot arcs so we use polygonization. | |
virtual void | PlotPoly (const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=nullptr) override |
Polygon plotting for PDF. | |
virtual void | PenTo (const VECTOR2I &pos, char plume) override |
Moveto/lineto primitive, moves the 'pen' to the specified direction. | |
virtual void | Text (const VECTOR2I &aPos, const COLOR4D &aColor, const wxString &aText, const EDA_ANGLE &aOrient, const VECTOR2I &aSize, enum GR_TEXT_H_ALIGN_T aH_justify, enum GR_TEXT_V_ALIGN_T aV_justify, int aWidth, bool aItalic, bool aBold, bool aMultilineAllowed, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics, void *aData=nullptr) override |
Draw text with the plotter. | |
virtual void | PlotText (const VECTOR2I &aPos, const COLOR4D &aColor, const wxString &aText, const TEXT_ATTRIBUTES &aAttributes, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics, void *aData=nullptr) override |
void | HyperlinkBox (const BOX2I &aBox, const wxString &aDestinationURL) override |
Create a clickable hyperlink with a rectangular click area. | |
void | HyperlinkMenu (const BOX2I &aBox, const std::vector< wxString > &aDestURLs) override |
Create a clickable hyperlink menu with a rectangular click area. | |
void | Bookmark (const BOX2I &aBox, const wxString &aName, const wxString &aGroupName=wxEmptyString) override |
Create a bookmark to a symbol. | |
void | Plot3DModel (const wxString &aSourcePath, const std::vector< PDF_3D_VIEW > &a3DViews) |
void | Set3DExport (bool aYes) |
void | PlotImage (const wxImage &aImage, const VECTOR2I &aPos, double aScaleFactor) override |
PDF images are handles as inline, not XObject streams... | |
virtual void | SetTextMode (PLOT_TEXT_MODE mode) override |
PS and PDF fully implement native text (for the Latin-1 subset) | |
void | SetScaleAdjust (double scaleX, double scaleY) |
Set the 'fine' scaling for the postscript engine. | |
virtual void | FlashPadCircle (const VECTOR2I &aPadPos, int aDiameter, void *aData) override |
virtual void | FlashPadOval (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aPadOrient, void *aData) override |
virtual void | FlashPadRect (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aPadOrient, void *aData) override |
virtual void | FlashPadRoundRect (const VECTOR2I &aPadPos, const VECTOR2I &aSize, int aCornerRadius, const EDA_ANGLE &aOrient, void *aData) override |
virtual void | FlashPadCustom (const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, SHAPE_POLY_SET *aPolygons, void *aData) override |
virtual void | FlashPadTrapez (const VECTOR2I &aPadPos, const VECTOR2I *aCorners, const EDA_ANGLE &aPadOrient, void *aData) override |
Flash a trapezoidal pad. | |
virtual void | FlashRegularPolygon (const VECTOR2I &aShapePos, int aDiameter, int aCornerCount, const EDA_ANGLE &aOrient, void *aData) override |
Flash a regular polygon. | |
virtual void | SetColor (const COLOR4D &color) override |
The SetColor implementation is split with the subclasses: the PSLIKE computes the rgb values, the subclass emits the operator to actually do it. | |
virtual void | SetNegative (bool aNegative) |
virtual void | SetColorMode (bool aColorMode) |
Plot in B/W or color. | |
bool | GetColorMode () const |
void | SetRenderSettings (RENDER_SETTINGS *aSettings) |
RENDER_SETTINGS * | RenderSettings () |
virtual void | SetPageSettings (const PAGE_INFO &aPageSettings) |
PAGE_INFO & | PageSettings () |
void | SetPlotMirrored (bool aMirror) |
bool | GetPlotMirrored () const |
virtual int | GetCurrentLineWidth () const |
virtual void | SetCreator (const wxString &aCreator) |
virtual void | SetTitle (const wxString &aTitle) |
virtual void | SetAuthor (const wxString &aAuthor) |
virtual void | SetSubject (const wxString &aSubject) |
void | AddLineToHeader (const wxString &aExtraString) |
Add a line to the list of free lines to print at the beginning of the file. | |
void | ClearHeaderLinesList () |
Remove all lines from the list of free lines to print at the beginning of the file. | |
double | GetIUsPerDecimil () const |
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establishing the viewport. | |
int | GetPlotterArcLowDef () const |
int | GetPlotterArcHighDef () const |
virtual void | Arc (const VECTOR2D &aStart, const VECTOR2D &aMid, const VECTOR2D &aEnd, FILL_T aFill, int aWidth) |
virtual void | BezierCurve (const VECTOR2I &aStart, const VECTOR2I &aControl1, const VECTOR2I &aControl2, const VECTOR2I &aEnd, int aTolerance, int aLineThickness) |
Generic fallback: Cubic Bezier curve rendered as a polyline. | |
void | MoveTo (const VECTOR2I &pos) |
void | LineTo (const VECTOR2I &pos) |
void | FinishTo (const VECTOR2I &pos) |
void | PenFinish () |
virtual void | PlotPoly (const SHAPE_LINE_CHAIN &aCornerList, FILL_T aFill, int aWidth, void *aData) |
Draw a polygon ( filled or not ). | |
virtual void | ThickSegment (const VECTOR2I &start, const VECTOR2I &end, int width, void *aData) |
virtual void | ThickArc (const EDA_SHAPE &aArcShape, void *aData, int aWidth) |
virtual void | ThickArc (const VECTOR2D &aCentre, const EDA_ANGLE &aStAngle, const EDA_ANGLE &aAngle, double aRadius, int aWidth, void *aData) |
virtual void | ThickRect (const VECTOR2I &p1, const VECTOR2I &p2, int width, void *aData) |
virtual void | ThickCircle (const VECTOR2I &pos, int diametre, int width, void *aData) |
virtual void | FilledCircle (const VECTOR2I &pos, int diametre, void *aData) |
virtual void | ThickOval (const VECTOR2I &aPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, int aWidth, void *aData) |
virtual void | ThickPoly (const SHAPE_POLY_SET &aPoly, int aWidth, void *aData) |
void | Marker (const VECTOR2I &position, int diametre, unsigned aShapeId) |
Draw a pattern shape number aShapeId, to coord position. | |
virtual void | SetLayerPolarity (bool aPositive) |
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerber file, respectively. | |
virtual void | SetGerberCoordinatesFormat (int aResolution, bool aUseInches=false) |
virtual void | SetSvgCoordinatesFormat (unsigned aPrecision) |
Set the number of digits for mantissa in coordinates in mm for SVG plotter. | |
virtual void | StartBlock (void *aData) |
calling this function allows one to define the beginning of a group of drawing items, for instance in SVG or Gerber format. | |
virtual void | EndBlock (void *aData) |
calling this function allows one to define the end of a group of drawing items for instance in SVG or Gerber format. | |
VECTOR2I | GetPlotOffsetUserUnits () |
Static Public Member Functions | |
static wxString | GetDefaultFileExtension () |
Static Public Attributes | |
static const int | DO_NOT_SET_LINE_WIDTH = -2 |
static const int | USE_DEFAULT_LINE_WIDTH = -1 |
static const unsigned | MARKER_COUNT = 58 |
Draw a marker (used for the drill map). | |
Protected Member Functions | |
OUTLINE_NODE * | addOutlineNode (OUTLINE_NODE *aParent, int aActionHandle, const wxString &aTitle) |
Add a new outline node entry. | |
std::string | encodeStringForPlotter (const wxString &aUnicode) override |
convert a wxString unicode string to a char string compatible with the accepted string PDF format (convert special chars and non ascii7 chars) | |
virtual void | emitSetRGBColor (double r, double g, double b, double a) override |
PDF supports colors fully. | |
int | allocPdfObject () |
Allocate a new handle in the table of the PDF object. | |
int | startPdfObject (int aHandle=-1) |
Open a new PDF object and returns the handle if the parameter is -1. | |
void | closePdfObject () |
Close the current PDF object. | |
int | startPdfStream (int aHandle=-1) |
Start a PDF stream (for the page). | |
void | closePdfStream () |
Finish the current PDF stream (writes the deferred length, too). | |
int | emitOutline () |
Starts emitting the outline object. | |
void | emitOutlineNode (OUTLINE_NODE *aNode, int aParentHandle, int aNextNode, int aPrevNode) |
Emits a outline item object and recurses into any children. | |
int | emitGoToAction (int aPageHandle, const VECTOR2I &aBottomLeft, const VECTOR2I &aTopRight) |
Emit an action object that instructs a goto coordinates on a page. | |
int | emitGoToAction (int aPageHandle) |
void | endPlotEmitResources () |
void | computeTextParameters (const VECTOR2I &aPos, const wxString &aText, const EDA_ANGLE &aOrient, const VECTOR2I &aSize, bool aMirror, enum GR_TEXT_H_ALIGN_T aH_justify, enum GR_TEXT_V_ALIGN_T aV_justify, int aWidth, bool aItalic, bool aBold, double *wideningFactor, double *ctm_a, double *ctm_b, double *ctm_c, double *ctm_d, double *ctm_e, double *ctm_f, double *heightFactor) |
This is the core for postscript/PDF text alignment. | |
int | returnPostscriptTextWidth (const wxString &aText, int aXSize, bool aItalic, bool aBold) |
Sister function for the GRTextWidth in gr_text.cpp Does the same processing (i.e. | |
virtual void | polyArc (const VECTOR2D &aCentre, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) |
Generic fallback: arc rendered as a polyline. | |
void | markerCircle (const VECTOR2I &pos, int radius) |
Plot a circle centered on the position. | |
void | markerHBar (const VECTOR2I &pos, int radius) |
Plot a - bar centered on the position. | |
void | markerSlash (const VECTOR2I &pos, int radius) |
Plot a / bar centered on the position. | |
void | markerBackSlash (const VECTOR2I &pos, int radius) |
Plot a \ bar centered on the position. | |
void | markerVBar (const VECTOR2I &pos, int radius) |
Plot a | bar centered on the position. | |
void | markerSquare (const VECTOR2I &position, int radius) |
Plot a square centered on the position. | |
void | markerLozenge (const VECTOR2I &position, int radius) |
Plot a lozenge centered on the position. | |
virtual VECTOR2D | userToDeviceCoordinates (const VECTOR2I &aCoordinate) |
Modify coordinates according to the orientation, scale factor, and offsets trace. | |
virtual VECTOR2D | userToDeviceSize (const VECTOR2I &size) |
Modify size according to the plotter scale factors (VECTOR2I version, returns a VECTOR2D). | |
virtual double | userToDeviceSize (double size) const |
Modify size according to the plotter scale factors (simple double version). | |
double | GetDotMarkLenIU (int aLineWidth) const |
double | GetDashMarkLenIU (int aLineWidth) const |
double | GetDashGapLenIU (int aLineWidth) const |
Protected Attributes | |
int | m_pageTreeHandle |
Handle to the root of the page tree object. | |
int | m_fontResDictHandle |
Font resource dictionary. | |
int | m_imgResDictHandle |
Image resource dictionary. | |
int | m_jsNamesHandle |
Handle for Names dictionary with JS. | |
std::vector< int > | m_pageHandles |
Handles to the page objects. | |
int | m_pageStreamHandle |
Handle of the page content object. | |
int | m_streamLengthHandle |
Handle to the deferred stream length. | |
wxString | m_workFilename |
wxString | m_pageName |
wxString | m_parentPageName |
FILE * | m_workFile |
Temporary file to construct the stream before zipping. | |
std::vector< long > | m_xrefTable |
The PDF xref offset table. | |
std::vector< wxString > | m_pageNumbers |
List of user-space page numbers for resolving internal hyperlinks. | |
std::vector< std::pair< BOX2I, wxString > > | m_hyperlinksInPage |
List of loaded hyperlinks in current page. | |
std::vector< std::pair< BOX2I, std::vector< wxString > > > | m_hyperlinkMenusInPage |
std::map< int, std::pair< BOX2D, wxString > > | m_hyperlinkHandles |
Handles for all the hyperlink objects that will be deferred. | |
std::map< int, std::pair< BOX2D, std::vector< wxString > > > | m_hyperlinkMenuHandles |
std::map< wxString, std::vector< std::pair< BOX2I, wxString > > > | m_bookmarksInPage |
std::map< int, wxImage > | m_imageHandles |
std::unique_ptr< OUTLINE_NODE > | m_outlineRoot |
Root outline node. | |
int | m_totalOutlineNodes |
Total number of outline nodes. | |
int | m_3dModelHandle |
bool | m_3dExportMode |
double | plotScaleAdjX |
Fine user scale adjust ( = 1.0 if no correction) | |
double | plotScaleAdjY |
PLOT_TEXT_MODE | m_textMode |
How to draw text. | |
double | m_plotScale |
Plot scale - chosen by the user (even implicitly with 'fit in a4') | |
double | m_IUsPerDecimil |
double | m_iuPerDeviceUnit |
VECTOR2I | m_plotOffset |
bool | m_plotMirror |
bool | m_mirrorIsHorizontal |
bool | m_yaxisReversed |
FILE * | m_outputFile |
Output file. | |
bool | m_colorMode |
bool | m_negativeMode |
int | m_currentPenWidth |
char | m_penState |
VECTOR2I | m_penLastpos |
wxString | m_creator |
wxString | m_filename |
wxString | m_title |
wxString | m_author |
wxString | m_subject |
PAGE_INFO | m_pageInfo |
VECTOR2I | m_paperSize |
wxArrayString | m_headerExtraLines |
RENDER_SETTINGS * | m_renderSettings |
const PROJECT * | m_project |
Static Protected Attributes | |
static const double | postscriptTextAscent = 0.718 |
Height of the postscript font (from the AFM) | |
Definition at line 241 of file plotters_pslike.h.
|
inline |
Definition at line 244 of file plotters_pslike.h.
|
inlineinherited |
Add a line to the list of free lines to print at the beginning of the file.
aExtraString | is the string to print |
Definition at line 183 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by AddGerberX2Attribute(), AddGerberX2Header(), GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), and GENDRILL_WRITER_BASE::genDrillMapFile().
|
protected |
Add a new outline node entry.
The PDF object handle is automatically allocated.
aParent | Parent node to append the new node to. |
aActionHandle | The handle of an action that may be performed on click, set to -1 for no action. |
aTitle | Title of node to display |
Definition at line 1160 of file PDF_plotter.cpp.
References PDF_PLOTTER::OUTLINE_NODE::AddChild(), allocPdfObject(), and m_totalOutlineNodes.
Referenced by ClosePage().
|
protected |
Allocate a new handle in the table of the PDF object.
The handle must be completed using startPdfObject. It's an in-RAM operation only, no output is done.
Definition at line 544 of file PDF_plotter.cpp.
References m_xrefTable.
Referenced by addOutlineNode(), ClosePage(), emitGoToAction(), emitOutline(), endPlotEmitResources(), Plot3DModel(), PlotImage(), startPdfObject(), startPdfStream(), and StartPlot().
|
overridevirtual |
The PDF engine can't directly plot arcs so we use polygonization.
Reimplemented from PLOTTER.
Definition at line 341 of file PDF_plotter.cpp.
References Circle(), DEGREES_T, delta, end, PLOTTER::GetCurrentLineWidth(), KiROUND(), m_workFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
virtualinherited |
Definition at line 150 of file plotter.cpp.
References PLOTTER::Arc(), CalcArcCenter(), cw, EDA_ANGLE::Normalize(), EDA_ANGLE::NormalizeNegative(), and radius.
Referenced by PLOTTER::Arc(), SCH_SHAPE::Plot(), PLOTTER::ThickArc(), and PLOTTER::ThickOval().
|
virtualinherited |
Generic fallback: Cubic Bezier curve rendered as a polyline.
In KiCad the bezier curves have 4 control points: start ctrl1 ctrl2 end
Reimplemented in SVG_PLOTTER.
Definition at line 230 of file plotter.cpp.
References PLOTTER::FinishTo(), BEZIER_POLY::GetPoly(), PLOTTER::LineTo(), PLOTTER::MoveTo(), and PLOTTER::SetCurrentLineWidth().
Referenced by SVG_PLOTTER::BezierCurve(), and BRDITEMS_PLOTTER::PlotShape().
|
overridevirtual |
Create a bookmark to a symbol.
aBox | is the rectangular click target |
aSymbolReference | is the symbol schematic ref |
Reimplemented from PLOTTER.
Definition at line 1838 of file PDF_plotter.cpp.
References m_bookmarksInPage.
|
overridevirtual |
Circle drawing for PDF.
They're approximated by curves, but fill is supported
Implements PLOTTER.
Definition at line 285 of file PDF_plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), m_workFile, radius, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Arc().
|
inlineinherited |
Remove all lines from the list of free lines to print at the beginning of the file.
Definition at line 191 of file plotter.h.
References PLOTTER::m_headerExtraLines.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
virtual |
Close the current page in the PDF document (and emit its compressed stream).
Definition at line 793 of file PDF_plotter.cpp.
References addOutlineNode(), allocPdfObject(), PDF_PLOTTER::OUTLINE_NODE::children, closePdfObject(), closePdfStream(), emitGoToAction(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetPosition(), PAGE_INFO::GetSizeMils(), m_3dExportMode, m_3dModelHandle, m_bookmarksInPage, m_fontResDictHandle, m_hyperlinkHandles, m_hyperlinkMenuHandles, m_hyperlinkMenusInPage, m_hyperlinksInPage, m_imgResDictHandle, PLOTTER::m_IUsPerDecimil, PLOTTER::m_mirrorIsHorizontal, m_outlineRoot, PLOTTER::m_outputFile, m_pageHandles, PLOTTER::m_pageInfo, m_pageName, m_pageStreamHandle, m_pageTreeHandle, m_parentPageName, PLOTTER::m_plotMirror, m_workFile, BOX2< Vec >::SetEnd(), BOX2< Vec >::SetOrigin(), startPdfObject(), PDF_PLOTTER::OUTLINE_NODE::title, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_PLOTTER::createPDFFile(), and EndPlot().
|
protected |
Close the current PDF object.
Definition at line 565 of file PDF_plotter.cpp.
References PLOTTER::m_outputFile, and m_workFile.
Referenced by ClosePage(), closePdfStream(), emitGoToAction(), emitOutline(), emitOutlineNode(), EndPlot(), endPlotEmitResources(), and Plot3DModel().
|
protected |
Finish the current PDF stream (writes the deferred length, too).
Definition at line 606 of file PDF_plotter.cpp.
References closePdfObject(), ADVANCED_CFG::GetCfg(), ignore_unused(), PLOTTER::m_outputFile, m_streamLengthHandle, m_workFile, m_workFilename, and startPdfObject().
Referenced by ClosePage().
|
protectedinherited |
This is the core for postscript/PDF text alignment.
It computes the transformation matrix to generate a user space system aligned with the text. Even the PS uses the concat operator to simplify PDF generation (concat is everything PDF has to modify the CTM. Lots of parameters, both in and out.
Definition at line 302 of file PS_plotter.cpp.
References EDA_ANGLE::AsRadians(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_INDETERMINATE, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_INDETERMINATE, GR_TEXT_V_ALIGN_TOP, EDA_ANGLE::Invert(), PLOTTER::m_plotMirror, PSLIKE_PLOTTER::postscriptTextAscent, PSLIKE_PLOTTER::returnPostscriptTextWidth(), RotatePoint(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Text().
|
protected |
Definition at line 1079 of file PDF_plotter.cpp.
References allocPdfObject(), closePdfObject(), PLOTTER::m_outputFile, and startPdfObject().
|
protected |
Emit an action object that instructs a goto coordinates on a page.
Definition at line 1058 of file PDF_plotter.cpp.
References allocPdfObject(), closePdfObject(), PLOTTER::m_outputFile, startPdfObject(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ClosePage().
|
protected |
Starts emitting the outline object.
Definition at line 1170 of file PDF_plotter.cpp.
References allocPdfObject(), closePdfObject(), emitOutlineNode(), m_outlineRoot, PLOTTER::m_outputFile, m_totalOutlineNodes, and startPdfObject().
Referenced by EndPlot().
|
protected |
Emits a outline item object and recurses into any children.
Definition at line 1095 of file PDF_plotter.cpp.
References PDF_PLOTTER::OUTLINE_NODE::actionHandle, PDF_PLOTTER::OUTLINE_NODE::children, closePdfObject(), emitOutlineNode(), encodeStringForPlotter(), PDF_PLOTTER::OUTLINE_NODE::entryHandle, PLOTTER::m_outputFile, startPdfObject(), and PDF_PLOTTER::OUTLINE_NODE::title.
Referenced by emitOutline(), and emitOutlineNode().
|
overrideprotectedvirtual |
PDF supports colors fully.
It actually has distinct fill and pen colors, but we set both at the same time.
XXX Keeping them divided could result in a minor optimization in Eeschema filled shapes, but would propagate to all the other plot engines. Also arcs are filled as pies but only the arc is stroked so it would be difficult to handle anyway.
Implements PSLIKE_PLOTTER.
Definition at line 171 of file PDF_plotter.cpp.
References m_workFile.
|
overrideprotectedvirtual |
convert a wxString unicode string to a char string compatible with the accepted string PDF format (convert special chars and non ascii7 chars)
Reimplemented from PSLIKE_PLOTTER.
Definition at line 56 of file PDF_plotter.cpp.
References KI_FALLTHROUGH.
Referenced by emitOutlineNode(), EndPlot(), endPlotEmitResources(), and Text().
|
inlinevirtualinherited |
calling this function allows one to define the end of a group of drawing items for instance in SVG or Gerber format.
the group is started by StartBlock()
aData | can define any parameter for most of plotters: do nothing |
Reimplemented in GERBER_PLOTTER, and SVG_PLOTTER.
Definition at line 553 of file plotter.h.
Referenced by SCH_SYMBOL::Plot(), PlotStandardLayer(), and BRDITEMS_PLOTTER::PlotZone().
|
overridevirtual |
Implements PLOTTER.
Definition at line 1554 of file PDF_plotter.cpp.
References ClosePage(), closePdfObject(), emitOutline(), encodeStringForPlotter(), endPlotEmitResources(), m_3dExportMode, PLOTTER::m_author, PLOTTER::m_creator, PLOTTER::m_filename, m_jsNamesHandle, PLOTTER::m_outputFile, m_pageHandles, m_pageTreeHandle, PLOTTER::m_subject, PLOTTER::m_title, m_xrefTable, and startPdfObject().
Referenced by SCH_PLOTTER::restoreEnvironment().
|
protected |
Definition at line 1200 of file PDF_plotter.cpp.
References _, allocPdfObject(), closePdfObject(), CTX_JS_STR, encodeStringForPlotter(), EscapeString(), KIGFX::RENDER_SETTINGS::GetBackgroundColor(), BOX2< Vec >::GetBottom(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), image, EDA_TEXT::IsGotoPageHref(), PLOTTER::m_colorMode, m_fontResDictHandle, m_hyperlinkHandles, m_hyperlinkMenuHandles, m_imageHandles, m_imgResDictHandle, m_jsNamesHandle, PLOTTER::m_outputFile, m_pageHandles, m_pageNumbers, PLOTTER::m_project, PLOTTER::m_renderSettings, NormalizeFileUri(), ResolveUriByEnvVars(), startPdfObject(), KIGFX::COLOR4D::ToColour(), WriteImageSMaskStream(), and WriteImageStream().
Referenced by EndPlot().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 597 of file plotter.cpp.
References PLOTTER::Circle().
Referenced by SCH_LABEL_BASE::Plot(), and BRDITEMS_PLOTTER::PlotShape().
|
inlineinherited |
Definition at line 271 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), GERBER_PLOTTER::PlotPoly(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), Rect(), PLOTTER::ThickOval(), PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
|
overridevirtualinherited |
aPadPos | Position of the shape (center of the rectangle. |
aDiameter | is the diameter of round pad. |
aData | is an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 118 of file PS_plotter.cpp.
References PLOTTER::Circle().
|
overridevirtualinherited |
aPadPos | Position of the shape. |
aSize | is the size of round reference pad. |
aPadOrient | is the pad rotation, used only with aperture macros (Gerber plotter). |
aPolygons | the shape as polygon set. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 180 of file PS_plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), PLOTTER::PlotPoly(), SHAPE_LINE_CHAIN::PointCount(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
aPadPos | Position of the shape (center of the rectangle. |
aSize | is the size of oblong shape. |
aPadOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 92 of file PS_plotter.cpp.
References ANGLE_90, delta, PLOTTER::m_outputFile, RotatePoint(), PLOTTER::ThickSegment(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
aPadPos | Position of the shape (center of the rectangle). |
aSize | is the size of rounded rect. |
aPadOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 124 of file PS_plotter.cpp.
References PLOTTER::PlotPoly(), RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
aPadPos | Position of the shape (center of the rectangle. |
aSize | is the size of rounded rect. |
aCornerRadius | Radius of the rounded corners. |
aOrient | The rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 157 of file PS_plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), ERROR_INSIDE, PLOTTER::GetPlotterArcHighDef(), SHAPE_POLY_SET::Outline(), PLOTTER::PlotPoly(), SHAPE_LINE_CHAIN::PointCount(), TransformRoundChamferedRectToPolygon(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtualinherited |
Flash a trapezoidal pad.
aPadPos | is the the position of the shape. |
aCorners | is the list of 4 corners positions, relative to the shape position, pad orientation 0. |
aPadOrient | is the rotation of the shape. |
aData | an auxiliary info (mainly for gerber format attributes). |
Implements PLOTTER.
Definition at line 202 of file PS_plotter.cpp.
References PLOTTER::PlotPoly(), and RotatePoint().
|
overridevirtualinherited |
Flash a regular polygon.
Useful only in Gerber files to flash a regular polygon.
aShapePos | is the center of the circle containing the polygon. |
aRadius | is the radius of the circle containing the polygon. |
aCornerCount | is the number of vertices. |
aOrient | is the polygon rotation. |
aData | is a auxiliary parameter used (if needed) to handle extra info specific to the plotter. |
Implements PLOTTER.
Definition at line 222 of file PS_plotter.cpp.
|
inlineinherited |
Definition at line 149 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by PLOT_CONTROLLER::GetColorMode(), LIB_SYMBOL::Plot(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), PlotDrawingSheet(), LIB_SYMBOL::PlotFields(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPDF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), plotPdfBackground(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), and DXF_PLOTTER::StartPlot().
|
inlinevirtualinherited |
Definition at line 167 of file plotter.h.
References PLOTTER::m_currentPenWidth.
Referenced by GERBER_PLOTTER::Arc(), Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), PS_PLOTTER::Circle(), Circle(), SVG_PLOTTER::Circle(), PLOTTER::markerCircle(), PLOTTER::markerLozenge(), PLOTTER::markerSquare(), SVG_PLOTTER::PenTo(), PS_PLOTTER::PlotPoly(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::Text(), and SVG_PLOTTER::Text().
|
protectedinherited |
Definition at line 144 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetGapLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 138 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetDashLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlinestatic |
Definition at line 264 of file plotters_pslike.h.
Referenced by SCH_PLOTTER::createPDFFile(), and GetDefaultPlotExtension().
|
protectedinherited |
Definition at line 132 of file plotter.cpp.
References KIGFX::RENDER_SETTINGS::GetDotLength(), PLOTTER::m_renderSettings, and PLOTTER::userToDeviceSize().
Referenced by PS_PLOTTER::SetDash(), SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlineinherited |
The IUs per decimil are an essential scaling factor when plotting; they are set and saved when establishing the viewport.
Here they can be get back again
Definition at line 225 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by PlotDrawingSheet().
|
inlineinherited |
Definition at line 158 of file plotter.h.
References PLOTTER::m_plotMirror.
Referenced by BRDITEMS_PLOTTER::PlotPadNumber().
|
inlineinherited |
Definition at line 558 of file plotter.h.
References PLOTTER::m_plotOffset.
Referenced by PlotInteractiveLayer().
|
inlineinherited |
Definition at line 228 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
Referenced by GERBER_PLOTTER::FlashPadChamferRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), BRDITEMS_PLOTTER::PlotPad(), DXF_PLOTTER::PlotPoly(), DXF_PLOTTER::ThickPoly(), and DXF_PLOTTER::ThickSegment().
|
inlineinherited |
Definition at line 227 of file plotter.h.
References PLOTTER::m_IUsPerDecimil.
|
inlineoverridevirtual |
Return the effective plot engine in use.
It's not very OO but for now is required since some things are only done with some output devices (like drill marks, emitted only for postscript
Implements PLOTTER.
Definition at line 259 of file plotters_pslike.h.
|
overridevirtual |
Create a clickable hyperlink with a rectangular click area.
aBox | is the rectangular click target |
aDestinationURL | is the target URL |
Reimplemented from PLOTTER.
Definition at line 1826 of file PDF_plotter.cpp.
References m_hyperlinksInPage.
|
overridevirtual |
Create a clickable hyperlink menu with a rectangular click area.
aBox | is the rectangular click target |
aDestURLs | is the target URL |
Reimplemented from PLOTTER.
Definition at line 1832 of file PDF_plotter.cpp.
References m_hyperlinkMenusInPage.
|
inlineinherited |
Definition at line 266 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), SCH_LABEL_BASE::Plot(), GERBER_PLOTTER::plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), GERBER_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PLOTTER::PlotText(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), and PLOTTER::Text().
|
inherited |
Draw a pattern shape number aShapeId, to coord position.
aPosition | is the position of the marker. |
aDiameter | is the diameter of the marker. |
aShapeId | is the index (used to generate forms characters). |
Definition at line 363 of file plotter.cpp.
References PLOTTER::MARKER_COUNT, PLOTTER::markerBackSlash(), PLOTTER::markerCircle(), PLOTTER::markerHBar(), PLOTTER::markerLozenge(), PLOTTER::markerSlash(), PLOTTER::markerSquare(), PLOTTER::markerVBar(), and radius.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and GENDRILL_WRITER_BASE::plotDrillMarks().
|
protectedinherited |
Plot a \ bar centered on the position.
Building block for markers
Definition at line 349 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a circle centered on the position.
Building block for markers
Definition at line 302 of file plotter.cpp.
References PLOTTER::Circle(), PLOTTER::GetCurrentLineWidth(), and radius.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a - bar centered on the position.
Building block for markers
Definition at line 335 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a lozenge centered on the position.
Building block for markers
Definition at line 308 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), PLOTTER::PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a / bar centered on the position.
Building block for markers
Definition at line 342 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a square centered on the position.
Building block for markers
Definition at line 274 of file plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), KiROUND(), PLOTTER::PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Plot a | bar centered on the position.
Building block for markers
Definition at line 356 of file plotter.cpp.
References PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Marker().
|
inlineinherited |
Definition at line 261 of file plotter.h.
References PLOTTER::PenTo().
Referenced by PLOTTER::BezierCurve(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), PLOTTER::markerBackSlash(), PLOTTER::markerHBar(), PLOTTER::markerSlash(), PLOTTER::markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), GERBER_PLOTTER::plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), GERBER_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PLOTTER::PlotText(), PLOTTER::polyArc(), DXF_PLOTTER::Rect(), Rect(), PLOTTER::Text(), PLOTTER::ThickOval(), PLOTTER::ThickSegment(), and DXF_PLOTTER::ThickSegment().
|
overridevirtual |
Open or create the plot file aFullFilename.
The base class open the file in text mode, so we should have this function overlaid for PDF files, which are binary files.
aFullFilename | is the full file name of the file to create. |
Reimplemented from PLOTTER.
Definition at line 118 of file PDF_plotter.cpp.
References PLOTTER::m_filename, and PLOTTER::m_outputFile.
Referenced by SCH_PLOTTER::createPDFFile().
|
inlineinherited |
Definition at line 155 of file plotter.h.
References PLOTTER::m_pageInfo.
|
inlineinherited |
Definition at line 277 of file plotter.h.
References PLOTTER::PenTo().
Referenced by SCH_LABEL_BASE::Plot(), GERBER_PLOTTER::PlotPoly(), DXF_PLOTTER::PlotPoly(), PLOTTER::PlotText(), and PLOTTER::Text().
|
overridevirtual |
Moveto/lineto primitive, moves the 'pen' to the specified direction.
pos | is the target position. |
plume | specifies the kind of motion: 'U' only moves the pen, 'D' draw a line from the current position and 'Z' finish the drawing and returns the 'pen' to rest (flushes the trace). |
Implements PLOTTER.
Definition at line 432 of file PDF_plotter.cpp.
References PLOTTER::m_penLastpos, PLOTTER::m_penState, m_workFile, PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
void PDF_PLOTTER::Plot3DModel | ( | const wxString & | aSourcePath, |
const std::vector< PDF_3D_VIEW > & | a3DViews | ||
) |
Definition at line 1846 of file PDF_plotter.cpp.
References _, allocPdfObject(), closePdfObject(), m_3dModelHandle, PLOTTER::m_outputFile, and startPdfObject().
|
overridevirtual |
PDF images are handles as inline, not XObject streams...
Reimplemented from PLOTTER.
Definition at line 463 of file PDF_plotter.cpp.
References allocPdfObject(), image, m_imageHandles, m_workFile, PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
virtualinherited |
Draw a polygon ( filled or not ).
aCornerList | is the corners list (a SHAPE_LINE_CHAIN). must be closed (IsClosed() == true) for a polygon. Otherwise this is a polyline. |
aFill | is the type of fill. |
aWidth | is the line width. |
aData | is an auxiliary info (mainly for gerber format). |
Reimplemented in GERBER_PLOTTER.
Definition at line 609 of file plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::IsClosed(), PLOTTER::PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
|
overridevirtual |
Polygon plotting for PDF.
Everything is supported
Implements PLOTTER.
Definition at line 400 of file PDF_plotter.cpp.
References m_workFile, SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Rect().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 1803 of file PDF_plotter.cpp.
References TEXT_ATTRIBUTES::m_Angle, TEXT_ATTRIBUTES::m_Bold, TEXT_ATTRIBUTES::m_Halign, TEXT_ATTRIBUTES::m_Italic, TEXT_ATTRIBUTES::m_Mirrored, TEXT_ATTRIBUTES::m_Multiline, TEXT_ATTRIBUTES::m_Size, TEXT_ATTRIBUTES::m_StrokeWidth, TEXT_ATTRIBUTES::m_Valign, Text(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedvirtualinherited |
Generic fallback: arc rendered as a polyline.
Note also aCentre and aRadius are double to avoid creating rounding issues due to the fact a arc is defined in Kicad by a start point, a end point and third point not angles and radius. In some plotters (i.e. dxf) whe need a good precision when calculating an arc without error introduced by rounding, to avoid moving the end points, usually important in outlines when plotting an arc given by center, radius and angles. Winding direction: counter-clockwise in right-down coordinate system.
Definition at line 181 of file plotter.cpp.
References ANGLE_0, EDA_ANGLE::Cos(), DEGREES_T, delta, end, PLOTTER::FinishTo(), KiROUND(), PLOTTER::LineTo(), PLOTTER::MoveTo(), PLOTTER::SetCurrentLineWidth(), sign(), EDA_ANGLE::Sin(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PLOTTER::Arc(), and GERBER_PLOTTER::Arc().
|
overridevirtual |
Rectangles in PDF.
Supported by the native operator.
Implements PLOTTER.
Definition at line 230 of file PDF_plotter.cpp.
References std::abs(), PLOTTER::FinishTo(), m_workFile, PLOTTER::MoveTo(), PlotPoly(), SetCurrentLineWidth(), PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineinherited |
Definition at line 152 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by PLOT_CONTROLLER::ClosePlot(), SCH_ITEM::getRenderSettings(), PCB_PLOTTER::Plot(), SCH_BITMAP::Plot(), SCH_JUNCTION::Plot(), SCH_LABEL_BASE::Plot(), SCH_NO_CONNECT::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_SCREEN::Plot(), PlotDrawingSheet(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPDF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), BRDITEMS_PLOTTER::PlotShape(), BRDITEMS_PLOTTER::PlotTableBorders(), BRDITEMS_PLOTTER::PlotText(), setupPlotterNewPDFPage(), and StartPlotBoard().
|
protectedinherited |
Sister function for the GRTextWidth in gr_text.cpp Does the same processing (i.e.
calculates a text string width) but using postscript metrics for the Helvetica font (optionally used for PS and PDF plotting
Definition at line 266 of file PS_plotter.cpp.
References hv_widths, hvb_widths, hvbo_widths, hvo_widths, KiROUND(), and PSLIKE_PLOTTER::postscriptTextAscent.
Referenced by PSLIKE_PLOTTER::computeTextParameters().
|
inline |
Definition at line 383 of file plotters_pslike.h.
References m_3dExportMode.
|
inlinevirtualinherited |
Definition at line 175 of file plotter.h.
References PLOTTER::m_author.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
overridevirtualinherited |
The SetColor implementation is split with the subclasses: the PSLIKE computes the rgb values, the subclass emits the operator to actually do it.
Implements PLOTTER.
Definition at line 64 of file PS_plotter.cpp.
References color, PSLIKE_PLOTTER::emitSetRGBColor(), PLOTTER::m_colorMode, and PLOTTER::m_negativeMode.
Referenced by SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), PS_PLOTTER::PlotText(), PS_PLOTTER::Text(), Text(), and SVG_PLOTTER::Text().
|
inlinevirtualinherited |
Plot in B/W or color.
aColorMode | use true to plot in color, false to plot in black and white. |
Definition at line 148 of file plotter.h.
References PLOTTER::m_colorMode.
Referenced by SCH_PLOTTER::createPDFFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), PLOT_CONTROLLER::SetColorMode(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlinevirtualinherited |
Definition at line 173 of file plotter.h.
References PLOTTER::m_creator.
Referenced by GERBER_WRITER::createDrillFile(), SCH_PLOTTER::createPDFFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
overridevirtual |
Pen width setting for PDF.
Since the specs explicitly says that a 0 width is a bad thing to use (since it results in 1 pixel traces), we convert such requests to the minimal width (like 1) Note pen width = 0 is used in plot polygons to plot filled polygons with no outline thickness. Use in this case pen width = 1 does not actually change the polygon.
Implements PLOTTER.
Definition at line 150 of file PDF_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), PLOTTER::m_currentPenWidth, PLOTTER::m_renderSettings, m_workFile, PLOTTER::USE_DEFAULT_LINE_WIDTH, and PLOTTER::userToDeviceSize().
Referenced by Arc(), Circle(), PlotPoly(), Rect(), and Text().
|
overridevirtual |
PDF supports dashed lines.
Implements PLOTTER.
Definition at line 188 of file PDF_plotter.cpp.
References PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), and m_workFile.
|
inlinevirtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 526 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and initializePlotter().
|
inlinevirtualinherited |
Set the current Gerber layer polarity to positive or negative by writing %LPD*% or %LPC*% to the Gerber file, respectively.
(obviously starts a new Gerber layer, too)
aPositive | is the layer polarity and true for positive. It's not useful with most other plotter since they can't 'scratch' the film like photoplotter imagers do |
Reimplemented in GERBER_PLOTTER.
Definition at line 511 of file plotter.h.
Referenced by PlotOneBoardLayer().
|
inlinevirtualinherited |
Definition at line 141 of file plotter.h.
References PLOTTER::m_negativeMode.
Referenced by FillNegativeKnockout().
|
inlinevirtualinherited |
Definition at line 154 of file plotter.h.
References PLOTTER::m_pageInfo.
Referenced by EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PLOTTER::setupPlotPagePDF(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Definition at line 157 of file plotter.h.
References PLOTTER::m_plotMirror.
|
inlineinherited |
Definition at line 151 of file plotter.h.
References PLOTTER::m_renderSettings.
Referenced by SCH_PLOTTER::createPDFFile(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), StartPlotBoard(), and SYMBOL_EDIT_FRAME::SVGPlotSymbol().
|
inlineinherited |
Set the 'fine' scaling for the postscript engine.
Definition at line 58 of file plotters_pslike.h.
References PSLIKE_PLOTTER::plotScaleAdjX, and PSLIKE_PLOTTER::plotScaleAdjY.
Referenced by StartPlotBoard().
|
inlinevirtualinherited |
Definition at line 176 of file plotter.h.
References PLOTTER::m_subject.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
inlinevirtualinherited |
Set the number of digits for mantissa in coordinates in mm for SVG plotter.
Reimplemented in SVG_PLOTTER.
Definition at line 532 of file plotter.h.
Referenced by initializePlotter().
|
inlineoverridevirtualinherited |
PS and PDF fully implement native text (for the Latin-1 subset)
Reimplemented from PLOTTER.
Definition at line 49 of file plotters_pslike.h.
References PSLIKE_PLOTTER::m_textMode.
Referenced by SVG_PLOTTER::SVG_PLOTTER().
|
inlinevirtualinherited |
Definition at line 174 of file plotter.h.
References PLOTTER::m_title.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
overridevirtual |
PDF can have multiple pages, so SetPageSettings can be called with the outputFile open (but not inside a page stream!)
Implements PLOTTER.
Definition at line 134 of file PDF_plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_IUsPerDecimil, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, and PLOTTER::m_plotScale.
|
inlinevirtualinherited |
calling this function allows one to define the beginning of a group of drawing items, for instance in SVG or Gerber format.
(example: group all segments of a letter or a text)
aData | can define any parameter for most of plotters: do nothing |
Reimplemented in GERBER_PLOTTER, and SVG_PLOTTER.
Definition at line 544 of file plotter.h.
Referenced by SCH_SYMBOL::Plot(), PlotStandardLayer(), and BRDITEMS_PLOTTER::PlotZone().
|
virtual |
Start a new page in the PDF document.
Definition at line 673 of file PDF_plotter.cpp.
References _, KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), PAGE_INFO::GetSizeMils(), m_3dExportMode, PLOTTER::m_currentPenWidth, PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_outputFile, PLOTTER::m_pageInfo, m_pageName, m_pageNumbers, m_pageStreamHandle, PLOTTER::m_paperSize, m_parentPageName, PLOTTER::m_renderSettings, m_workFile, PSLIKE_PLOTTER::plotScaleAdjX, PSLIKE_PLOTTER::plotScaleAdjY, startPdfStream(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_PLOTTER::createPDFFile(), and StartPlot().
|
protected |
Open a new PDF object and returns the handle if the parameter is -1.
Otherwise fill in the xref entry for the passed object
Definition at line 551 of file PDF_plotter.cpp.
References allocPdfObject(), PLOTTER::m_outputFile, m_workFile, and m_xrefTable.
Referenced by ClosePage(), closePdfStream(), emitGoToAction(), emitOutline(), emitOutlineNode(), EndPlot(), endPlotEmitResources(), Plot3DModel(), and startPdfStream().
|
protected |
Start a PDF stream (for the page).
handle | -1 (default) for a new object. Especially from PDF 1.5 streams can contain a lot of things, but for the moment we only handle page content. @eturn The object handle opened |
Definition at line 573 of file PDF_plotter.cpp.
References allocPdfObject(), ADVANCED_CFG::GetCfg(), PLOTTER::m_outputFile, m_streamLengthHandle, m_workFile, m_workFilename, and startPdfObject().
Referenced by StartPage().
|
overridevirtual |
The PDF engine supports multiple pages; the first one is opened 'for free' the following are to be closed and reopened.
Between each page parameters can be set.
Implements PLOTTER.
Definition at line 1012 of file PDF_plotter.cpp.
References StartPlot().
Referenced by SCH_PLOTTER::createPDFFile(), and StartPlot().
|
virtual |
Definition at line 1018 of file PDF_plotter.cpp.
References allocPdfObject(), m_bookmarksInPage, m_fontResDictHandle, m_hyperlinkHandles, m_hyperlinkMenuHandles, m_hyperlinkMenusInPage, m_hyperlinksInPage, m_imgResDictHandle, m_jsNamesHandle, m_outlineRoot, PLOTTER::m_outputFile, m_pageTreeHandle, m_totalOutlineNodes, m_xrefTable, and StartPage().
|
overridevirtual |
Draw text with the plotter.
For convenience it accept the color to use for specific plotters aData is used to pass extra parameters (GERBER).
aPos | is the text position (according to aH_justify, aV_justify). |
aColor | is the text color. |
aText | is the text to draw. |
aOrient | is the angle. |
aSize | is the text size (size.x or size.y can be < 0 for mirrored texts). |
aH_justify | is the horizontal justification (Left, center, right). |
aV_justify | is the vertical justification (bottom, center, top). |
aPenWidth | is the line width (if = 0, use plot default line width). |
aItalic | is the true to simulate an italic font. |
aBold | use true to use a bold font Useful only with default width value (aPenWidth = 0). |
aMultilineAllowed | use true to plot text as multiline, otherwise single line. |
aData | is a parameter used by some plotters in SetCurrentLineWidth(), not directly used here. |
Reimplemented from PLOTTER.
Definition at line 1689 of file PDF_plotter.cpp.
References std::abs(), PSLIKE_PLOTTER::computeTextParameters(), encodeStringForPlotter(), KIGFX::RENDER_SETTINGS::GetDefaultFont(), KIFONT::FONT::GetFont(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, PLOTTER::m_renderSettings, m_workFile, RotatePoint(), PSLIKE_PLOTTER::SetColor(), SetCurrentLineWidth(), KIFONT::FONT::StringBoundaryLimits(), PLOTTER::Text(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PlotText().
|
virtualinherited |
Definition at line 560 of file plotter.cpp.
References center, end, EDA_SHAPE::GetArcMid(), EDA_SHAPE::getCenter(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), EDA_ANGLE::Normalize(), EDA_ANGLE::NormalizeNegative(), radius, and PLOTTER::ThickArc().
Referenced by BRDITEMS_PLOTTER::PlotShape(), PlotStandardLayer(), PLOTTER::ThickArc(), and GERBER_PLOTTER::ThickArc().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 553 of file plotter.cpp.
References PLOTTER::Arc().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 591 of file plotter.cpp.
References PLOTTER::Circle().
Referenced by SCH_LABEL_BASE::Plot(), PlotLayerOutlines(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), and GERBER_PLOTTER::ThickCircle().
|
virtualinherited |
Definition at line 485 of file plotter.cpp.
References ANGLE_180, ANGLE_90, PLOTTER::Arc(), PLOTTER::FinishTo(), PLOTTER::MoveTo(), radius, RotatePoint(), PLOTTER::SetCurrentLineWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::FlashPadOval(), GENDRILL_WRITER_BASE::plotDrillMarks(), PlotLayerOutlines(), and BRDITEMS_PLOTTER::PlotPad().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 603 of file plotter.cpp.
References SHAPE_POLY_SET::COutline(), and PLOTTER::PlotPoly().
Referenced by BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), and GERBER_PLOTTER::ThickPoly().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 585 of file plotter.cpp.
References PLOTTER::Rect().
Referenced by BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), and GERBER_PLOTTER::ThickRect().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 538 of file plotter.cpp.
References PLOTTER::Circle(), end, PLOTTER::FinishTo(), PLOTTER::MoveTo(), and PLOTTER::SetCurrentLineWidth().
Referenced by PSLIKE_PLOTTER::FlashPadOval(), SCH_SHEET::Plot(), SCH_SYMBOL::PlotDNP(), BRDITEMS_PLOTTER::PlotShape(), PlotStandardLayer(), BRDITEMS_PLOTTER::PlotTableBorders(), BRDITEMS_PLOTTER::PlotText(), and GERBER_PLOTTER::ThickSegment().
Modify coordinates according to the orientation, scale factor, and offsets trace.
Also convert from a VECTOR2I to VECTOR2D, since some output engines needs floating point coordinates.
Definition at line 91 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, PLOTTER::m_yaxisReversed, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), GERBER_PLOTTER::FlashPadChamferRoundRect(), GERBER_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadTrapez(), DXF_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PenTo(), SVG_PLOTTER::PenTo(), GERBER_PLOTTER::plotArc(), PS_PLOTTER::PlotImage(), PlotImage(), DXF_PLOTTER::plotOneLineOfText(), SVG_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), PlotPoly(), PS_PLOTTER::PlotText(), DXF_PLOTTER::Rect(), PS_PLOTTER::Rect(), Rect(), SVG_PLOTTER::Rect(), GERBER_PLOTTER::selectApertureWithAttributes(), PS_PLOTTER::Text(), and SVG_PLOTTER::Text().
Modify size according to the plotter scale factors (VECTOR2I version, returns a VECTOR2D).
Definition at line 116 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_plotScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), PS_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), SVG_PLOTTER::setSVGPlotStyle(), StartPage(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::Text().
|
protectedvirtualinherited |
Modify size according to the plotter scale factors (simple double version).
Definition at line 123 of file plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, and PLOTTER::m_plotScale.
|
staticinherited |
Definition at line 124 of file plotter.h.
Referenced by GERBER_PLOTTER::FilledCircle(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), GERBER_PLOTTER::ThickPoly(), GERBER_PLOTTER::ThickRect(), and GERBER_PLOTTER::ThickSegment().
|
protected |
Definition at line 538 of file plotters_pslike.h.
Referenced by ClosePage(), EndPlot(), Set3DExport(), and StartPage().
|
protected |
Definition at line 537 of file plotters_pslike.h.
Referenced by ClosePage(), and Plot3DModel().
|
protectedinherited |
Definition at line 672 of file plotter.h.
Referenced by EndPlot(), and PLOTTER::SetAuthor().
|
protected |
Definition at line 530 of file plotters_pslike.h.
Referenced by Bookmark(), ClosePage(), and StartPlot().
|
protectedinherited |
Definition at line 663 of file plotter.h.
Referenced by endPlotEmitResources(), PLOTTER::GetColorMode(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), PLOTTER::PLOTTER(), DXF_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetColorMode().
|
protectedinherited |
Definition at line 669 of file plotter.h.
Referenced by EndPlot(), PLOTTER::SetCreator(), PS_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), and GERBER_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 665 of file plotter.h.
Referenced by PLOTTER::GetCurrentLineWidth(), PLOTTER::PLOTTER(), GERBER_PLOTTER::SetCurrentLineWidth(), DXF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), and StartPage().
|
protectedinherited |
Definition at line 670 of file plotter.h.
Referenced by EndPlot(), PLOTTER::OpenFile(), OpenFile(), and SVG_PLOTTER::StartPlot().
|
protected |
Font resource dictionary.
Definition at line 505 of file plotters_pslike.h.
Referenced by ClosePage(), endPlotEmitResources(), and StartPlot().
|
protectedinherited |
Definition at line 677 of file plotter.h.
Referenced by PLOTTER::AddLineToHeader(), PLOTTER::ClearHeaderLinesList(), and GERBER_PLOTTER::StartPlot().
|
protected |
Handles for all the hyperlink objects that will be deferred.
Definition at line 527 of file plotters_pslike.h.
Referenced by ClosePage(), endPlotEmitResources(), and StartPlot().
|
protected |
Definition at line 528 of file plotters_pslike.h.
Referenced by ClosePage(), endPlotEmitResources(), and StartPlot().
|
protected |
Definition at line 524 of file plotters_pslike.h.
Referenced by ClosePage(), HyperlinkMenu(), and StartPlot().
|
protected |
List of loaded hyperlinks in current page.
Definition at line 523 of file plotters_pslike.h.
Referenced by ClosePage(), HyperlinkBox(), and StartPlot().
|
protected |
Definition at line 532 of file plotters_pslike.h.
Referenced by endPlotEmitResources(), and PlotImage().
|
protected |
Image resource dictionary.
Definition at line 506 of file plotters_pslike.h.
Referenced by ClosePage(), endPlotEmitResources(), and StartPlot().
|
protectedinherited |
Definition at line 651 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), StartPage(), SVG_PLOTTER::StartPlot(), PLOTTER::userToDeviceCoordinates(), and PLOTTER::userToDeviceSize().
|
protectedinherited |
Definition at line 649 of file plotter.h.
Referenced by ClosePage(), GERBER_PLOTTER::EndPlot(), PLOTTER::GetIUsPerDecimil(), PLOTTER::GetPlotterArcHighDef(), PLOTTER::GetPlotterArcLowDef(), PLOTTER::PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), GERBER_PLOTTER::StartPlot(), and GERBER_PLOTTER::writeApertureList().
|
protected |
Handle for Names dictionary with JS.
Definition at line 507 of file plotters_pslike.h.
Referenced by EndPlot(), endPlotEmitResources(), and StartPlot().
|
protectedinherited |
Definition at line 656 of file plotter.h.
Referenced by SVG_PLOTTER::Arc(), ClosePage(), PLOTTER::PLOTTER(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 664 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), PSLIKE_PLOTTER::SetColor(), and PLOTTER::SetNegative().
|
protected |
Root outline node.
Definition at line 534 of file plotters_pslike.h.
Referenced by ClosePage(), emitOutline(), and StartPlot().
|
protectedinherited |
Output file.
Definition at line 660 of file plotter.h.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), SVG_PLOTTER::Circle(), GERBER_PLOTTER::ClearAllAttributes(), GERBER_PLOTTER::clearNetAttribute(), ClosePage(), closePdfObject(), closePdfStream(), GERBER_PLOTTER::emitDcode(), emitGoToAction(), emitOutline(), emitOutlineNode(), PS_PLOTTER::emitSetRGBColor(), DXF_PLOTTER::EndPlot(), GERBER_PLOTTER::EndPlot(), PS_PLOTTER::EndPlot(), EndPlot(), SVG_PLOTTER::EndPlot(), endPlotEmitResources(), DXF_PLOTTER::FlashPadCircle(), GERBER_PLOTTER::FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::formatNetAttribute(), PLOTTER::OpenFile(), OpenFile(), DXF_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), Plot3DModel(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::PlotGerberRegion(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), GERBER_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PLOTTER::PLOTTER(), PS_PLOTTER::PlotText(), DXF_PLOTTER::Rect(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), GERBER_PLOTTER::selectAperture(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetDash(), GERBER_PLOTTER::SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), PS_PLOTTER::SetViewport(), StartPage(), startPdfObject(), startPdfStream(), DXF_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), StartPlot(), GERBER_PLOTTER::StartPlot(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), GERBER_PLOTTER::writeApertureList(), and PLOTTER::~PLOTTER().
|
protected |
Handles to the page objects.
Definition at line 508 of file plotters_pslike.h.
Referenced by ClosePage(), EndPlot(), and endPlotEmitResources().
|
protectedinherited |
Definition at line 674 of file plotter.h.
Referenced by ClosePage(), PLOTTER::PageSettings(), PLOTTER::SetPageSettings(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), StartPage(), and PS_PLOTTER::StartPlot().
|
protected |
Definition at line 513 of file plotters_pslike.h.
Referenced by ClosePage(), and StartPage().
|
protected |
List of user-space page numbers for resolving internal hyperlinks.
Definition at line 520 of file plotters_pslike.h.
Referenced by endPlotEmitResources(), and StartPage().
|
protected |
Handle of the page content object.
Definition at line 509 of file plotters_pslike.h.
Referenced by ClosePage(), and StartPage().
|
protected |
Handle to the root of the page tree object.
Definition at line 504 of file plotters_pslike.h.
Referenced by ClosePage(), EndPlot(), and StartPlot().
|
protectedinherited |
Definition at line 675 of file plotter.h.
Referenced by DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), StartPage(), SVG_PLOTTER::StartPlot(), and PLOTTER::userToDeviceCoordinates().
|
protected |
Definition at line 514 of file plotters_pslike.h.
Referenced by ClosePage(), and StartPage().
|
protectedinherited |
Definition at line 667 of file plotter.h.
Referenced by DXF_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PenTo(), and SVG_PLOTTER::PenTo().
|
protectedinherited |
Definition at line 666 of file plotter.h.
Referenced by GERBER_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PenTo(), SVG_PLOTTER::PenTo(), and PLOTTER::PLOTTER().
|
protectedinherited |
Definition at line 654 of file plotter.h.
Referenced by PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), ClosePage(), PSLIKE_PLOTTER::computeTextParameters(), PLOTTER::GetPlotMirrored(), PLOTTER::PLOTTER(), PLOTTER::SetPlotMirrored(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::Text(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 653 of file plotter.h.
Referenced by PLOTTER::GetPlotOffsetUserUnits(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition at line 643 of file plotter.h.
Referenced by GERBER_PLOTTER::EndPlot(), PLOTTER::PLOTTER(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SetViewport(), SVG_PLOTTER::SetViewport(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), and GERBER_PLOTTER::writeApertureList().
|
protectedinherited |
Definition at line 681 of file plotter.h.
Referenced by endPlotEmitResources().
|
protectedinherited |
Definition at line 679 of file plotter.h.
Referenced by endPlotEmitResources(), PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), PLOTTER::PLOTTER(), PLOTTER::PlotText(), PLOTTER::RenderSettings(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PLOTTER::SetRenderSettings(), StartPage(), PS_PLOTTER::StartPlot(), GERBER_PLOTTER::StartPlot(), PLOTTER::Text(), and Text().
|
protected |
Handle to the deferred stream length.
Definition at line 510 of file plotters_pslike.h.
Referenced by closePdfStream(), and startPdfStream().
|
protectedinherited |
Definition at line 673 of file plotter.h.
Referenced by EndPlot(), and PLOTTER::SetSubject().
|
protectedinherited |
How to draw text.
Definition at line 135 of file plotters_pslike.h.
Referenced by PS_PLOTTER::PlotText(), PS_PLOTTER::PS_PLOTTER(), PSLIKE_PLOTTER::SetTextMode(), and PS_PLOTTER::Text().
|
protectedinherited |
Definition at line 671 of file plotter.h.
Referenced by EndPlot(), PLOTTER::SetTitle(), and PS_PLOTTER::StartPlot().
|
protected |
Total number of outline nodes.
Definition at line 535 of file plotters_pslike.h.
Referenced by addOutlineNode(), emitOutline(), and StartPlot().
|
protected |
Temporary file to construct the stream before zipping.
Definition at line 516 of file plotters_pslike.h.
Referenced by Arc(), Circle(), ClosePage(), closePdfObject(), closePdfStream(), emitSetRGBColor(), PenTo(), PlotImage(), PlotPoly(), Rect(), SetCurrentLineWidth(), SetDash(), StartPage(), startPdfObject(), startPdfStream(), and Text().
|
protected |
Definition at line 512 of file plotters_pslike.h.
Referenced by closePdfStream(), and startPdfStream().
|
protected |
The PDF xref offset table.
Definition at line 517 of file plotters_pslike.h.
Referenced by allocPdfObject(), EndPlot(), startPdfObject(), and StartPlot().
|
protectedinherited |
Definition at line 657 of file plotter.h.
Referenced by PLOTTER::PLOTTER(), SVG_PLOTTER::SetViewport(), and PLOTTER::userToDeviceCoordinates().
|
staticinherited |
Draw a marker (used for the drill map).
Definition at line 491 of file plotter.h.
Referenced by PLOTTER::Marker().
|
protectedinherited |
Fine user scale adjust ( = 1.0 if no correction)
Definition at line 132 of file plotters_pslike.h.
Referenced by PSLIKE_PLOTTER::SetScaleAdjust(), StartPage(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 132 of file plotters_pslike.h.
Referenced by PSLIKE_PLOTTER::SetScaleAdjust(), StartPage(), and PS_PLOTTER::StartPlot().
|
staticprotectedinherited |
Height of the postscript font (from the AFM)
Definition at line 122 of file plotters_pslike.h.
Referenced by PSLIKE_PLOTTER::computeTextParameters(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().
|
staticinherited |
Definition at line 125 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::plotDrillMarks(), PLOTTER::PlotImage(), PlotLayerOutlines(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SetCurrentLineWidth(), and SVG_PLOTTER::SetCurrentLineWidth().