KiCad PCB EDA Suite
|
#include <view_overlay.h>
Classes | |
struct | COMMAND |
struct | COMMAND_ARC |
struct | COMMAND_BITMAP_TEXT |
struct | COMMAND_CIRCLE |
struct | COMMAND_GLYPH_SIZE |
struct | COMMAND_LINE |
struct | COMMAND_POINT_POLYGON |
struct | COMMAND_POLY_POLYGON |
struct | COMMAND_POLYGON |
struct | COMMAND_RECTANGLE |
struct | COMMAND_SET_COLOR |
struct | COMMAND_SET_FILL |
struct | COMMAND_SET_STROKE |
struct | COMMAND_SET_WIDTH |
Public Member Functions | |
VIEW_OVERLAY () | |
VIEW_OVERLAY (const VIEW_OVERLAY &)=delete | |
virtual | ~VIEW_OVERLAY () |
VIEW_OVERLAY & | operator= (const VIEW_OVERLAY &)=delete |
wxString | GetClass () const override |
Return the class name. | |
void | Clear () |
virtual const BOX2I | ViewBBox () const override |
Return the bounding box of the item covering all its layers. | |
virtual void | ViewDraw (int aLayer, VIEW *aView) const override |
Draw the parts of the object belonging to layer aLayer. | |
virtual std::vector< int > | ViewGetLayers () const override |
Return the all the layers within the VIEW the object is painted on. | |
void | Line (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
void | Line (const SEG &aSeg) |
void | Segment (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint, double aWidth) |
void | Circle (const VECTOR2D &aCenterPoint, double aRadius) |
void | Arc (const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aEndAngle) |
void | Rectangle (const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint) |
void | Cross (const VECTOR2D &aP, int aSize) |
void | Polygon (const std::deque< VECTOR2D > &aPointList) |
void | Polygon (const SHAPE_POLY_SET &aPolySet) |
void | Polygon (const VECTOR2D aPointList[], int aListSize) |
void | Polyline (const SHAPE_LINE_CHAIN &aPolyLine) |
void | BitmapText (const wxString &aText, const VECTOR2I &aPosition, const EDA_ANGLE &aAngle) |
void | SetIsFill (bool aIsFillEnabled) |
void | SetIsStroke (bool aIsStrokeEnabled) |
void | SetFillColor (const COLOR4D &aColor) |
void | SetStrokeColor (const COLOR4D &aColor) |
void | SetGlyphSize (const VECTOR2I &aSize) |
void | SetLineWidth (double aLineWidth) |
const COLOR4D & | GetStrokeColor () const |
const COLOR4D & | GetFillColor () const |
Private Member Functions | |
void | releaseCommands () |
Private Attributes | |
COLOR4D | m_strokeColor |
COLOR4D | m_fillColor |
std::vector< COMMAND * > | m_commands |
Definition at line 42 of file view_overlay.h.
KIGFX::VIEW_OVERLAY::VIEW_OVERLAY | ( | ) |
Definition at line 265 of file view_overlay.cpp.
|
delete |
|
virtual |
Definition at line 270 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Arc | ( | const VECTOR2D & | aCenterPoint, |
double | aRadius, | ||
const EDA_ANGLE & | aStartAngle, | ||
const EDA_ANGLE & | aEndAngle ) |
Definition at line 377 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::BitmapText | ( | const wxString & | aText, |
const VECTOR2I & | aPosition, | ||
const EDA_ANGLE & | aAngle ) |
Definition at line 402 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Circle | ( | const VECTOR2D & | aCenterPoint, |
double | aRadius ) |
Definition at line 371 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Clear | ( | ) |
Definition at line 291 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Cross | ( | const VECTOR2D & | aP, |
int | aSize ) |
Definition at line 435 of file view_overlay.cpp.
|
overridevirtual |
Return the class name.
Implements KIGFX::VIEW_ITEM.
Definition at line 276 of file view_overlay.cpp.
|
inline |
Definition at line 110 of file view_overlay.h.
|
inline |
Definition at line 109 of file view_overlay.h.
void KIGFX::VIEW_OVERLAY::Line | ( | const SEG & | aSeg | ) |
Definition at line 330 of file view_overlay.cpp.
Definition at line 324 of file view_overlay.cpp.
|
delete |
void KIGFX::VIEW_OVERLAY::Polygon | ( | const SHAPE_POLY_SET & | aPolySet | ) |
Definition at line 353 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Polygon | ( | const std::deque< VECTOR2D > & | aPointList | ) |
Definition at line 359 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Polygon | ( | const VECTOR2D | aPointList[], |
int | aListSize ) |
Definition at line 365 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Polyline | ( | const SHAPE_LINE_CHAIN & | aPolyLine | ) |
Definition at line 343 of file view_overlay.cpp.
Definition at line 384 of file view_overlay.cpp.
|
private |
Definition at line 282 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::Segment | ( | const VECTOR2D & | aStartPoint, |
const VECTOR2D & | aEndPoint, | ||
double | aWidth ) |
Definition at line 336 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetFillColor | ( | const COLOR4D & | aColor | ) |
Definition at line 415 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetGlyphSize | ( | const VECTOR2I & | aSize | ) |
Definition at line 396 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetIsFill | ( | bool | aIsFillEnabled | ) |
Definition at line 390 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetIsStroke | ( | bool | aIsStrokeEnabled | ) |
Definition at line 409 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetLineWidth | ( | double | aLineWidth | ) |
Definition at line 429 of file view_overlay.cpp.
void KIGFX::VIEW_OVERLAY::SetStrokeColor | ( | const COLOR4D & | aColor | ) |
Definition at line 422 of file view_overlay.cpp.
|
overridevirtual |
Return the bounding box of the item covering all its layers.
Implements KIGFX::VIEW_ITEM.
Definition at line 297 of file view_overlay.cpp.
|
overridevirtual |
Draw the parts of the object belonging to layer aLayer.
An alternative way for drawing objects if there is no #PAINTER assigned for the view or if the PAINTER doesn't know how to paint this particular implementation of VIEW_ITEM. The preferred way of drawing is to design an appropriate PAINTER object, the method below is intended only for quick hacks and debugging purposes.
aLayer | is the current drawing layer. |
aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented from KIGFX::VIEW_ITEM.
Definition at line 306 of file view_overlay.cpp.
|
overridevirtual |
Return the all the layers within the VIEW the object is painted on.
For instance, a PAD spans zero or more copper layers and a few technical layers. ViewDraw() or PAINTER::Draw() is repeatedly called for each of the layers returned by ViewGetLayers(), depending on the rendering order.
Implements KIGFX::VIEW_ITEM.
Definition at line 318 of file view_overlay.cpp.
|
private |
Definition at line 118 of file view_overlay.h.
|
private |
Definition at line 117 of file view_overlay.h.
|
private |
Definition at line 116 of file view_overlay.h.