KiCad PCB EDA Suite
HPGL_PLOTTER::HPGL_ITEM Struct Reference

#include <plotter_hpgl.h>

Public Member Functions

 HPGL_ITEM ()
 

Public Attributes

DPOINT loc_start
 Location the pen should start at. More...
 
DPOINT loc_end
 Location the pen will be at when it finishes. More...
 
BOX2D bbox
 Bounding box of this item. More...
 
bool lift_before
 Whether the command should be executed with the pen lifted. More...
 
bool lift_after
 Whether the pen must be lifted after the command. More...
 
bool pen_returns
 Whether the pen returns to its original state after the command. More...
 
int pen
 Pen number for this command. More...
 
PLOT_DASH_TYPE dashType
 Line style for this command. More...
 
wxString content
 Text of the command. More...
 

Detailed Description

Definition at line 152 of file plotter_hpgl.h.

Constructor & Destructor Documentation

◆ HPGL_ITEM()

HPGL_PLOTTER::HPGL_ITEM::HPGL_ITEM ( )
inline

Definition at line 154 of file plotter_hpgl.h.

154  :
155  lift_before( false ),
156  lift_after( false ),
157  pen_returns( false ),
158  pen( 0 ),
bool pen_returns
Whether the pen returns to its original state after the command.
Definition: plotter_hpgl.h:181
PLOT_DASH_TYPE dashType
Line style for this command.
Definition: plotter_hpgl.h:187
bool lift_after
Whether the pen must be lifted after the command.
Definition: plotter_hpgl.h:177
int pen
Pen number for this command.
Definition: plotter_hpgl.h:184
bool lift_before
Whether the command should be executed with the pen lifted.
Definition: plotter_hpgl.h:172

Member Data Documentation

◆ bbox

BOX2D HPGL_PLOTTER::HPGL_ITEM::bbox

◆ content

wxString HPGL_PLOTTER::HPGL_ITEM::content

Text of the command.

Definition at line 190 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::PlotPoly(), and HPGL_PLOTTER::startOrAppendItem().

◆ dashType

PLOT_DASH_TYPE HPGL_PLOTTER::HPGL_ITEM::dashType

Line style for this command.

Definition at line 187 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::startOrAppendItem().

◆ lift_after

bool HPGL_PLOTTER::HPGL_ITEM::lift_after

Whether the pen must be lifted after the command.

If the location of the pen is not known, this must be set (so that another command starting at loc_end is not immediately executed with no lift).

Definition at line 177 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::Arc().

◆ lift_before

bool HPGL_PLOTTER::HPGL_ITEM::lift_before

Whether the command should be executed with the pen lifted.

Definition at line 172 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::Circle(), and HPGL_PLOTTER::FlashPadCircle().

◆ loc_end

DPOINT HPGL_PLOTTER::HPGL_ITEM::loc_end

Location the pen will be at when it finishes.

If this is not known, leave it equal to loc_start and set lift_after.

Definition at line 166 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::PenTo(), HPGL_PLOTTER::Rect(), HPGL_PLOTTER::sortItems(), and HPGL_PLOTTER::startOrAppendItem().

◆ loc_start

DPOINT HPGL_PLOTTER::HPGL_ITEM::loc_start

Location the pen should start at.

Definition at line 162 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::Rect(), and HPGL_PLOTTER::startOrAppendItem().

◆ pen

int HPGL_PLOTTER::HPGL_ITEM::pen

Pen number for this command.

Definition at line 184 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::sortItems(), and HPGL_PLOTTER::startOrAppendItem().

◆ pen_returns

bool HPGL_PLOTTER::HPGL_ITEM::pen_returns

Whether the pen returns to its original state after the command.

Otherwise, the pen is assumed to be down following the command.

Definition at line 181 of file plotter_hpgl.h.

Referenced by HPGL_PLOTTER::Circle(), HPGL_PLOTTER::FlashPadCircle(), and HPGL_PLOTTER::PlotPoly().


The documentation for this struct was generated from the following file: