Commit ab1df3f1 authored by charras's avatar charras
Browse files

more about non copper zones (see changelog)

parent 27cf4ad0
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -5,6 +5,11 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2008-Sep-26 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew:
    more about use polygons in zone fill algos on techinals layers:
    plot Ok. holes are handled


2008-Sep-26 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
2008-Sep-26 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
================================================================================
+16 −7
Original line number Original line Diff line number Diff line
@@ -83,21 +83,30 @@ void WinEDA_DisplayFrame::RedrawActiveWindow( wxDC* DC, bool EraseBg )
    if( !m_Pcb )
    if( !m_Pcb )
        return;
        return;


    MODULE* Module = m_Pcb->m_Modules;

    ActiveScreen = (PCB_SCREEN*) GetScreen();
    ActiveScreen = (PCB_SCREEN*) GetScreen();


    if( EraseBg )
    if( EraseBg )
        DrawPanel->EraseScreen( DC );
        DrawPanel->EraseScreen( DC );


    DrawPanel->DrawBackGround( DC );
    DrawPanel->DrawBackGround( DC );
    m_Pcb->Draw( DrawPanel, DC, GR_COPY, wxPoint(0,0) );


    MODULE* Module = m_Pcb->m_Modules;
    if ( Module )
    if ( Module )
    {
        Module->Draw( DrawPanel, DC, GR_COPY );
        Module->Display_Infos( this );
        Module->Display_Infos( this );
    }

    Affiche_Status_Box();
    Affiche_Status_Box();
    DrawPanel->Trace_Curseur( DC );
    DrawPanel->Trace_Curseur( DC );
}
}


/********************************************************************/
void BOARD::Draw( WinEDA_DrawPanel* aPanel, wxDC* DC,
                  int aDrawMode, const wxPoint& offset )
/********************************************************************/
/* Redraw the BOARD items but not cursors, axis or grid */
{
    if( m_Modules )
    {
        m_Modules->Draw( aPanel, DC, GR_COPY );
   }
}
+11 −3
Original line number Original line Diff line number Diff line
@@ -86,6 +86,14 @@ void WinEDA_GerberFrame::RedrawActiveWindow( wxDC* DC, bool EraseBg )
    DrawPanel->Trace_Curseur( DC );
    DrawPanel->Trace_Curseur( DC );
}
}


/********************************************************************/
void BOARD::Draw( WinEDA_DrawPanel* aPanel, wxDC* DC,
                  int aDrawMode, const wxPoint& offset )
/********************************************************************/
/* Redraw the BOARD items but not cursors, axis or grid */
// @todo: replace WinEDA_GerberFrame::Trace_Gerber() by this function
{
}


/***********************************************************************************/
/***********************************************************************************/
void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklayer )
void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklayer )
@@ -104,7 +112,7 @@ void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklay
    Draw_Track_Buffer( DrawPanel, DC, m_Pcb, draw_mode, printmasklayer );
    Draw_Track_Buffer( DrawPanel, DC, m_Pcb, draw_mode, printmasklayer );


    // Draw filled polygons
    // Draw filled polygons
    #define NBMAX 2000
    #define NBMAX 20000
    TRACK* track;
    TRACK* track;
    int    nbpoints    = 0;
    int    nbpoints    = 0;
    int    nbpointsmax = NBMAX;
    int    nbpointsmax = NBMAX;
+0 −1
Original line number Original line Diff line number Diff line
@@ -438,7 +438,6 @@ public:
    void                Liste_Equipot( wxCommandEvent& event );
    void                Liste_Equipot( wxCommandEvent& event );
    void                Swap_Layers( wxCommandEvent& event );
    void                Swap_Layers( wxCommandEvent& event );
    void                Install_Test_DRC_Frame( wxDC* DC );
    void                Install_Test_DRC_Frame( wxDC* DC );
    void                Trace_Pcb( wxDC* DC, int mode );


    // Handling texts on the board
    // Handling texts on the board
    void                Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC );
    void                Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC );
+2 −0
Original line number Original line Diff line number Diff line
@@ -1045,6 +1045,8 @@ out:
    return rc;
    return rc;
}
}




/***********************************************************************************************/
/***********************************************************************************************/
void BOARD::RedrawAreasOutlines(WinEDA_DrawPanel* panel, wxDC * aDC, int aDrawMode, int aLayer)
void BOARD::RedrawAreasOutlines(WinEDA_DrawPanel* panel, wxDC * aDC, int aDrawMode, int aLayer)
/***********************************************************************************************/
/***********************************************************************************************/
Loading