| 
    KiCad PCB EDA Suite
    
   | 
 
#include <label_manager.h>
Classes | |
| struct | LABEL | 
Public Member Functions | |
| LABEL_MANAGER (KIGFX::GAL *aGal) | |
| ~LABEL_MANAGER () | |
| void | Add (VECTOR2I target, wxString msg, KIGFX::COLOR4D color) | 
| void | Add (const SHAPE_LINE_CHAIN &aL, KIGFX::COLOR4D color) | 
| void | Redraw (KIGFX::VIEW_OVERLAY *aOvl) | 
Private Member Functions | |
| VECTOR2I | nearestBoxCorner (BOX2I b, VECTOR2I p) | 
| VECTOR2I | boxMtv (BOX2I b1, BOX2I b2) | 
| void | recalculate () | 
Private Attributes | |
| KIGFX::GAL * | m_gal | 
| int | m_textSize = 100000 | 
| std::vector< LABEL > | m_labels | 
Definition at line 37 of file label_manager.h.
| LABEL_MANAGER::LABEL_MANAGER | ( | KIGFX::GAL * | aGal | ) | 
Definition at line 35 of file label_manager.cpp.
References m_gal.
| LABEL_MANAGER::~LABEL_MANAGER | ( | ) | 
Definition at line 40 of file label_manager.cpp.
| void LABEL_MANAGER::Add | ( | const SHAPE_LINE_CHAIN & | aL, | 
| KIGFX::COLOR4D | color ) | 
Definition at line 66 of file label_manager.cpp.
References Add(), color, SHAPE_LINE_CHAIN::CPoint(), and SHAPE_LINE_CHAIN::PointCount().
| void LABEL_MANAGER::Add | ( | VECTOR2I | target, | 
| wxString | msg, | ||
| KIGFX::COLOR4D | color ) | 
Definition at line 45 of file label_manager.cpp.
References color, KIFONT::METRICS::Default(), KIFONT::FONT::GetFont(), LABEL_MANAGER::LABEL::m_bbox, LABEL_MANAGER::LABEL::m_color, m_gal, m_labels, LABEL_MANAGER::LABEL::m_msg, LABEL_MANAGER::LABEL::m_target, m_textSize, BOX2< Vec >::SetOrigin(), BOX2< Vec >::SetSize(), KIFONT::FONT::StringBoundaryLimits(), and text.
Referenced by Add().
Definition at line 116 of file label_manager.cpp.
References BOX2< Vec >::Contains(), VECTOR2< T >::EuclideanNorm(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetPosition(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Intersects(), BOX2< Vec >::Move(), BOX2< Vec >::Normalize(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by recalculate().
Definition at line 92 of file label_manager.cpp.
References BOX2< Vec >::GetHeight(), BOX2< Vec >::GetPosition(), and BOX2< Vec >::GetWidth().
Referenced by Redraw().
      
  | 
  private | 
Definition at line 165 of file label_manager.cpp.
References boxMtv(), m_labels, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Redraw().
| void LABEL_MANAGER::Redraw | ( | KIGFX::VIEW_OVERLAY * | aOvl | ) | 
Definition at line 74 of file label_manager.cpp.
References ANGLE_HORIZONTAL, KIGFX::VIEW_OVERLAY::BitmapText(), KIGFX::VIEW_OVERLAY::Line(), m_labels, nearestBoxCorner(), recalculate(), KIGFX::VIEW_OVERLAY::Rectangle(), KIGFX::VIEW_OVERLAY::SetIsFill(), KIGFX::VIEW_OVERLAY::SetIsStroke(), KIGFX::VIEW_OVERLAY::SetLineWidth(), and KIGFX::VIEW_OVERLAY::SetStrokeColor().
      
  | 
  private | 
Definition at line 60 of file label_manager.h.
Referenced by Add(), and LABEL_MANAGER().
      
  | 
  private | 
Definition at line 62 of file label_manager.h.
Referenced by Add(), recalculate(), and Redraw().
      
  | 
  private | 
Definition at line 61 of file label_manager.h.
Referenced by Add().