![]() |
KiCad PCB EDA Suite
|
#include <pns_log_viewer_frame.h>
Public Member Functions | |
PNS_LOG_VIEWER_OVERLAY (KIGFX::GAL *aGal) | |
void | AnnotatedPolyline (const SHAPE_LINE_CHAIN &aL, std::string name, bool aShowVertexNumbers=false) |
void | AnnotatedPoint (const VECTOR2I p, int size, std::string name="", bool aShowVertexNumbers=false) |
void | Arc (const SHAPE_ARC &arc) |
void | DrawAnnotations () |
void | Clear () |
virtual const BOX2I | ViewBBox () const override |
Return the bounding box of the item covering all its layers. More... | |
virtual void | ViewDraw (int aLayer, VIEW *aView) const override |
Draw the parts of the object belonging to layer aLayer. More... | |
virtual void | ViewGetLayers (int aLayers[], int &aCount) const override |
Return the all the layers within the VIEW the object is painted on. More... | |
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, double aStartAngle, double 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 VECTOR2D &aPosition, double aRotationAngle) |
void | SetIsFill (bool aIsFillEnabled) |
void | SetIsStroke (bool aIsStrokeEnabled) |
void | SetFillColor (const COLOR4D &aColor) |
void | SetStrokeColor (const COLOR4D &aColor) |
void | SetGlyphSize (const VECTOR2D &aSize) |
void | SetLineWidth (double aLineWidth) |
const COLOR4D & | GetStrokeColor () const |
const COLOR4D & | GetFillColor () const |
virtual double | ViewGetLOD (int aLayer, VIEW *aView) const |
Return the level of detail (LOD) of the item. More... | |
VIEW_ITEM_DATA * | viewPrivData () const |
void | ClearViewPrivData () |
bool | Set (PROPERTY_BASE *aProperty, wxAny &aValue) |
template<typename T > | |
bool | Set (PROPERTY_BASE *aProperty, T aValue) |
template<typename T > | |
bool | Set (const wxString &aProperty, T aValue) |
wxAny | Get (PROPERTY_BASE *aProperty) |
template<typename T > | |
T | Get (PROPERTY_BASE *aProperty) |
template<typename T > | |
boost::optional< T > | Get (const wxString &aProperty) |
Private Attributes | |
std::unique_ptr< LABEL_MANAGER > | m_labelMgr |
Definition at line 82 of file pns_log_viewer_frame.h.
PNS_LOG_VIEWER_OVERLAY::PNS_LOG_VIEWER_OVERLAY | ( | KIGFX::GAL * | aGal | ) |
Definition at line 227 of file pns_log_viewer.cpp.
References m_labelMgr.
void PNS_LOG_VIEWER_OVERLAY::AnnotatedPoint | ( | const VECTOR2I | p, |
int | size, | ||
std::string | name = "" , |
||
bool | aShowVertexNumbers = false |
||
) |
Definition at line 243 of file pns_log_viewer.cpp.
References KIGFX::VIEW_OVERLAY::Line().
void PNS_LOG_VIEWER_OVERLAY::AnnotatedPolyline | ( | const SHAPE_LINE_CHAIN & | aL, |
std::string | name, | ||
bool | aShowVertexNumbers = false |
||
) |
Definition at line 233 of file pns_log_viewer.cpp.
References KIGFX::VIEW_OVERLAY::GetStrokeColor(), m_labelMgr, and KIGFX::VIEW_OVERLAY::Polyline().
|
inherited |
Definition at line 365 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by Arc().
void PNS_LOG_VIEWER_OVERLAY::Arc | ( | const SHAPE_ARC & | arc | ) |
Definition at line 253 of file pns_log_viewer.cpp.
References PNS::angle(), KIGFX::VIEW_OVERLAY::Arc(), DEG2RAD(), SHAPE_ARC::GetCenter(), SHAPE_ARC::GetCentralAngle(), SHAPE_ARC::GetRadius(), SHAPE_ARC::GetStartAngle(), KIGFX::VIEW_OVERLAY::GetStrokeColor(), SHAPE_ARC::GetWidth(), KIGFX::VIEW_OVERLAY::SetLineWidth(), KIGFX::VIEW_OVERLAY::SetStrokeColor(), and KIGFX::COLOR4D::WithAlpha().
|
inherited |
Definition at line 390 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by LABEL_MANAGER::Redraw().
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 143 of file view_item.h.
References KIGFX::VIEW_ITEM::m_viewPrivData.
Referenced by KIGFX::VIEW::OnDestroy().
|
inherited |
Definition at line 421 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::Line().
void PNS_LOG_VIEWER_OVERLAY::DrawAnnotations | ( | ) |
Definition at line 272 of file pns_log_viewer.cpp.
References m_labelMgr.
|
inlineinherited |
Definition at line 86 of file inspectable.h.
References PROPERTY_BASE::getter(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by BOOST_AUTO_TEST_CASE(), CLASS_D_DESC::CLASS_D_DESC(), PCB_EXPR_VAR_REF::GetValue(), and PAD_DESC::PAD_DESC().
|
inlineinherited |
Definition at line 95 of file inspectable.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 104 of file inspectable.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
|
inlineinherited |
Definition at line 103 of file view_overlay.h.
References KIGFX::VIEW_OVERLAY::m_strokeColor.
Referenced by AnnotatedPolyline(), and Arc().
|
inherited |
Definition at line 312 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by AnnotatedPoint(), KIGFX::VIEW_OVERLAY::Cross(), KIGFX::VIEW_OVERLAY::Line(), KIGFX::VIEW_OVERLAY::Polyline(), LABEL_MANAGER::Redraw(), and KIGFX::VIEW_OVERLAY::Segment().
|
inherited |
Definition at line 318 of file view_overlay.cpp.
References SEG::A, SEG::B, and KIGFX::VIEW_OVERLAY::Line().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 331 of file view_overlay.cpp.
References SHAPE_LINE_CHAIN::CSegment(), KIGFX::VIEW_OVERLAY::Line(), SHAPE_LINE_CHAIN::SegmentCount(), KIGFX::VIEW_OVERLAY::SetIsFill(), and KIGFX::VIEW_OVERLAY::SetIsStroke().
Referenced by AnnotatedPolyline().
|
inherited |
Definition at line 372 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by LABEL_MANAGER::Redraw().
|
inherited |
Definition at line 324 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::Line(), and KIGFX::VIEW_OVERLAY::SetLineWidth().
|
inlineinherited |
Definition at line 42 of file inspectable.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::setter(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 55 of file inspectable.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::set(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 68 of file inspectable.h.
References PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::set(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 403 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands, and KIGFX::VIEW_OVERLAY::m_fillColor.
|
inherited |
|
inherited |
Definition at line 378 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by KIGFX::VIEW_OVERLAY::Polyline(), and LABEL_MANAGER::Redraw().
|
inherited |
Definition at line 397 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by KIGFX::VIEW_OVERLAY::Polyline(), and LABEL_MANAGER::Redraw().
|
inherited |
Definition at line 416 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
Referenced by Arc(), LABEL_MANAGER::Redraw(), and KIGFX::VIEW_OVERLAY::Segment().
|
inherited |
Definition at line 410 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands, and KIGFX::VIEW_OVERLAY::m_strokeColor.
Referenced by Arc(), and LABEL_MANAGER::Redraw().
|
overridevirtualinherited |
Return the bounding box of the item covering all its layers.
Implements KIGFX::VIEW_ITEM.
Definition at line 289 of file view_overlay.cpp.
References BOX2< Vec >::SetMaximum().
|
overridevirtualinherited |
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 298 of file view_overlay.cpp.
References KIGFX::VIEW_OVERLAY::m_commands.
|
overridevirtualinherited |
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.
aLayers[] | is the output layer index array. |
aCount | is the number of layer indices in aLayers[]. |
Implements KIGFX::VIEW_ITEM.
Definition at line 305 of file view_overlay.cpp.
References LAYER_GP_OVERLAY.
|
inlinevirtualinherited |
Return the level of detail (LOD) of the item.
A level of detail is the minimal VIEW scale that is sufficient for an item to be shown on a given layer.
aLayer | is the current drawing layer. |
aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented in FP_ZONE, PAD, FOOTPRINT, PCB_VIA, GERBER_DRAW_ITEM, FP_TEXT, PCB_TRACK, ZONE, PCB_GROUP, and FP_SHAPE.
Definition at line 132 of file view_item.h.
Referenced by PNS_KICAD_IFACE::IsItemVisible(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), EE_GRID_HELPER::queryVisible(), PCB_GRID_HELPER::queryVisible(), and PCB_SELECTION_TOOL::Selectable().
|
inlineinherited |
Definition at line 138 of file view_item.h.
References KIGFX::VIEW_ITEM::m_viewPrivData.
Referenced by KIGFX::VIEW::Add(), KIGFX::VIEW::DRAW_ITEM_VISITOR::deferredDraw(), KIGFX::VIEW::draw(), KIGFX::VIEW::Hide(), KIGFX::VIEW::invalidateItem(), KIGFX::VIEW::IsVisible(), KIGFX::VIEW::OnDestroy(), KIGFX::QUERY_VISITOR< CONTAINER >::operator()(), KIGFX::VIEW::UPDATE_COLOR_VISITOR::operator()(), KIGFX::VIEW::UPDATE_DEPTH_VISITOR::operator()(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), KIGFX::VIEW::RECACHE_ITEM_VISITOR::operator()(), KIGFX::VIEW::CLEAR_LAYER_CACHE_VISITOR::operator()(), KIGFX::VIEW::Remove(), KIGFX::VIEW::SetVisible(), KIGFX::VIEW::Update(), KIGFX::VIEW::updateItemColor(), KIGFX::VIEW::updateItemGeometry(), and KIGFX::VIEW::updateLayers().
|
private |
Definition at line 92 of file pns_log_viewer_frame.h.
Referenced by AnnotatedPolyline(), DrawAnnotations(), and PNS_LOG_VIEWER_OVERLAY().