eeschema/intersheet: add print and plot functions
This commit is contained in:
parent
4d3224a9cb
commit
8d72a768e0
|
@ -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 )
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue