KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LABEL_MANAGER Class Reference

#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::GALm_gal
 
int m_textSize = 100000
 
std::vector< LABELm_labels
 

Detailed Description

Definition at line 37 of file label_manager.h.

Constructor & Destructor Documentation

◆ LABEL_MANAGER()

LABEL_MANAGER::LABEL_MANAGER ( KIGFX::GAL aGal)

Definition at line 35 of file label_manager.cpp.

◆ ~LABEL_MANAGER()

LABEL_MANAGER::~LABEL_MANAGER ( )

Definition at line 40 of file label_manager.cpp.

Member Function Documentation

◆ Add() [1/2]

void LABEL_MANAGER::Add ( const SHAPE_LINE_CHAIN aL,
KIGFX::COLOR4D  color 
)

◆ Add() [2/2]

◆ boxMtv()

◆ nearestBoxCorner()

VECTOR2I LABEL_MANAGER::nearestBoxCorner ( BOX2I  b,
VECTOR2I  p 
)
private

Definition at line 92 of file label_manager.cpp.

References BOX2< Vec >::GetHeight(), BOX2< Vec >::GetPosition(), and BOX2< Vec >::GetWidth().

Referenced by Redraw().

◆ recalculate()

void LABEL_MANAGER::recalculate ( )
private

Definition at line 165 of file label_manager.cpp.

References boxMtv(), m_labels, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by Redraw().

◆ Redraw()

Member Data Documentation

◆ m_gal

KIGFX::GAL* LABEL_MANAGER::m_gal
private

Definition at line 60 of file label_manager.h.

Referenced by Add().

◆ m_labels

std::vector<LABEL> LABEL_MANAGER::m_labels
private

Definition at line 62 of file label_manager.h.

Referenced by Add(), recalculate(), and Redraw().

◆ m_textSize

int LABEL_MANAGER::m_textSize = 100000
private

Definition at line 61 of file label_manager.h.

Referenced by Add().


The documentation for this class was generated from the following files: