![]() |
KiCad PCB EDA Suite
|
#include <gr_basic.h>
#include <trigo.h>
#include <eda_item.h>
#include <math_for_graphics.h>
#include <wx/graphics.h>
#include <geometry/geometry_utils.h>
#include <math/util.h>
#include <algorithm>
#include <SutherlandHodgmanClipPoly.h>
Go to the source code of this file.
Macros | |
#define | DEBUG_DUMP_CLIP_ERROR_COORDS 0 |
#define | DEBUG_DUMP_CLIP_COORDS 0 |
Functions | |
static void | ClipAndDrawPoly (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint *Points, int n) |
Used to clip a polygon and draw it as Filled Polygon. More... | |
static void | GRSRect (EDA_RECT *aClipBox, wxDC *aDC, int x1, int y1, int x2, int y2, int aWidth, const COLOR4D &aColor) |
static void | WinClipAndDrawLine (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width) |
void | GRResetPenAndBrush (wxDC *DC) |
void | GRSetColorPen (wxDC *DC, const COLOR4D &Color, int width, wxPenStyle style) |
void | GRSetBrush (wxDC *DC, const COLOR4D &Color, bool fill) |
void | GRForceBlackPen (bool flagforce) |
bool | GetGRForceBlackPenState (void) |
void | GRLine (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, const COLOR4D &Color, wxPenStyle aStyle) |
void | GRLine (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aStart, const wxPoint &aEnd, int aWidth, const COLOR4D &aColor, wxPenStyle aStyle) |
void | GRMoveTo (int x, int y) |
void | GRLineTo (EDA_RECT *ClipBox, wxDC *DC, int x, int y, int width, const COLOR4D &Color) |
void | GRCSegm (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, int aPenSize, const COLOR4D &Color) |
void | GRCSegm (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, const COLOR4D &Color) |
void | GRCSegm (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aStart, const wxPoint &aEnd, int aWidth, const COLOR4D &aColor) |
void | GRFillCSegm (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, const COLOR4D &Color) |
void | GRFilledSegment (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aStart, const wxPoint &aEnd, int aWidth, const COLOR4D &aColor) |
static bool | IsGRSPolyDrawable (EDA_RECT *ClipBox, int n, const wxPoint *Points) |
static void | GRSPoly (EDA_RECT *ClipBox, wxDC *DC, int n, const wxPoint *Points, bool Fill, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
Draw a new polyline and fill it if Fill, in screen space. More... | |
static void | GRSClosedPoly (EDA_RECT *aClipBox, wxDC *aDC, int aPointCount, const wxPoint *aPoints, bool aFill, int aWidth, const COLOR4D &aColor, const COLOR4D &aBgColor) |
Draw a new closed polyline and fill it if Fill, in screen space. More... | |
void | GRPoly (EDA_RECT *ClipBox, wxDC *DC, int n, const wxPoint *Points, bool Fill, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
Draw a new polyline and fill it if Fill, in drawing space. More... | |
void | GRClosedPoly (EDA_RECT *ClipBox, wxDC *DC, int n, const wxPoint *Points, bool Fill, const COLOR4D &Color, const COLOR4D &BgColor) |
Draw a closed polyline and fill it if Fill, in object space. More... | |
void | GRClosedPoly (EDA_RECT *ClipBox, wxDC *DC, int n, const wxPoint *Points, bool Fill, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
Draw a closed polygon onto the drawing context aDC and optionally fills and/or draws a border around it. More... | |
static bool | clipCircle (EDA_RECT *aClipBox, int xc, int yc, int r, int aWidth) |
void | GRCircle (EDA_RECT *ClipBox, wxDC *DC, int xc, int yc, int r, int width, const COLOR4D &Color) |
Draw a circle onto the drawing context aDC centered at the user coordinates (x,y). More... | |
void | GRCircle (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aPos, int aRadius, int aWidth, const COLOR4D &aColor) |
void | GRFilledCircle (EDA_RECT *ClipBox, wxDC *DC, int x, int y, int r, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
void | GRFilledCircle (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aPos, int aRadius, const COLOR4D &aColor) |
void | GRArc1 (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int xc, int yc, int width, const COLOR4D &Color) |
void | GRArc1 (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aStart, const wxPoint &aEnd, const wxPoint &aCenter, int aWidth, const COLOR4D &aColor) |
void | GRFilledArc1 (EDA_RECT *ClipBox, wxDC *DC, const wxPoint &aStart, const wxPoint &aEnd, const wxPoint &aCenter, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
void | GRArc (EDA_RECT *ClipBox, wxDC *DC, int xc, int yc, double StAngle, double EndAngle, int r, const COLOR4D &Color) |
void | GRArc (EDA_RECT *ClipBox, wxDC *DC, int x, int y, double StAngle, double EndAngle, int r, int width, const COLOR4D &Color) |
void | GRRect (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, const COLOR4D &Color) |
void | GRFilledRect (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, const COLOR4D &Color, const COLOR4D &BgColor) |
void | GRFilledRect (EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, const COLOR4D &Color, const COLOR4D &BgColor) |
void | GRSFilledRect (EDA_RECT *aClipBox, wxDC *aDC, int x1, int y1, int x2, int y2, int aWidth, const COLOR4D &aColor, const COLOR4D &aBgColor) |
Variables | |
static const bool | FILLED = true |
static const bool | NOT_FILLED = false |
GR_DRAWMODE | g_XorMode = GR_NXOR |
static int | GRLastMoveToX |
static int | GRLastMoveToY |
static bool | s_ForceBlackPen |
static int | xcliplo = 0 |
static int | ycliplo = 0 |
static int | xcliphi = 2000 |
static int | ycliphi = 2000 |
static COLOR4D | s_DC_lastbrushcolor (0, 0, 0, 0) |
static bool | s_DC_lastbrushfill = false |
static wxDC * | s_DC_lastDC = nullptr |
#define DEBUG_DUMP_CLIP_COORDS 0 |
Definition at line 59 of file gr_basic.cpp.
#define DEBUG_DUMP_CLIP_ERROR_COORDS 0 |
Definition at line 58 of file gr_basic.cpp.
|
static |
Used to clip a polygon and draw it as Filled Polygon.
Uses the Sutherland and Hodgman algo to clip the given poly against a rectangle. This rectangle is the drawing area this is useful under Linux (2009) because filled polygons are incorrectly drawn if they have too large coordinates (seems due to integer overflows in calculations). Could be removed in some years, if become unnecessary.
Definition at line 775 of file gr_basic.cpp.
References EDA_RECT::GetHeight(), EDA_RECT::GetWidth(), EDA_RECT::GetX(), EDA_RECT::GetY(), and KiROUND().
Referenced by GRSClosedPoly(), GRSFilledRect(), and GRSPoly().
|
static |
Definition at line 477 of file gr_basic.cpp.
References EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), and r.
Referenced by GRCircle(), and GRFilledCircle().
bool GetGRForceBlackPenState | ( | void | ) |
Definition at line 191 of file gr_basic.cpp.
References s_ForceBlackPen.
Referenced by BITMAP_BASE::DrawBitmap(), SCH_SHEET::Print(), and LIB_SYMBOL::Print().
void GRArc | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | xc, | ||
int | yc, | ||
double | StAngle, | ||
double | EndAngle, | ||
int | r, | ||
const COLOR4D & | Color | ||
) |
Definition at line 620 of file gr_basic.cpp.
References EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), GRSetBrush(), GRSetColorPen(), NOT_FILLED, r, and RotatePoint().
void GRArc | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x, | ||
int | y, | ||
double | StAngle, | ||
double | EndAngle, | ||
int | r, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Definition at line 664 of file gr_basic.cpp.
References EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), GRSetBrush(), GRSetColorPen(), r, and RotatePoint().
void GRArc1 | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | xc, | ||
int | yc, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Definition at line 548 of file gr_basic.cpp.
References EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), GRSetBrush(), GRSetColorPen(), KiROUND(), and r.
Referenced by GRArc1(), LIB_SHAPE::print(), and GERBER_DRAW_ITEM::Print().
void GRArc1 | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aStart, | ||
const wxPoint & | aEnd, | ||
const wxPoint & | aCenter, | ||
int | aWidth, | ||
const COLOR4D & | aColor | ||
) |
Definition at line 580 of file gr_basic.cpp.
References GRArc1().
void GRCircle | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x, | ||
int | y, | ||
int | r, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Draw a circle onto the drawing context aDC centered at the user coordinates (x,y).
ClipBox | defines a rectangular boundary outside of which no drawing will occur. |
aDC | the device context into which drawing should occur. |
x | The x coordinate in user space of the center of the circle. |
y | The y coordinate in user space of the center of the circle. |
aRadius | is the radius of the circle. |
aColor | is the color to draw. |
Definition at line 507 of file gr_basic.cpp.
References clipCircle(), GRSetBrush(), GRSetColorPen(), NOT_FILLED, and r.
Referenced by D_CODE::DrawFlashedShape(), GRCircle(), LIB_SHAPE::print(), LIB_PIN::print(), GERBER_DRAW_ITEM::Print(), and LIB_PIN::printPinSymbol().
void GRCircle | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aPos, | ||
int | aRadius, | ||
int | aWidth, | ||
const COLOR4D & | aColor | ||
) |
Definition at line 522 of file gr_basic.cpp.
References GRCircle().
void GRClosedPoly | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | n, | ||
const wxPoint * | Points, | ||
bool | Fill, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Draw a closed polyline and fill it if Fill, in object space.
Draw a closed polygon onto the drawing context aDC and optionally fills and/or draws a border around it.
Definition at line 463 of file gr_basic.cpp.
References GRClosedPoly().
Referenced by APERTURE_MACRO::DrawApertureMacroShape(), D_CODE::DrawFlashedPolygon(), GRClosedPoly(), GERBER_DRAW_ITEM::PrintGerberPoly(), and MARKER_BASE::PrintMarker().
void GRClosedPoly | ( | EDA_RECT * | ClipBox, |
wxDC * | aDC, | ||
int | aPointCount, | ||
const wxPoint * | aPoints, | ||
bool | doFill, | ||
int | aPenWidth, | ||
const COLOR4D & | aPenColor, | ||
const COLOR4D & | aFillColor | ||
) |
Draw a closed polygon onto the drawing context aDC and optionally fills and/or draws a border around it.
ClipBox | defines a rectangular boundary outside of which no drawing will occur. |
aDC | the device context into which drawing should occur. |
aPointCount | the number of points in the array aPointArray. |
aPoints | the points to draw. |
doFill | true if polygon is to be filled, else false and only the boundary is drawn. |
aPenWidth | is the width of the pen to use on the perimeter, can be zero. |
aPenColor | the color of the border. |
aFillColor | the fill color of the polygon's interior. |
Definition at line 470 of file gr_basic.cpp.
References GRSClosedPoly().
void GRCSegm | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
int | aPenSize, | ||
const COLOR4D & | Color | ||
) |
Definition at line 227 of file gr_basic.cpp.
References PNS::angle(), ArcTangente(), ClipLine(), GRLastMoveToX, GRLastMoveToY, GRSetBrush(), GRSetColorPen(), EDA_RECT::Inflate(), NOT_FILLED, and RotatePoint().
Referenced by BASIC_GAL::doDrawPolyline(), D_CODE::DrawFlashedShape(), BASIC_GAL::DrawLine(), GRCSegm(), and GERBER_DRAW_ITEM::Print().
void GRCSegm | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Definition at line 311 of file gr_basic.cpp.
References GRCSegm().
void GRCSegm | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aStart, | ||
const wxPoint & | aEnd, | ||
int | aWidth, | ||
const COLOR4D & | aColor | ||
) |
Definition at line 318 of file gr_basic.cpp.
References GRCSegm().
void GRFillCSegm | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Definition at line 325 of file gr_basic.cpp.
References GRSetColorPen(), and WinClipAndDrawLine().
Referenced by D_CODE::DrawFlashedShape().
void GRFilledArc1 | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
const wxPoint & | aStart, | ||
const wxPoint & | aEnd, | ||
const wxPoint & | aCenter, | ||
int | width, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Definition at line 588 of file gr_basic.cpp.
References FILLED, EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), GRSetBrush(), GRSetColorPen(), KiROUND(), and r.
Referenced by LIB_SHAPE::print().
void GRFilledCircle | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x, | ||
int | y, | ||
int | r, | ||
int | width, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Definition at line 529 of file gr_basic.cpp.
References clipCircle(), FILLED, GRSetBrush(), GRSetColorPen(), and r.
Referenced by D_CODE::DrawFlashedShape(), GRFilledCircle(), SCH_JUNCTION::Print(), and LIB_SHAPE::print().
void GRFilledCircle | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aPos, | ||
int | aRadius, | ||
const COLOR4D & | aColor | ||
) |
Definition at line 541 of file gr_basic.cpp.
References GRFilledCircle().
void GRFilledRect | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Definition at line 712 of file gr_basic.cpp.
References GRSFilledRect().
Referenced by D_CODE::DrawFlashedShape(), LIB_SHAPE::print(), SCH_SHEET::Print(), and DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample().
void GRFilledRect | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Definition at line 719 of file gr_basic.cpp.
References GRSFilledRect().
void GRFilledSegment | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aStart, | ||
const wxPoint & | aEnd, | ||
int | aWidth, | ||
const COLOR4D & | aColor | ||
) |
Definition at line 333 of file gr_basic.cpp.
References GRSetColorPen(), and WinClipAndDrawLine().
Referenced by GERBER_DRAW_ITEM::Print().
void GRForceBlackPen | ( | bool | flagforce | ) |
flagforce | True to force a black pen whenever the asked color. |
Definition at line 185 of file gr_basic.cpp.
References s_ForceBlackPen.
Referenced by SCH_EDIT_FRAME::DrawCurrentSheetToClipboard(), PLEDITOR_PRINTOUT::PrintPage(), and SCH_PRINTOUT::PrintPage().
void GRLine | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
const COLOR4D & | Color, | ||
wxPenStyle | aStyle | ||
) |
Definition at line 197 of file gr_basic.cpp.
References GRLastMoveToX, GRLastMoveToY, GRSetColorPen(), and WinClipAndDrawLine().
Referenced by BASIC_GAL::DrawLine(), GRLine(), GRLineTo(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::onPaintPolyPanel(), SCH_NO_CONNECT::Print(), SCH_BUS_ENTRY_BASE::Print(), SCH_LINE::Print(), LIB_PIN::printPinSymbol(), and DS_DRAW_ITEM_LINE::PrintWsItem().
void GRLine | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
const wxPoint & | aStart, | ||
const wxPoint & | aEnd, | ||
int | aWidth, | ||
const COLOR4D & | aColor, | ||
wxPenStyle | aStyle | ||
) |
Definition at line 207 of file gr_basic.cpp.
References GRLine().
Definition at line 221 of file gr_basic.cpp.
References GRLastMoveToX, GRLastMoveToY, and GRLine().
Referenced by GRSClosedPoly(), GRSPoly(), and LIB_PIN::printPinSymbol().
void GRMoveTo | ( | int | x, |
int | y | ||
) |
Definition at line 214 of file gr_basic.cpp.
References GRLastMoveToX, and GRLastMoveToY.
Referenced by GRSClosedPoly(), GRSPoly(), and LIB_PIN::printPinSymbol().
void GRPoly | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | n, | ||
const wxPoint * | Points, | ||
bool | Fill, | ||
int | width, | ||
const COLOR4D & | Color, | ||
const COLOR4D & | BgColor | ||
) |
Draw a new polyline and fill it if Fill, in drawing space.
Definition at line 453 of file gr_basic.cpp.
References GRSPoly().
Referenced by BASIC_GAL::doDrawPolyline(), LIB_SHAPE::print(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), and DS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem().
void GRRect | ( | EDA_RECT * | ClipBox, |
wxDC * | DC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | width, | ||
const COLOR4D & | Color | ||
) |
Definition at line 705 of file gr_basic.cpp.
References GRSRect().
Referenced by D_CODE::DrawFlashedShape(), LIB_SHAPE::print(), SCH_SHEET::Print(), and DS_DRAW_ITEM_RECT::PrintWsItem().
void GRResetPenAndBrush | ( | wxDC * | DC | ) |
Definition at line 107 of file gr_basic.cpp.
References BLACK, GRSetBrush(), s_DC_lastbrushcolor, and s_DC_lastDC.
Referenced by SCH_EDIT_FRAME::DrawCurrentSheetToClipboard(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::onPaintPolyPanel(), DIALOG_PIN_PROPERTIES::OnPaintShowPanel(), PLEDITOR_PRINTOUT::PrintPage(), SCH_PRINTOUT::PrintPage(), and DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample().
|
static |
Draw a new closed polyline and fill it if Fill, in screen space.
Definition at line 415 of file gr_basic.cpp.
References ClipAndDrawPoly(), FILLED, GRLastMoveToX, GRLastMoveToY, GRLineTo(), GRMoveTo(), GRSetBrush(), GRSetColorPen(), and IsGRSPolyDrawable().
Referenced by GRClosedPoly(), and GRSRect().
void GRSetBrush | ( | wxDC * | DC, |
const COLOR4D & | Color, | ||
bool | fill | ||
) |
Definition at line 158 of file gr_basic.cpp.
References BLACK, color, s_DC_lastbrushcolor, s_DC_lastbrushfill, s_DC_lastDC, and s_ForceBlackPen.
Referenced by GRArc(), GRArc1(), GRCircle(), GRCSegm(), GRFilledArc1(), GRFilledCircle(), GRResetPenAndBrush(), GRSClosedPoly(), GRSFilledRect(), and GRSPoly().
void GRSetColorPen | ( | wxDC * | DC, |
const COLOR4D & | Color, | ||
int | width, | ||
wxPenStyle | style | ||
) |
Definition at line 115 of file gr_basic.cpp.
References BLACK, color, and s_ForceBlackPen.
Referenced by GRArc(), GRArc1(), GRCircle(), GRCSegm(), GRFillCSegm(), GRFilledArc1(), GRFilledCircle(), GRFilledSegment(), GRLine(), GRSClosedPoly(), GRSFilledRect(), and GRSPoly().
void GRSFilledRect | ( | EDA_RECT * | aClipBox, |
wxDC * | aDC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | aWidth, | ||
const COLOR4D & | aColor, | ||
const COLOR4D & | aBgColor | ||
) |
Definition at line 739 of file gr_basic.cpp.
References ClipAndDrawPoly(), FILLED, GRSetBrush(), GRSetColorPen(), and EDA_RECT::Inflate().
Referenced by GRFilledRect(), and SCH_PRINTOUT::PrintPage().
|
static |
Draw a new polyline and fill it if Fill, in screen space.
Definition at line 382 of file gr_basic.cpp.
References ClipAndDrawPoly(), FILLED, GRLineTo(), GRMoveTo(), GRSetBrush(), GRSetColorPen(), and IsGRSPolyDrawable().
Referenced by GRPoly().
|
static |
Definition at line 726 of file gr_basic.cpp.
References GRSClosedPoly(), and NOT_FILLED.
Referenced by GRRect().
|
static |
Definition at line 340 of file gr_basic.cpp.
References EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), xcliphi, xcliplo, ycliphi, and ycliplo.
Referenced by GRSClosedPoly(), and GRSPoly().
|
static |
Definition at line 89 of file gr_basic.cpp.
References ClipLine(), GRLastMoveToX, GRLastMoveToY, and EDA_RECT::Inflate().
Referenced by GRFillCSegm(), GRFilledSegment(), and GRLine().
|
static |
Definition at line 32 of file gr_basic.cpp.
Referenced by GRFilledArc1(), GRFilledCircle(), GRSClosedPoly(), GRSFilledRect(), and GRSPoly().
GR_DRAWMODE g_XorMode = GR_NXOR |
Definition at line 63 of file gr_basic.cpp.
|
static |
Definition at line 77 of file gr_basic.cpp.
Referenced by GRCSegm(), GRLine(), GRLineTo(), GRMoveTo(), GRSClosedPoly(), and WinClipAndDrawLine().
|
static |
Definition at line 77 of file gr_basic.cpp.
Referenced by GRCSegm(), GRLine(), GRLineTo(), GRMoveTo(), GRSClosedPoly(), and WinClipAndDrawLine().
|
static |
Definition at line 33 of file gr_basic.cpp.
Referenced by GRArc(), GRCircle(), GRCSegm(), and GRSRect().
|
static |
Referenced by GRResetPenAndBrush(), and GRSetBrush().
|
static |
Definition at line 86 of file gr_basic.cpp.
Referenced by GRSetBrush().
|
static |
Definition at line 87 of file gr_basic.cpp.
Referenced by GRResetPenAndBrush(), and GRSetBrush().
|
static |
Definition at line 78 of file gr_basic.cpp.
Referenced by GetGRForceBlackPenState(), GRForceBlackPen(), GRSetBrush(), and GRSetColorPen().
|
static |
Definition at line 82 of file gr_basic.cpp.
Referenced by IsGRSPolyDrawable().
|
static |
Definition at line 80 of file gr_basic.cpp.
Referenced by IsGRSPolyDrawable().
|
static |
Definition at line 83 of file gr_basic.cpp.
Referenced by IsGRSPolyDrawable().
|
static |
Definition at line 81 of file gr_basic.cpp.
Referenced by IsGRSPolyDrawable().