|
KiCad PCB EDA Suite
|
#include <plotters_pslike.h>
Public Member Functions | |
| SVG_PLOTTER (const PROJECT *aProject=nullptr) | |
| virtual PLOT_FORMAT | GetPlotterType () const override |
| Return the effective plot engine in use. | |
| virtual bool | StartPlot (const wxString &aPageNumber) override |
| Create SVG file header. | |
| virtual bool | EndPlot () override |
| virtual void | SetCurrentLineWidth (int width, void *aData=nullptr) override |
| Set the current line width (in IUs) for the next plot. | |
| virtual void | SetDash (int aLineWidth, LINE_STYLE aLineStyle) override |
| SVG supports dashed lines. | |
| virtual void | SetViewport (const VECTOR2I &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override |
| Set the plot offset and scaling for the current plot. | |
| virtual void | Rect (const VECTOR2I &p1, const VECTOR2I &p2, FILL_T fill, int width, int aCornerRadius=0) override |
| virtual void | Circle (const VECTOR2I &pos, int diametre, FILL_T fill, int width) override |
| virtual void | Arc (const VECTOR2D &aCenter, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) override |
| virtual void | BezierCurve (const VECTOR2I &aStart, const VECTOR2I &aControl1, const VECTOR2I &aControl2, const VECTOR2I &aEnd, int aTolerance, int aLineThickness) override |
| Generic fallback: Cubic Bezier curve rendered as a polyline. | |
| virtual void | PlotPoly (const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth, void *aData) override |
| Draw a polygon ( filled or not ). | |
| virtual void | PlotImage (const wxImage &aImage, const VECTOR2I &aPos, double aScaleFactor) override |
| PostScript-likes at the moment are the only plot engines supporting bitmaps. | |
| virtual void | PenTo (const VECTOR2I &pos, char plume) override |
| Moveto/lineto primitive, moves the 'pen' to the specified direction. | |
| virtual void | SetSvgCoordinatesFormat (unsigned aPrecision) override |
| Select SVG coordinate precision (number of digits needed for 1 mm ) (SVG plotter uses always metric unit) Should be called only after SetViewport() is called. | |
| virtual void | SetPlotBBox (const BOX2I &aBBoxIU) override |
| Set an explicit bounding box for the plotted content (in IUs). | |
| virtual void | StartBlock (void *aData) override |
| Calling this function allows one to define the beginning of a group of drawing items (used in SVG format to separate components) | |
| virtual void | EndBlock (void *aData) override |
| Calling this function allows one to define the end of a group of drawing items the group is started by StartBlock() | |
| 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 |
| 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. | |
| void | SetLayersToExport (const std::vector< std::pair< PCB_LAYER_ID, wxString > > &aLayersToExport) |
| Sets the list of layers to export to the specified vector. | |
| PCB_LAYER_ID | GetLayer () const |
| Gets the ID of the current layer. | |
| void | SetLayer (PCB_LAYER_ID aLayer) |
| Sets the ID of the current layer. | |
| virtual bool | OpenFile (const wxString &aFullFilename) |
| Open or create the plot file aFullFilename. | |
| 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) |
| void | MoveTo (const VECTOR2I &pos) |
| void | LineTo (const VECTOR2I &pos) |
| void | FinishTo (const VECTOR2I &pos) |
| void | PenFinish () |
| virtual void | PlotPoly (const SHAPE_LINE_CHAIN &aLineChain, 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) |
| virtual void | HyperlinkBox (const BOX2I &aBox, const wxString &aDestinationURL) |
| Create a clickable hyperlink with a rectangular click area. | |
| virtual void | HyperlinkMenu (const BOX2I &aBox, const std::vector< wxString > &aDestURLs) |
| Create a clickable hyperlink menu with a rectangular click area. | |
| virtual void | Bookmark (const BOX2I &aBox, const wxString &aName, const wxString &aGroupName=wxEmptyString) |
| Create a bookmark to a symbol. | |
| 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) |
| 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 | |
| virtual VECTOR2D | userToDeviceCoordinates (const VECTOR2I &aCoordinate) override |
| Modify coordinates according to the orientation, scale factor, and offsets trace. | |
| virtual void | emitSetRGBColor (double r, double g, double b, double a) override |
| Initialize m_pen_rgb_color from reduced values r, g ,b ( reduced values are 0.0 to 1.0 ) | |
| void | setSVGPlotStyle (int aLineWidth, bool aIsGroup=true, const std::string &aExtraStyle={}) |
| Output the string which define pen and brush color, shape, transparency. | |
| void | setFillMode (FILL_T fill) |
| Prepare parameters for setSVGPlotStyle() | |
| 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. | |
| virtual std::string | encodeStringForPlotter (const wxString &aUnicode) |
| convert a wxString unicode string to a char string compatible with the accepted string plotter format (convert special chars and non ascii7 chars) | |
| 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 | 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 |
Static Protected Attributes | |
| static const double | postscriptTextAscent = 0.718 |
| Height of the postscript font (from the AFM) | |
Definition at line 630 of file plotters_pslike.h.
| SVG_PLOTTER::SVG_PLOTTER | ( | const PROJECT * | aProject = nullptr | ) |
Definition at line 163 of file SVG_plotter.cpp.
References m_brush_alpha, m_brush_rgb_color, m_dashed, m_fillMode, m_graphics_changed, m_pen_rgb_color, m_precision, NO_FILL, PSLIKE_PLOTTER::PSLIKE_PLOTTER(), PSLIKE_PLOTTER::SetTextMode(), SOLID, and STROKE.
|
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 198 of file plotter.h.
References m_headerExtraLines.
Referenced by AddGerberX2Attribute(), AddGerberX2Header(), GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), and GENDRILL_WRITER_BASE::genDrillMapFile().
|
virtualinherited |
Definition at line 150 of file plotter.cpp.
References Arc(), CalcArcCenter(), cw, EDA_ANGLE::Normalize(), EDA_ANGLE::NormalizeNegative(), and radius.
Referenced by Arc(), SCH_SHAPE::Plot(), ThickArc(), and ThickOval().
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 472 of file SVG_plotter.cpp.
References ANGLE_180, EDA_ANGLE::AsRadians(), Circle(), end, FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), m_graphics_changed, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_outputFile, M_PI, PLOTTER::m_plotMirror, m_precision, NO_FILL, RotatePoint(), SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Generic fallback: Cubic Bezier curve rendered as a polyline.
In KiCad the bezier curves have 4 control points: start ctrl1 ctrl2 end
Reimplemented from PLOTTER.
Definition at line 589 of file SVG_plotter.cpp.
References PLOTTER::BezierCurve(), end, PLOTTER::GetCurrentLineWidth(), m_graphics_changed, PLOTTER::m_outputFile, m_precision, NO_FILL, SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlinevirtualinherited |
Create a bookmark to a symbol.
| aBox | is the rectangular click target |
| aSymbolReference | is the symbol schematic ref |
Reimplemented in PDF_PLOTTER.
Definition at line 528 of file plotter.h.
Referenced by SCH_LABEL_BASE::Plot(), SCH_SYMBOL::Plot(), and PlotInteractiveLayer().
|
overridevirtual |
Implements PLOTTER.
Definition at line 443 of file SVG_plotter.cpp.
References FILLED_SHAPE, PLOTTER::GetCurrentLineWidth(), m_graphics_changed, PLOTTER::m_outputFile, m_precision, NO_FILL, radius, SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), 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 206 of file plotter.h.
References m_headerExtraLines.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and StartPlotBoard().
|
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 300 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, postscriptTextAscent, returnPostscriptTextWidth(), RotatePoint(), PLOTTER::userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PDF_PLOTTER::renderWord(), and PDF_PLOTTER::Text().
|
overrideprotectedvirtual |
Initialize m_pen_rgb_color from reduced values r, g ,b ( reduced values are 0.0 to 1.0 )
Implements PSLIKE_PLOTTER.
Definition at line 368 of file SVG_plotter.cpp.
References blue, green, m_brush_alpha, m_brush_rgb_color, m_graphics_changed, m_pen_rgb_color, and red.
|
protectedvirtualinherited |
convert a wxString unicode string to a char string compatible with the accepted string plotter format (convert special chars and non ascii7 chars)
Reimplemented in PDF_PLOTTER.
Definition at line 228 of file PS_plotter.cpp.
References KI_FALLTHROUGH.
Referenced by PS_PLOTTER::PlotText(), PS_PLOTTER::StartPlot(), and PS_PLOTTER::Text().
|
overridevirtual |
Calling this function allows one to define the end of a group of drawing items the group is started by StartBlock()
| aData | should be null |
Reimplemented from PLOTTER.
Definition at line 363 of file SVG_plotter.cpp.
|
overridevirtual |
Implements PLOTTER.
Definition at line 859 of file SVG_plotter.cpp.
References PLOTTER::m_outputFile.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::plotOneSheetSVG(), and KICAD_DIFF::RenderSceneToSvg().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 520 of file plotter.cpp.
References Circle(), and FILLED_SHAPE.
Referenced by SCH_LABEL_BASE::Plot().
|
inlineinherited |
Definition at line 318 of file plotter.h.
References PenTo().
Referenced by BezierCurve(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), Marker(), markerBackSlash(), markerHBar(), markerSlash(), markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), PlotDrawingSheet(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), polyArc(), DXF_PLOTTER::Rect(), PDF_PLOTTER::Rect(), ThickOval(), DXF_PLOTTER::ThickSegment(), GERBER_PLOTTER::ThickSegment(), and 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 116 of file PS_plotter.cpp.
References PLOTTER::Circle(), and FILLED_SHAPE.
|
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 178 of file PS_plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), FILLED_SHAPE, 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 90 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 122 of file PS_plotter.cpp.
References FILLED_SHAPE, 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 155 of file PS_plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), ERROR_INSIDE, FILLED_SHAPE, 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 200 of file PS_plotter.cpp.
References FILLED_SHAPE, 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 220 of file PS_plotter.cpp.
|
inlineinherited |
Definition at line 164 of file plotter.h.
References m_colorMode.
Referenced by 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::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), plotPdfBackground(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), and DXF_PLOTTER::StartPlot().
|
inlinevirtualinherited |
Definition at line 182 of file plotter.h.
References m_currentPenWidth.
Referenced by GERBER_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SVG_PLOTTER::BezierCurve(), PDF_PLOTTER::Circle(), PS_PLOTTER::Circle(), SVG_PLOTTER::Circle(), Marker(), markerCircle(), markerLozenge(), markerSquare(), SVG_PLOTTER::PenTo(), PS_PLOTTER::PlotPoly(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), and ThickSegment().
|
protectedinherited |
Definition at line 144 of file plotter.cpp.
References m_renderSettings, and userToDeviceSize().
Referenced by PDF_PLOTTER::SetDash(), PS_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
protectedinherited |
Definition at line 138 of file plotter.cpp.
References m_renderSettings, and userToDeviceSize().
Referenced by PDF_PLOTTER::SetDash(), PS_PLOTTER::SetDash(), and SVG_PLOTTER::setSVGPlotStyle().
|
inlinestatic |
Definition at line 635 of file plotters_pslike.h.
Referenced by SCH_PLOTTER::createSVGFiles(), and GetDefaultPlotExtension().
|
protectedinherited |
Definition at line 132 of file plotter.cpp.
References m_renderSettings, and userToDeviceSize().
Referenced by PDF_PLOTTER::SetDash(), PS_PLOTTER::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 271 of file plotter.h.
References m_IUsPerDecimil.
Referenced by PlotDrawingSheet().
|
inlineinherited |
Gets the ID of the current layer.
This function returns the ID of the layer that the current item is on.
Definition at line 243 of file plotter.h.
References m_layer.
Referenced by DXF_PLOTTER::GetCurrentLayerName().
|
inlineinherited |
Definition at line 173 of file plotter.h.
References m_plotMirror.
|
inlineinherited |
Definition at line 615 of file plotter.h.
References m_plotOffset.
Referenced by PlotInteractiveLayer(), and plotPdfBackground().
|
inlineinherited |
Definition at line 274 of file plotter.h.
References m_IUsPerDecimil.
Referenced by GERBER_PLOTTER::FlashPadChamferRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), PNG_PLOTTER::FlashPadRoundRect(), PSLIKE_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::PlotPoly(), DXF_PLOTTER::ThickPoly(), and DXF_PLOTTER::ThickSegment().
|
inlineinherited |
Definition at line 273 of file plotter.h.
References 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 640 of file plotters_pslike.h.
References SVG.
|
inlinevirtualinherited |
Create a clickable hyperlink with a rectangular click area.
| aBox | is the rectangular click target |
| aDestinationURL | is the target URL |
Reimplemented in PDF_PLOTTER.
Definition at line 506 of file plotter.h.
Referenced by SCH_LABEL_BASE::Plot(), SCH_SHEET::Plot(), SCH_TEXT::Plot(), and SCH_TEXTBOX::Plot().
|
inlinevirtualinherited |
Create a clickable hyperlink menu with a rectangular click area.
| aBox | is the rectangular click target |
| aDestURLs | is the target URL |
Reimplemented in PDF_PLOTTER.
Definition at line 517 of file plotter.h.
Referenced by SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_SHEET::Plot(), SCH_SYMBOL::Plot(), and PlotInteractiveLayer().
|
inlineinherited |
Definition at line 313 of file plotter.h.
References PenTo().
Referenced by BezierCurve(), PDF_PLOTTER::drawOverbars(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), SCH_LABEL_BASE::Plot(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinType(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PlotText(), polyArc(), DXF_PLOTTER::Rect(), and 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 DRILL_MARKERS::BuildMarker(), DRILL_MARKERS::MARKER_PART::CIRCLE, Circle(), FinishTo(), GetCurrentLineWidth(), MoveTo(), NO_FILL, PlotPoly(), DRILL_MARKERS::MARKER_PART::POLYLINE, radius, and DRILL_MARKERS::MARKER_PART::SEGMENT.
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 FinishTo(), MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Plot a circle centered on the position.
Building block for markers
Definition at line 302 of file plotter.cpp.
References Circle(), GetCurrentLineWidth(), NO_FILL, and radius.
|
protectedinherited |
Plot a - bar centered on the position.
Building block for markers
Definition at line 335 of file plotter.cpp.
References FinishTo(), MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Plot a lozenge centered on the position.
Building block for markers
Definition at line 308 of file plotter.cpp.
References GetCurrentLineWidth(), NO_FILL, PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Plot a / bar centered on the position.
Building block for markers
Definition at line 342 of file plotter.cpp.
References FinishTo(), MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Plot a square centered on the position.
Building block for markers
Definition at line 274 of file plotter.cpp.
References GetCurrentLineWidth(), KiROUND(), NO_FILL, PlotPoly(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Plot a | bar centered on the position.
Building block for markers
Definition at line 356 of file plotter.cpp.
References FinishTo(), MoveTo(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineinherited |
Definition at line 308 of file plotter.h.
References PenTo().
Referenced by BezierCurve(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PDF_PLOTTER::drawOverbars(), DXF_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadRect(), DXF_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), Marker(), markerBackSlash(), markerHBar(), markerSlash(), markerVBar(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_TABLE::Plot(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::plotArc(), PlotDrawingSheet(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PlotText(), polyArc(), DXF_PLOTTER::Rect(), PDF_PLOTTER::Rect(), Text(), ThickOval(), DXF_PLOTTER::ThickSegment(), GERBER_PLOTTER::ThickSegment(), and ThickSegment().
|
virtualinherited |
Open or create the plot file aFullFilename.
| aFullFilename | is the full file name of the file to create. |
Virtual because some plotters use ascii files, some others binary files (PDF) The base class open the file in text mode
Reimplemented in PDF_PLOTTER, and PNG_PLOTTER.
Definition at line 75 of file plotter.cpp.
References m_filename, and m_outputFile.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GERBER_WRITER::createDrillFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), plotSilkBBox(), KICAD_DIFF::RenderSceneToSvg(), and StartPlotBoard().
|
inlineinherited |
|
inlineinherited |
Definition at line 324 of file plotter.h.
References PenTo().
Referenced by PDF_PLOTTER::drawOverbars(), SCH_LABEL_BASE::Plot(), DXF_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), PlotText(), and 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 730 of file SVG_plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), m_fillMode, m_graphics_changed, PLOTTER::m_outputFile, PLOTTER::m_penLastpos, PLOTTER::m_penState, m_precision, NO_FILL, setFillMode(), setSVGPlotStyle(), userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
PostScript-likes at the moment are the only plot engines supporting bitmaps.
Reimplemented from PLOTTER.
Definition at line 673 of file SVG_plotter.cpp.
References base64::encode(), image, PLOTTER::m_colorMode, PLOTTER::m_outputFile, m_precision, PLOTTER::PlotImage(), userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
virtualinherited |
Draw a polygon ( filled or not ).
| aLineChain | is a list of segments and arcs. 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 DXF_PLOTTER, GERBER_PLOTTER, PDF_PLOTTER, PS_PLOTTER, and RECORDING_GERBER_PLOTTER.
Definition at line 532 of file plotter.cpp.
References SHAPE_LINE_CHAIN::CPoint(), SHAPE_LINE_CHAIN::IsClosed(), PlotPoly(), and SHAPE_LINE_CHAIN::PointCount().
|
overridevirtual |
Draw a polygon ( filled or not ).
| aCornerList | is the corners list (a std::vector< VECTOR2I >). |
| aFill | is the type of fill. |
| aWidth | is the line width. |
| aData | is an auxiliary info (mainly for gerber format). |
Implements PLOTTER.
Definition at line 622 of file SVG_plotter.cpp.
References CROSS_HATCH, FILLED_SHAPE, FILLED_WITH_BG_BODYCOLOR, FILLED_WITH_COLOR, HATCH, PLOTTER::m_outputFile, m_precision, NO_FILL, REVERSE_HATCH, SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Reimplemented from PLOTTER.
Definition at line 989 of file SVG_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(), and VECTOR2< T >::x.
|
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, FinishTo(), KiROUND(), LineTo(), MoveTo(), NO_FILL, SetCurrentLineWidth(), sign(), EDA_ANGLE::Sin(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GERBER_PLOTTER::Arc(), and Arc().
|
overridevirtual |
Implements PLOTTER.
Definition at line 397 of file SVG_plotter.cpp.
References PLOTTER::GetCurrentLineWidth(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetPosition(), BOX2< Vec >::GetSize(), m_graphics_changed, PLOTTER::m_outputFile, m_precision, BOX2< Vec >::Normalize(), SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_PLOTTER::plotOneSheetSVG().
|
inlineinherited |
Definition at line 167 of file plotter.h.
References m_renderSettings.
Referenced by GenerateLayerPoly(), DXF_PLOTTER::GetCurrentLayerName(), SCH_ITEM::getRenderSettings(), PCB_PLOTTER::Plot(), SCH_BITMAP::Plot(), SCH_JUNCTION::Plot(), SCH_LABEL_BASE::Plot(), SCH_NO_CONNECT::Plot(), SCH_SCREEN::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), PlotDrawingSheet(), PlotLayerOutlines(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPDF(), SCH_PLOTTER::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), setupPlotterNewPDFPage(), DXF_PLOTTER::StartPlot(), 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 264 of file PS_plotter.cpp.
References hv_widths, hvb_widths, hvbo_widths, hvo_widths, KiROUND(), and postscriptTextAscent.
Referenced by computeTextParameters().
|
inlinevirtualinherited |
Definition at line 190 of file plotter.h.
References 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 62 of file PS_plotter.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, emitSetRGBColor(), KIGFX::COLOR4D::g, PLOTTER::m_colorMode, PLOTTER::m_negativeMode, KIGFX::COLOR4D::r, and COLOR4D::WHITE.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), PS_PLOTTER::PlotText(), PDF_PLOTTER::Text(), PS_PLOTTER::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 163 of file plotter.h.
References m_colorMode.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::createPDFFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), RenderDiffToPng(), RenderGerberToPng(), KICAD_DIFF::RenderSceneToPng(), and KICAD_DIFF::RenderSceneToSvg().
|
inlinevirtualinherited |
Definition at line 188 of file plotter.h.
References m_creator.
Referenced by GERBER_WRITER::createDrillFile(), SCH_PLOTTER::createPDFFile(), PLACEFILE_GERBER_WRITER::CreatePlaceFile(), GERBER_WRITER::createProtectionFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), and SCH_PLOTTER::plotOneSheetSVG().
|
overridevirtual |
Set the current line width (in IUs) for the next plot.
Implements PLOTTER.
Definition at line 337 of file SVG_plotter.cpp.
References PLOTTER::DO_NOT_SET_LINE_WIDTH, PLOTTER::m_currentPenWidth, m_graphics_changed, PLOTTER::m_renderSettings, and PLOTTER::USE_DEFAULT_LINE_WIDTH.
Referenced by Arc(), BezierCurve(), Circle(), PlotPoly(), Rect(), and Text().
|
overridevirtual |
SVG supports dashed lines.
Implements PLOTTER.
Definition at line 387 of file SVG_plotter.cpp.
References m_dashed, and m_graphics_changed.
|
protected |
Prepare parameters for setSVGPlotStyle()
Definition at line 229 of file SVG_plotter.cpp.
References m_fillMode, and m_graphics_changed.
Referenced by Arc(), BezierCurve(), Circle(), PenTo(), PlotPoly(), Rect(), and Text().
|
inlinevirtualinherited |
Reimplemented in GERBER_PLOTTER.
Definition at line 572 of file plotter.h.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), and initializePlotter().
|
inlineinherited |
Sets the ID of the current layer.
This function sets the ID of the layer for the current item.
| aLayer | The ID of the layer to be set. |
Definition at line 252 of file plotter.h.
References m_layer.
Referenced by PCB_PLOTTER::Plot().
|
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 557 of file plotter.h.
Referenced by PlotOneBoardLayer().
|
inlineinherited |
Sets the list of layers to export to the specified vector.
This function updates the member variable m_layersToExport with the vector provided in aLayersToExport.
| aLayersToExport | The vector containing the names of layers to export. This updates the internal list of layers that will be processed for export. |
Definition at line 234 of file plotter.h.
References m_layersToExport.
Referenced by StartPlotBoard().
|
inlinevirtualinherited |
Definition at line 156 of file plotter.h.
References m_negativeMode.
Referenced by FillNegativeKnockout().
|
inlinevirtualinherited |
Definition at line 169 of file plotter.h.
References m_pageInfo.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), initializePlotter(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), and SCH_PLOTTER::setupPlotPagePDF().
|
overridevirtual |
Set an explicit bounding box for the plotted content (in IUs).
When set, the SVG width/height and viewBox are derived from this box transformed to device units, so the plotted content keeps its origin at the SVG origin even when it extends to negative coordinates. When not set, the page size is used.
| aBBoxIU | the bounding box of the content to plot, in plotter coordinates. |
Reimplemented from PLOTTER.
Definition at line 207 of file SVG_plotter.cpp.
References m_plotBBoxIU.
|
inlineinherited |
Definition at line 172 of file plotter.h.
References m_plotMirror.
|
inlineinherited |
Definition at line 166 of file plotter.h.
References m_renderSettings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::createPDFFile(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_PLOTTER::plotOneSheetDXF(), SCH_PLOTTER::plotOneSheetPNG(), SCH_PLOTTER::plotOneSheetPS(), SCH_PLOTTER::plotOneSheetSVG(), plotSilkBBox(), and StartPlotBoard().
|
inlineinherited |
Set the 'fine' scaling for the postscript engine.
Definition at line 64 of file plotters_pslike.h.
References plotScaleAdjX, and plotScaleAdjY.
Referenced by StartPlotBoard().
|
inlinevirtualinherited |
Definition at line 191 of file plotter.h.
References m_subject.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
overridevirtual |
Select SVG coordinate precision (number of digits needed for 1 mm ) (SVG plotter uses always metric unit) Should be called only after SetViewport() is called.
| aPrecision | = number of digits in mantissa of coordinate use a value from 3-6 do not use value > 6 to avoid overflow in PCBNEW do not use value > 4 to avoid overflow for other parts |
Reimplemented from PLOTTER.
Definition at line 199 of file SVG_plotter.cpp.
References m_precision.
Referenced by SetViewport().
|
protected |
Output the string which define pen and brush color, shape, transparency.
| aIsGroup | If false, do not form a new group for the style. |
| aExtraStyle | If given, the string will be added into the style string before closing |
Definition at line 239 of file SVG_plotter.cpp.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, FILLED_SHAPE, FILLED_WITH_BG_BODYCOLOR, FILLED_WITH_COLOR, PLOTTER::GetDashGapLenIU(), PLOTTER::GetDashMarkLenIU(), PLOTTER::GetDotMarkLenIU(), m_brush_alpha, m_brush_rgb_color, m_dashed, m_fillMode, m_graphics_changed, PLOTTER::m_outputFile, m_pen_rgb_color, m_precision, NO_FILL, SOLID, and PLOTTER::userToDeviceSize().
Referenced by Arc(), BezierCurve(), Circle(), PenTo(), PlotPoly(), Rect(), and Text().
|
inlineoverridevirtualinherited |
PS and PDF fully implement native text (for the Latin-1 subset)
Reimplemented from PLOTTER.
Definition at line 55 of file plotters_pslike.h.
References DEFAULT, and m_textMode.
Referenced by SVG_PLOTTER::SVG_PLOTTER().
|
inlinevirtualinherited |
Definition at line 189 of file plotter.h.
References m_title.
Referenced by SCH_PLOTTER::createPDFFile(), and PCB_PLOTTER::Plot().
|
overridevirtual |
Set the plot offset and scaling for the current plot.
| aOffset | is the plot offset. |
| aIusPerDecimil | gives the scaling factor from IUs to device units |
| aScale | is the user set plot scaling factor (either explicitly or using 'fit to A4'). |
| aMirror | flips the plot in the Y direction (useful for toner transfers or some kind of film). |
Implements PLOTTER.
Definition at line 177 of file SVG_plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_IUsPerDecimil, PLOTTER::m_pageInfo, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, PLOTTER::m_yaxisReversed, and SetSvgCoordinatesFormat().
Referenced by BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::plotOneSheetSVG(), and KICAD_DIFF::RenderSceneToSvg().
|
overridevirtual |
Calling this function allows one to define the beginning of a group of drawing items (used in SVG format to separate components)
| aData | should be a string for the SVG ID tag |
Reimplemented from PLOTTER.
Definition at line 355 of file SVG_plotter.cpp.
|
overridevirtual |
Create SVG file header.
Implements PLOTTER.
Definition at line 778 of file SVG_plotter.cpp.
References GetISO8601CurrentDateTime(), m_brush_alpha, m_brush_rgb_color, PLOTTER::m_creator, PLOTTER::m_filename, PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_outputFile, PLOTTER::m_paperSize, m_pen_rgb_color, m_plotBBoxIU, PLOTTER::m_plotMirror, PLOTTER::m_plotOffset, PLOTTER::m_plotScale, m_precision, TO_UTF8, VECTOR2< T >::x, XmlEsc(), and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_PLOTTER::plotOneSheetSVG(), and KICAD_DIFF::RenderSceneToSvg().
|
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. |
If the text is mirrored, we should also mirror the hidden text to match
Reimplemented from PLOTTER.
Definition at line 869 of file SVG_plotter.cpp.
References std::abs(), EDA_ANGLE::AsDegrees(), EXPRESSION_EVALUATOR::Evaluate(), PLOTTER::GetCurrentLineWidth(), 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, GRTextWidth(), EDA_ANGLE::IsZero(), m_graphics_changed, PLOTTER::m_outputFile, PLOTTER::m_plotMirror, m_precision, NO_FILL, PSLIKE_PLOTTER::SetColor(), SetCurrentLineWidth(), setFillMode(), setSVGPlotStyle(), PLOTTER::Text(), text, TO_UTF8, userToDeviceCoordinates(), PLOTTER::userToDeviceSize(), VECTOR2< T >::x, XmlEsc(), and VECTOR2< T >::y.
Referenced by PlotText().
|
virtualinherited |
Definition at line 483 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 ThickArc().
Referenced by PlotStandardLayer(), GERBER_PLOTTER::ThickArc(), and ThickArc().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 476 of file plotter.cpp.
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 514 of file plotter.cpp.
References Circle(), and NO_FILL.
Referenced by SCH_LABEL_BASE::Plot(), PlotLayerOutlines(), and GERBER_PLOTTER::ThickCircle().
|
virtualinherited |
Definition at line 388 of file plotter.cpp.
References ANGLE_180, ANGLE_90, Arc(), FinishTo(), MoveTo(), NO_FILL, radius, RotatePoint(), SetCurrentLineWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::FlashPadOval(), GENDRILL_WRITER_BASE::plotDrillMarks(), and PlotLayerOutlines().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 526 of file plotter.cpp.
References SHAPE_POLY_SET::COutline(), NO_FILL, and PlotPoly().
Referenced by GERBER_PLOTTER::ThickPoly().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 508 of file plotter.cpp.
References NO_FILL, and Rect().
Referenced by GERBER_PLOTTER::ThickRect().
|
virtualinherited |
Reimplemented in DXF_PLOTTER, and GERBER_PLOTTER.
Definition at line 441 of file plotter.cpp.
References Circle(), DO_NOT_SET_LINE_WIDTH, end, FILLED_SHAPE, FinishTo(), GetCurrentLineWidth(), MoveTo(), SetCurrentLineWidth(), and USE_DEFAULT_LINE_WIDTH.
Referenced by PNG_PLOTTER::FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), SCH_SHEET::Plot(), SCH_SYMBOL::PlotDNP(), PlotStandardLayer(), and GERBER_PLOTTER::ThickSegment().
|
overrideprotectedvirtual |
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.
Reimplemented from PLOTTER.
Definition at line 213 of file SVG_plotter.cpp.
References PLOTTER::m_iuPerDeviceUnit, PLOTTER::m_mirrorIsHorizontal, PLOTTER::m_paperSize, PLOTTER::m_plotMirror, PLOTTER::userToDeviceCoordinates(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Arc(), BezierCurve(), Circle(), PenTo(), PlotImage(), PlotPoly(), Rect(), and Text().
Modify size according to the plotter scale factors (VECTOR2I version, returns a VECTOR2D).
Reimplemented in PNG_PLOTTER.
Definition at line 116 of file plotter.cpp.
References m_iuPerDeviceUnit, m_plotScale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DXF_PLOTTER::Arc(), PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), DXF_PLOTTER::Circle(), PDF_PLOTTER::Circle(), PS_PLOTTER::Circle(), SVG_PLOTTER::Circle(), PSLIKE_PLOTTER::computeTextParameters(), GetDashGapLenIU(), GetDashMarkLenIU(), GetDotMarkLenIU(), PDF_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), SVG_PLOTTER::Rect(), PDF_PLOTTER::renderWord(), PDF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::setSVGPlotStyle(), PDF_PLOTTER::StartPage(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::Text().
|
protectedvirtualinherited |
Modify size according to the plotter scale factors (simple double version).
Reimplemented in PNG_PLOTTER.
Definition at line 123 of file plotter.cpp.
References m_iuPerDeviceUnit, and m_plotScale.
|
staticinherited |
Definition at line 139 of file plotter.h.
Referenced by GERBER_PLOTTER::FilledCircle(), GERBER_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::ThickArc(), GERBER_PLOTTER::ThickCircle(), GERBER_PLOTTER::ThickPoly(), GERBER_PLOTTER::ThickRect(), GERBER_PLOTTER::ThickSegment(), and ThickSegment().
|
protectedinherited |
Definition at line 729 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), and SetAuthor().
|
protected |
Definition at line 775 of file plotters_pslike.h.
Referenced by emitSetRGBColor(), setSVGPlotStyle(), StartPlot(), and SVG_PLOTTER().
|
protected |
Definition at line 774 of file plotters_pslike.h.
Referenced by emitSetRGBColor(), setSVGPlotStyle(), StartPlot(), and SVG_PLOTTER().
|
protectedinherited |
Definition at line 720 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources(), GetColorMode(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), PLOTTER(), DXF_PLOTTER::SetColor(), PNG_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and SetColorMode().
|
protectedinherited |
Definition at line 726 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), SetCreator(), GERBER_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), and SVG_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 722 of file plotter.h.
Referenced by GetCurrentLineWidth(), PLOTTER(), DXF_PLOTTER::SetCurrentLineWidth(), GERBER_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), PNG_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::StartPage(), and PNG_PLOTTER::StartPlot().
|
protected |
Definition at line 778 of file plotters_pslike.h.
Referenced by SetDash(), setSVGPlotStyle(), and SVG_PLOTTER().
|
protectedinherited |
Definition at line 727 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), PNG_PLOTTER::EndPlot(), PDF_PLOTTER::OpenFile(), OpenFile(), PNG_PLOTTER::OpenFile(), and SVG_PLOTTER::StartPlot().
|
protected |
Definition at line 769 of file plotters_pslike.h.
Referenced by PenTo(), setFillMode(), setSVGPlotStyle(), and SVG_PLOTTER().
|
protected |
Definition at line 776 of file plotters_pslike.h.
Referenced by Arc(), BezierCurve(), Circle(), emitSetRGBColor(), PenTo(), Rect(), SetCurrentLineWidth(), SetDash(), setFillMode(), setSVGPlotStyle(), SVG_PLOTTER(), and Text().
|
protectedinherited |
Definition at line 734 of file plotter.h.
Referenced by AddLineToHeader(), ClearHeaderLinesList(), and GERBER_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 708 of file plotter.h.
Referenced by PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PNG_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), PNG_PLOTTER::userToDeviceCoordinates(), SVG_PLOTTER::userToDeviceCoordinates(), userToDeviceSize(), userToDeviceSize(), and PNG_PLOTTER::userToDeviceSize().
|
protectedinherited |
Definition at line 706 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), GERBER_PLOTTER::EndPlot(), GetIUsPerDecimil(), GetPlotterArcHighDef(), GetPlotterArcLowDef(), PLOTTER(), GERBER_PLOTTER::SetGerberCoordinatesFormat(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PNG_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), GERBER_PLOTTER::StartPlot(), and GERBER_PLOTTER::writeApertureList().
|
protectedinherited |
Definition at line 741 of file plotter.h.
Referenced by DXF_PLOTTER::GetCurrentLayerName(), GetLayer(), PLOTTER(), and SetLayer().
|
protectedinherited |
Definition at line 739 of file plotter.h.
Referenced by DXF_PLOTTER::GetCurrentLayerName(), SetLayersToExport(), and DXF_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 713 of file plotter.h.
Referenced by SVG_PLOTTER::Arc(), PDF_PLOTTER::ClosePage(), PLOTTER(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), and SVG_PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 721 of file plotter.h.
Referenced by PLOTTER(), PNG_PLOTTER::SetColor(), PSLIKE_PLOTTER::SetColor(), and SetNegative().
|
protectedinherited |
Output file.
Definition at line 717 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(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::closePdfObject(), PDF_PLOTTER::closePdfStream(), GERBER_PLOTTER::emitDcode(), DXF_PLOTTER::emitEntityHandle(), PDF_PLOTTER::emitGoToAction(), PDF_PLOTTER::emitGoToAction(), PDF_PLOTTER::emitOutline(), PDF_PLOTTER::emitOutlineFonts(), PDF_PLOTTER::emitOutlineNode(), PS_PLOTTER::emitSetRGBColor(), PDF_PLOTTER::emitStrokeFonts(), DXF_PLOTTER::emitSymbolTableHeader(), DXF_PLOTTER::EndPlot(), GERBER_PLOTTER::EndPlot(), PDF_PLOTTER::EndPlot(), PS_PLOTTER::EndPlot(), SVG_PLOTTER::EndPlot(), PDF_PLOTTER::endPlotEmitResources(), DXF_PLOTTER::FlashPadCircle(), DXF_PLOTTER::FlashPadOval(), GERBER_PLOTTER::FlashPadOval(), PSLIKE_PLOTTER::FlashPadOval(), DXF_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRect(), GERBER_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadTrapez(), GERBER_PLOTTER::formatNetAttribute(), PDF_PLOTTER::OpenFile(), OpenFile(), PNG_PLOTTER::OpenFile(), DXF_PLOTTER::PenTo(), GERBER_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), PDF_PLOTTER::Plot3DModel(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::plotArc(), GERBER_PLOTTER::PlotGerberRegion(), GERBER_PLOTTER::PlotGerberRegion(), PS_PLOTTER::PlotImage(), SVG_PLOTTER::PlotImage(), DXF_PLOTTER::plotOneLineOfText(), GERBER_PLOTTER::PlotPoly(), GERBER_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), GERBER_PLOTTER::plotRoundRectAsRegion(), PLOTTER(), PS_PLOTTER::PlotText(), PNG_PLOTTER::PNG_PLOTTER(), DXF_PLOTTER::Rect(), PS_PLOTTER::Rect(), SVG_PLOTTER::Rect(), GERBER_PLOTTER::selectAperture(), GERBER_PLOTTER::selectAperture(), PS_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetDash(), GERBER_PLOTTER::SetLayerPolarity(), SVG_PLOTTER::setSVGPlotStyle(), PS_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), PDF_PLOTTER::startPdfObject(), PDF_PLOTTER::startPdfStream(), DXF_PLOTTER::StartPlot(), GERBER_PLOTTER::StartPlot(), PDF_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), SVG_PLOTTER::StartPlot(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), GERBER_PLOTTER::writeApertureList(), DXF_PLOTTER::writeObjectsSection(), and ~PLOTTER().
|
protectedinherited |
Definition at line 731 of file plotter.h.
Referenced by PDF_PLOTTER::ClosePage(), PageSettings(), SetPageSettings(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 732 of file plotter.h.
Referenced by DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), PDF_PLOTTER::StartPage(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), and SVG_PLOTTER::userToDeviceCoordinates().
|
protected |
Definition at line 771 of file plotters_pslike.h.
Referenced by emitSetRGBColor(), setSVGPlotStyle(), StartPlot(), and SVG_PLOTTER().
|
protectedinherited |
Definition at line 724 of file plotter.h.
Referenced by DXF_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), PNG_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), and SVG_PLOTTER::PenTo().
|
protectedinherited |
Definition at line 723 of file plotter.h.
Referenced by GERBER_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), PNG_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), and PLOTTER().
|
protected |
Definition at line 784 of file plotters_pslike.h.
Referenced by SetPlotBBox(), and StartPlot().
|
protectedinherited |
Definition at line 711 of file plotter.h.
Referenced by PS_PLOTTER::Arc(), SVG_PLOTTER::Arc(), PDF_PLOTTER::ClosePage(), PSLIKE_PLOTTER::computeTextParameters(), GetPlotMirrored(), PLOTTER(), SetPlotMirrored(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PNG_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), SVG_PLOTTER::Text(), userToDeviceCoordinates(), PNG_PLOTTER::userToDeviceCoordinates(), and SVG_PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Definition at line 710 of file plotter.h.
Referenced by GetPlotOffsetUserUnits(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PNG_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), and PNG_PLOTTER::userToDeviceCoordinates().
|
protectedinherited |
Plot scale - chosen by the user (even implicitly with 'fit in a4')
Definition at line 700 of file plotter.h.
Referenced by GERBER_PLOTTER::EndPlot(), PLOTTER(), DXF_PLOTTER::SetViewport(), GERBER_PLOTTER::SetViewport(), PDF_PLOTTER::SetViewport(), PNG_PLOTTER::SetViewport(), PS_PLOTTER::SetViewport(), SVG_PLOTTER::SetViewport(), SVG_PLOTTER::StartPlot(), userToDeviceCoordinates(), PNG_PLOTTER::userToDeviceCoordinates(), userToDeviceSize(), userToDeviceSize(), PNG_PLOTTER::userToDeviceSize(), and GERBER_PLOTTER::writeApertureList().
|
protected |
Definition at line 779 of file plotters_pslike.h.
Referenced by Arc(), BezierCurve(), Circle(), PenTo(), PlotImage(), PlotPoly(), Rect(), SetSvgCoordinatesFormat(), setSVGPlotStyle(), StartPlot(), SVG_PLOTTER(), and Text().
|
protectedinherited |
Definition at line 738 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources(), and PLOTTER().
|
protectedinherited |
Definition at line 736 of file plotter.h.
Referenced by PDF_PLOTTER::endPlotEmitResources(), GetDashGapLenIU(), GetDashMarkLenIU(), GetDotMarkLenIU(), PLOTTER(), PlotText(), RenderSettings(), GERBER_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), SetRenderSettings(), PDF_PLOTTER::StartPage(), GERBER_PLOTTER::StartPlot(), PS_PLOTTER::StartPlot(), PDF_PLOTTER::Text(), and Text().
|
protectedinherited |
Definition at line 730 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), and SetSubject().
|
protectedinherited |
How to draw text.
Definition at line 141 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 728 of file plotter.h.
Referenced by PDF_PLOTTER::EndPlot(), SetTitle(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 714 of file plotter.h.
Referenced by PNG_PLOTTER::GetYAxisReversed(), PLOTTER(), SVG_PLOTTER::SetViewport(), PNG_PLOTTER::SetYAxisReversed(), userToDeviceCoordinates(), and PNG_PLOTTER::userToDeviceCoordinates().
|
staticinherited |
|
protectedinherited |
Fine user scale adjust ( = 1.0 if no correction)
Definition at line 138 of file plotters_pslike.h.
Referenced by PSLIKE_PLOTTER(), SetScaleAdjust(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
protectedinherited |
Definition at line 138 of file plotters_pslike.h.
Referenced by PSLIKE_PLOTTER(), SetScaleAdjust(), PDF_PLOTTER::StartPage(), and PS_PLOTTER::StartPlot().
|
staticprotectedinherited |
Height of the postscript font (from the AFM)
Definition at line 128 of file plotters_pslike.h.
Referenced by computeTextParameters(), and returnPostscriptTextWidth().
|
staticinherited |
Definition at line 140 of file plotter.h.
Referenced by BRDITEMS_PLOTTER::PlotChartSymbols(), GENDRILL_WRITER_BASE::plotDrillMarks(), BRDITEMS_PLOTTER::PlotDrillSymbols(), PlotImage(), PlotLayerOutlines(), GERBER_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), and ThickSegment().