eeschema/intersheet: add print and plot functions

This commit is contained in:
Franck Jullien 2020-11-23 14:29:40 +01:00 committed by Jeff Young
parent 4d3224a9cb
commit 8d72a768e0
2 changed files with 14 additions and 0 deletions

View File

@ -1163,8 +1163,20 @@ void SCH_GLOBALLABEL::Print( RENDER_SETTINGS* aSettings, const wxPoint& aOffset
CreateGraphicShape( aSettings, Poly, GetTextPos() + aOffset );
GRPoly( nullptr, DC, Poly.size(), &Poly[0], false, penWidth, color, color );
bool show = Schematic()->Settings().m_IntersheetRefsShow;
if ( show )
m_intersheetRefsField.Print( aSettings, aOffset );
}
void SCH_GLOBALLABEL::Plot( PLOTTER* aPlotter )
{
SCH_TEXT::Plot( aPlotter );
bool show = Schematic()->Settings().m_IntersheetRefsShow;
if ( show )
m_intersheetRefsField.Plot( aPlotter );
}
void SCH_GLOBALLABEL::CreateGraphicShape( RENDER_SETTINGS* aRenderSettings,
std::vector<wxPoint>& aPoints, const wxPoint& Pos )

View File

@ -434,6 +434,8 @@ public:
void Print( RENDER_SETTINGS* aSettings, const wxPoint& offset ) override;
void Plot( PLOTTER* aPlotter ) override;
SCH_FIELD* GetIntersheetRefs() { return &m_intersheetRefsField; }
void SetIntersheetRefs( const SCH_FIELD& aField ) { m_intersheetRefsField = aField; }