44        return wxString( wxT( 
"dxf" ) );
 
 
   59    virtual bool StartPlot( 
const wxString& aPageNumber ) 
override;
 
   60    virtual bool EndPlot() 
override;
 
   82                              double aScale, 
bool aMirror ) 
override;
 
   88                       int aCornerRadius = 0 ) 
override;
 
   99                      const EDA_ANGLE& aAngle, 
double aRadius, 
FILL_T aFill, 
int aWidth ) 
override;
 
  108    virtual void PlotPoly( 
const std::vector<VECTOR2I>& aCornerList, 
FILL_T aFill, 
int aWidth,
 
  109                           void* aData = 
nullptr ) 
override;
 
  112                           void* aData = 
nullptr ) 
override;
 
  115                               void* aData ) 
override;
 
  118                           double aRadius, 
int aWidth, 
void* aData ) 
override;
 
  122    virtual void ThickCircle( 
const VECTOR2I& pos, 
int diametre, 
int width, 
void* aData ) 
override;
 
  128    virtual void PenTo( 
const VECTOR2I& pos, 
char plume ) 
override;
 
  140                               const EDA_ANGLE& aOrient, 
void* aData ) 
override;
 
  146                               const EDA_ANGLE& aOrient, 
void* aData ) 
override;
 
  148                                    int aCornerRadius, 
const EDA_ANGLE& aOrient,
 
  149                                    void* aData ) 
override;
 
  152                                 void* aData ) 
override;
 
  158                                 const EDA_ANGLE& aPadOrient, 
void* aData ) 
override;
 
  160                                      const EDA_ANGLE& aOrient, 
void* aData ) 
override;
 
  164                       const wxString&        aText,
 
  172                       bool                   aMultilineAllowed,
 
  175                       void*                  aData = 
nullptr ) 
override;
 
  179                           const wxString&        aText,
 
  183                           void*                  aData = 
nullptr ) 
override;
 
 
static const COLOR4D BLACK
 
void plotOneLineOfText(const VECTOR2I &aPos, const COLOR4D &aColor, const wxString &aText, const TEXT_ATTRIBUTES &aAttrs)
 
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 FlashPadCustom(const VECTOR2I &aPadPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, SHAPE_POLY_SET *aPolygons, void *aData) override
 
virtual void ThickCircle(const VECTOR2I &pos, int diametre, int width, void *aData) override
 
static wxString GetDefaultFileExtension()
 
void SetUnits(DXF_UNITS aUnit)
Set the units to use for plotting the DXF file.
 
virtual void SetViewport(const VECTOR2I &aOffset, double aIusPerDecimil, double aScale, bool aMirror) override
Set the scale/position for the DXF plot.
 
virtual void ThickArc(const VECTOR2D &aCentre, const EDA_ANGLE &aStAngle, const EDA_ANGLE &aAngle, double aRadius, int aWidth, void *aData) override
 
virtual void Arc(const VECTOR2D &aCenter, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle, double aRadius, FILL_T aFill, int aWidth) override
 
double GetUnitScaling() const
Get the scale factor to apply to convert the device units to be in the currently set units.
 
virtual void FlashPadOval(const VECTOR2I &aPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, void *aData) override
DXF oval pad: always done in sketch mode.
 
virtual void FlashPadRect(const VECTOR2I &aPos, const VECTOR2I &aSize, const EDA_ANGLE &aOrient, void *aData) override
DXF rectangular pad: always done in sketch mode.
 
virtual void ThickRect(const VECTOR2I &p1, const VECTOR2I &p2, int width, void *aData) override
 
virtual void FlashPadRoundRect(const VECTOR2I &aPadPos, const VECTOR2I &aSize, int aCornerRadius, const EDA_ANGLE &aOrient, void *aData) override
 
virtual void ThickPoly(const SHAPE_POLY_SET &aPoly, int aWidth, void *aData) override
 
virtual bool StartPlot(const wxString &aPageNumber) override
Open the DXF plot with a skeleton header.
 
unsigned int GetMeasurementDirective() const
Get the correct value for the $MEASUREMENT field given the current units.
 
virtual void FlashPadTrapez(const VECTOR2I &aPadPos, const VECTOR2I *aCorners, const EDA_ANGLE &aPadOrient, void *aData) override
DXF trapezoidal pad: only sketch mode is supported.
 
virtual void Circle(const VECTOR2I &pos, int diametre, FILL_T fill, int width) override
DXF circle: full functionality; it even does 'fills' drawing a circle with a dual-arc polyline wide a...
 
virtual void FlashPadCircle(const VECTOR2I &pos, int diametre, void *aData) override
DXF round pad: always done in sketch mode; it could be filled but it isn't pretty if other kinds of p...
 
virtual void FilledCircle(const VECTOR2I &pos, int diametre, void *aData) override
 
virtual void PlotPoly(const std::vector< VECTOR2I > &aCornerList, FILL_T aFill, int aWidth, void *aData=nullptr) override
DXF polygon: doesn't fill it but at least it close the filled ones DXF does not know thick outline.
 
virtual void SetTextMode(PLOT_TEXT_MODE mode) override
DXF handles NATIVE text emitting TEXT entities.
 
unsigned int m_measurementDirective
 
virtual void Rect(const VECTOR2I &p1, const VECTOR2I &p2, FILL_T fill, int width, int aCornerRadius=0) override
DXF rectangle: fill not supported.
 
virtual void SetCurrentLineWidth(int width, void *aData=nullptr) override
Set the line width for the next drawing.
 
virtual bool EndPlot() override
 
virtual void FlashRegularPolygon(const VECTOR2I &aShapePos, int aDiameter, int aCornerCount, const EDA_ANGLE &aOrient, void *aData) override
Flash a regular polygon.
 
virtual void PenTo(const VECTOR2I &pos, char plume) override
Moveto/lineto primitive, moves the 'pen' to the specified direction.
 
virtual void SetColor(const COLOR4D &color) override
The DXF exporter handles 'colors' as layers...
 
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 ThickSegment(const VECTOR2I &start, const VECTOR2I &end, int width, void *aData) override
 
virtual PLOT_FORMAT GetPlotterType() const override
Return the effective plot engine in use.
 
DXF_UNITS GetUnits() const
The units currently enabled for plotting.
 
double m_unitScalingFactor
 
virtual void SetDash(int aLineWidth, LINE_STYLE aLineStyle) override
 
LINE_STYLE m_currentLineType
 
FONT is an abstract base class for both outline and stroke fonts.
 
A color representation with 4 components: red, green, blue, alpha.
 
PLOTTER(const PROJECT *aProject=nullptr)
 
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
 
Represent a set of closed polygons.
 
PLOT_TEXT_MODE
Which kind of text to output with the PSLIKE plotters.
 
PLOT_FORMAT
The set of supported output plot formats.
 
LINE_STYLE
Dashed line types.
 
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
 
GR_TEXT_V_ALIGN_T
This is API surface mapped to common.types.VertialAlignment.
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< double > VECTOR2D