Gerbview: fix most of Doxygen warnings.
This commit is contained in:
parent
1901a379b0
commit
2e2ecdd448
|
@ -872,7 +872,7 @@ wxString WinEDA_App::FindFileInSearchPaths( const wxString& filename,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/* GetHelpFile
|
||||||
* Get the help file path.
|
* Get the help file path.
|
||||||
*
|
*
|
||||||
* Return the Kicad help file with path. The base paths defined in
|
* Return the Kicad help file with path. The base paths defined in
|
||||||
|
@ -880,9 +880,9 @@ wxString WinEDA_App::FindFileInSearchPaths( const wxString& filename,
|
||||||
* be relative depending on the paths added to m_searchPaths. See the
|
* be relative depending on the paths added to m_searchPaths. See the
|
||||||
* documentation for wxPathList for more information. If the help file
|
* documentation for wxPathList for more information. If the help file
|
||||||
* for the current locale is not found, an attempt to find the English
|
* for the current locale is not found, an attempt to find the English
|
||||||
* version of the help file is made. wxEmptyString is returned if the
|
* version of the help file is made.
|
||||||
* help file is not found.
|
* wxEmptyString is returned if help file not found.
|
||||||
* Help file is searched in directories in this order:
|
* Help file is searched in directories in this order:
|
||||||
* help/<canonical name> like help/en_GB
|
* help/<canonical name> like help/en_GB
|
||||||
* help/<short name> like help/en
|
* help/<short name> like help/en
|
||||||
* help/en
|
* help/en
|
||||||
|
@ -1070,13 +1070,12 @@ wxString WinEDA_App::ReturnFilenameWithRelativePathInLibPath( const wxString& aF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** FindLibraryPath
|
/* FindLibraryPath
|
||||||
* Kicad saves user defined library files that are not in the standard
|
* Kicad saves user defined library files that are not in the standard
|
||||||
* library search path list with the full file path. Calling the library
|
* library search path list with the full file path. Calling the library
|
||||||
* search path list with a user library file will fail. This helper method
|
* search path list with a user library file will fail. This helper method
|
||||||
* solves that problem.
|
* solves that problem.
|
||||||
* @param fileName
|
* return a wxEmptyString if library file is not found.
|
||||||
* @return a wxEmptyString if library file is not found.
|
|
||||||
*/
|
*/
|
||||||
wxString WinEDA_App::FindLibraryPath( const wxString& aFileName )
|
wxString WinEDA_App::FindLibraryPath( const wxString& aFileName )
|
||||||
{
|
{
|
||||||
|
@ -1087,10 +1086,9 @@ wxString WinEDA_App::FindLibraryPath( const wxString& aFileName )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/* Function RemoveLibraryPath
|
||||||
* Function RemoveLibraryPath
|
|
||||||
* Removes the given path(s) from the library path list
|
* Removes the given path(s) from the library path list
|
||||||
* @param aPaths = path or path list to remove. paths must be separated by ";"
|
* aPaths = path or path list to remove. paths must be separated by ";"
|
||||||
*/
|
*/
|
||||||
void WinEDA_App::RemoveLibraryPath( const wxString& aPaths )
|
void WinEDA_App::RemoveLibraryPath( const wxString& aPaths )
|
||||||
{
|
{
|
||||||
|
|
|
@ -189,6 +189,7 @@ struct APERTURE_MACRO
|
||||||
* But some parameters are defined outside the aperture primitive
|
* But some parameters are defined outside the aperture primitive
|
||||||
* and are local to the aperture macro
|
* and are local to the aperture macro
|
||||||
* @return the value of a defered parameter defined inside the aperture macro
|
* @return the value of a defered parameter defined inside the aperture macro
|
||||||
|
* @param aDcode = the D_CODE that uses this apertur macro and define defered parameters
|
||||||
* @param aParamId = the param id (defined by $3 or $5 ..) to evaluate
|
* @param aParamId = the param id (defined by $3 or $5 ..) to evaluate
|
||||||
*/
|
*/
|
||||||
double GetLocalParam( const D_CODE* aDcode, unsigned aParamId ) const;
|
double GetLocalParam( const D_CODE* aDcode, unsigned aParamId ) const;
|
||||||
|
|
|
@ -271,7 +271,7 @@ EDA_Rect GERBER_DRAW_ITEM::GetBoundingBox() const
|
||||||
/**
|
/**
|
||||||
* Function MoveAB
|
* Function MoveAB
|
||||||
* move this object.
|
* move this object.
|
||||||
* @param const wxPoint& aMoveVector - the move vector for this object, in AB plotter axis.
|
* @param aMoveVector - the move vector for this object, in AB plotter axis.
|
||||||
*/
|
*/
|
||||||
void GERBER_DRAW_ITEM::MoveAB( const wxPoint& aMoveVector )
|
void GERBER_DRAW_ITEM::MoveAB( const wxPoint& aMoveVector )
|
||||||
{
|
{
|
||||||
|
@ -288,7 +288,7 @@ void GERBER_DRAW_ITEM::MoveAB( const wxPoint& aMoveVector )
|
||||||
/**
|
/**
|
||||||
* Function MoveXY
|
* Function MoveXY
|
||||||
* move this object.
|
* move this object.
|
||||||
* @param const wxPoint& aMoveVector - the move vector for this object, in XY gerber axis.
|
* @param aMoveVector - the move vector for this object, in XY gerber axis.
|
||||||
*/
|
*/
|
||||||
void GERBER_DRAW_ITEM::MoveXY( const wxPoint& aMoveVector )
|
void GERBER_DRAW_ITEM::MoveXY( const wxPoint& aMoveVector )
|
||||||
{
|
{
|
||||||
|
@ -323,7 +323,7 @@ bool GERBER_DRAW_ITEM::HasNegativeItems()
|
||||||
// we must see if this aperture macro uses a negative shape.
|
// we must see if this aperture macro uses a negative shape.
|
||||||
if( isClear )
|
if( isClear )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// see for a macro def
|
// see for a macro def
|
||||||
D_CODE* dcodeDescr = GetDcodeDescr();
|
D_CODE* dcodeDescr = GetDcodeDescr();
|
||||||
if( dcodeDescr == NULL )
|
if( dcodeDescr == NULL )
|
||||||
|
@ -334,7 +334,7 @@ bool GERBER_DRAW_ITEM::HasNegativeItems()
|
||||||
if( macro ) // macro == NULL should not occurs
|
if( macro ) // macro == NULL should not occurs
|
||||||
return macro->HasNegativeItems( this );
|
return macro->HasNegativeItems( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ void GERBER_DRAW_ITEM::ConvertSegmentToPolygon( )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Function DrawGbrPoly
|
* Function DrawGbrPoly
|
||||||
* a helper function used id ::Draw to draw the polygon stored in m_PolyCorners
|
* a helper function used id ::Draw to draw the polygon stored in m_PolyCorners
|
||||||
* Draw filled polygons
|
* Draw filled polygons
|
||||||
|
@ -661,17 +661,17 @@ bool GERBER_DRAW_ITEM::HitTest( const wxPoint& aRefPos )
|
||||||
* Function HitTest (overlayed)
|
* Function HitTest (overlayed)
|
||||||
* tests if the given EDA_Rect intersect this object.
|
* tests if the given EDA_Rect intersect this object.
|
||||||
* For now, an ending point must be inside this rect.
|
* For now, an ending point must be inside this rect.
|
||||||
* @param refArea : the given EDA_Rect in AB plotter axis
|
* @param aRefArea : the given EDA_Rect in AB plotter axis
|
||||||
* @return bool - true if a hit, else false
|
* @return bool - true if a hit, else false
|
||||||
*/
|
*/
|
||||||
bool GERBER_DRAW_ITEM::HitTest( EDA_Rect& refArea )
|
bool GERBER_DRAW_ITEM::HitTest( EDA_Rect& aRefArea )
|
||||||
{
|
{
|
||||||
wxPoint pos = GetABPosition( m_Start );
|
wxPoint pos = GetABPosition( m_Start );
|
||||||
|
|
||||||
if( refArea.Inside( pos ) )
|
if( aRefArea.Inside( pos ) )
|
||||||
return true;
|
return true;
|
||||||
pos = GetABPosition( m_End );
|
pos = GetABPosition( m_End );
|
||||||
if( refArea.Inside( pos ) )
|
if( aRefArea.Inside( pos ) )
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
{
|
{
|
||||||
return m_LayerNegative;
|
return m_LayerNegative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function HasNegativeItems
|
* Function HasNegativeItems
|
||||||
* @return true if this item or at least one shape (when using aperture macros
|
* @return true if this item or at least one shape (when using aperture macros
|
||||||
|
@ -147,14 +147,14 @@ public:
|
||||||
/**
|
/**
|
||||||
* Function MoveAB
|
* Function MoveAB
|
||||||
* move this object.
|
* move this object.
|
||||||
* @param const wxPoint& aMoveVector - the move vector for this object.
|
* @param aMoveVector - the move vector for this object.
|
||||||
*/
|
*/
|
||||||
void MoveAB( const wxPoint& aMoveVector );
|
void MoveAB( const wxPoint& aMoveVector );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function MoveXY
|
* Function MoveXY
|
||||||
* move this object.
|
* move this object.
|
||||||
* @param const wxPoint& aMoveVector - the move vector for this object, in XY gerber axis.
|
* @param aMoveVector - the move vector for this object, in XY gerber axis.
|
||||||
*/
|
*/
|
||||||
void MoveXY( const wxPoint& aMoveVector );
|
void MoveXY( const wxPoint& aMoveVector );
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Function HitTest
|
* Function HitTest
|
||||||
* tests if the given wxPoint is within the bounds of this object.
|
* tests if the given wxPoint is within the bounds of this object.
|
||||||
* @param aRefPos A wxPoint to test
|
* @param aRefPos a wxPoint to test
|
||||||
* @return bool - true if a hit, else false
|
* @return bool - true if a hit, else false
|
||||||
*/
|
*/
|
||||||
bool HitTest( const wxPoint& aRefPos );
|
bool HitTest( const wxPoint& aRefPos );
|
||||||
|
@ -247,7 +247,7 @@ public:
|
||||||
* Function HitTest (overlayed)
|
* Function HitTest (overlayed)
|
||||||
* tests if the given wxRect intersect this object.
|
* tests if the given wxRect intersect this object.
|
||||||
* For now, an ending point must be inside this rect.
|
* For now, an ending point must be inside this rect.
|
||||||
* @param aRefPos A wxPoint to test
|
* @param aRefArea a wxPoint to test
|
||||||
* @return bool - true if a hit, else false
|
* @return bool - true if a hit, else false
|
||||||
*/
|
*/
|
||||||
bool HitTest( EDA_Rect& aRefArea );
|
bool HitTest( EDA_Rect& aRefArea );
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#include "class_gerbview_layer_widget.h"
|
#include "class_gerbview_layer_widget.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Class GERBER_LAYER_WIDGET
|
* Class GERBER_LAYER_WIDGET
|
||||||
* is here to implement the abtract functions of LAYER_WIDGET so they
|
* is here to implement the abtract functions of LAYER_WIDGET so they
|
||||||
* may be tied into the WinEDA_GerberFrame's data and so we can add a popup
|
* may be tied into the WinEDA_GerberFrame's data and so we can add a popup
|
||||||
|
|
|
@ -63,6 +63,8 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
* @param aParent : the parent frame
|
||||||
|
* @param aFocusOwner : the window that has the keyboard focus.
|
||||||
* @param aPointSize is the font point size to use within the widget. This
|
* @param aPointSize is the font point size to use within the widget. This
|
||||||
* effectively sets the overal size of the widget via the row height and bitmap
|
* effectively sets the overal size of the widget via the row height and bitmap
|
||||||
* button sizes.
|
* button sizes.
|
||||||
|
|
|
@ -136,7 +136,7 @@ int D_CODE::GetShapeDim( GERBER_DRAW_ITEM* aParent )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Function Read_D_Code_File
|
* Function Read_D_Code_File
|
||||||
* Can be useful only with old RS274D Gerber file format.
|
* Can be useful only with old RS274D Gerber file format.
|
||||||
* Is not needed with RS274X files format.
|
* Is not needed with RS274X files format.
|
||||||
|
@ -326,7 +326,7 @@ void WinEDA_GerberFrame::CopyDCodesSizeToItems()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Function DrawFlashedShape
|
* Function DrawFlashedShape
|
||||||
* Draw the dcode shape for flashed items.
|
* Draw the dcode shape for flashed items.
|
||||||
* When an item is flashed, the DCode shape is the shape of the item
|
* When an item is flashed, the DCode shape is the shape of the item
|
||||||
|
@ -442,7 +442,7 @@ void D_CODE::DrawFlashedShape( GERBER_DRAW_ITEM* aParent,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Function DrawFlashedPolygon
|
* Function DrawFlashedPolygon
|
||||||
* a helper function used id ::Draw to draw the polygon stored ion m_PolyCorners
|
* a helper function used id ::Draw to draw the polygon stored ion m_PolyCorners
|
||||||
* Draw some Apertures shapes when they are defined as filled polygons.
|
* Draw some Apertures shapes when they are defined as filled polygons.
|
||||||
|
|
|
@ -164,8 +164,8 @@ public:
|
||||||
* @param aDC = device context
|
* @param aDC = device context
|
||||||
* @param aColor = the normal color to use
|
* @param aColor = the normal color to use
|
||||||
* @param aAltColor = the color used to draw with "reverse" exposure mode (used in aperture macros only)
|
* @param aAltColor = the color used to draw with "reverse" exposure mode (used in aperture macros only)
|
||||||
* @param aFilled = true to draw in filled mode, false to draw in skecth mode
|
* @param aShapePos = the actual shape position
|
||||||
* @param aPosition = the actual shape position
|
* @param aFilledShape = true to draw in filled mode, false to draw in skecth mode
|
||||||
*/
|
*/
|
||||||
void DrawFlashedShape( GERBER_DRAW_ITEM* aParent,
|
void DrawFlashedShape( GERBER_DRAW_ITEM* aParent,
|
||||||
EDA_Rect* aClipBox, wxDC* aDC, int aColor, int aAltColor,
|
EDA_Rect* aClipBox, wxDC* aDC, int aColor, int aAltColor,
|
||||||
|
|
|
@ -124,7 +124,7 @@ WinEDA_ConfigFrame::WinEDA_ConfigFrame( WinEDA_GerberFrame* parent,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void WinEDA_ConfigFrame::OnOkClick( wxCommandEvent& WXUNUSED (event) )
|
void WinEDA_ConfigFrame::OnOkClick( wxCommandEvent &event )
|
||||||
{
|
{
|
||||||
g_DrillFilenameExt = TextDrillExt->GetValue();
|
g_DrillFilenameExt = TextDrillExt->GetValue();
|
||||||
g_PhotoFilenameExt = TextPhotoExt->GetValue();
|
g_PhotoFilenameExt = TextPhotoExt->GetValue();
|
||||||
|
@ -134,7 +134,7 @@ void WinEDA_ConfigFrame::OnOkClick( wxCommandEvent& WXUNUSED (event) )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void WinEDA_ConfigFrame::OnCancelClick( wxCommandEvent& WXUNUSED (event) )
|
void WinEDA_ConfigFrame::OnCancelClick( wxCommandEvent &event )
|
||||||
{
|
{
|
||||||
EndModal( -1 );
|
EndModal( -1 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS( WinEDA_GerberFrame *parent) :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DIALOG_DISPLAY_OPTIONS::OnCancelButtonClick( wxCommandEvent& WXUNUSED(event) )
|
void DIALOG_DISPLAY_OPTIONS::OnCancelButtonClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
EndModal( 0 );
|
EndModal( 0 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,9 +126,10 @@ void WinEDA_GerberFrame::RedrawActiveWindow( wxDC* DC, bool EraseBg )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/********************************************************************/
|
/*
|
||||||
|
* Redraw All gerbview layers, using a buffered mode or not
|
||||||
|
*/
|
||||||
void BOARD::Draw( WinEDA_DrawPanel* aPanel, wxDC* aDC, int aDrawMode, const wxPoint& aOffset )
|
void BOARD::Draw( WinEDA_DrawPanel* aPanel, wxDC* aDC, int aDrawMode, const wxPoint& aOffset )
|
||||||
/********************************************************************/
|
|
||||||
{
|
{
|
||||||
// Because Images can be negative (i.e with background filled in color) items are drawn
|
// Because Images can be negative (i.e with background filled in color) items are drawn
|
||||||
// graphic layer per graphic layer, after the background is filled
|
// graphic layer per graphic layer, after the background is filled
|
||||||
|
|
|
@ -527,7 +527,7 @@ void WinEDA_GerberFrame::Liste_D_Codes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Function UpdateTitleAndInfo
|
* Function UpdateTitleAndInfo
|
||||||
* displays the short filename (if exists) of the selected layer
|
* displays the short filename (if exists) of the selected layer
|
||||||
* on the caption of the main gerbview window
|
* on the caption of the main gerbview window
|
||||||
|
|
|
@ -86,7 +86,6 @@ static wxPoint LastPosition;
|
||||||
* @param aPos The center point of the flash
|
* @param aPos The center point of the flash
|
||||||
* @param aSize The diameter of the round flash
|
* @param aSize The diameter of the round flash
|
||||||
* @param aLayerNegative = true if the current layer is negative
|
* @param aLayerNegative = true if the current layer is negative
|
||||||
* @param aImageNegative = true if the current image is negative
|
|
||||||
*/
|
*/
|
||||||
static void fillFlashedGBRITEM( GERBER_DRAW_ITEM* aGbrItem,
|
static void fillFlashedGBRITEM( GERBER_DRAW_ITEM* aGbrItem,
|
||||||
APERTURE_T aAperture,
|
APERTURE_T aAperture,
|
||||||
|
@ -177,17 +176,19 @@ static void fillLineGBRITEM( GERBER_DRAW_ITEM* aGbrItem,
|
||||||
* <li> absolute angle 180 to 270 (quadrant 3) or
|
* <li> absolute angle 180 to 270 (quadrant 3) or
|
||||||
* <li> absolute angle 270 to 0 (quadrant 4)
|
* <li> absolute angle 270 to 0 (quadrant 4)
|
||||||
* </ul><p>
|
* </ul><p>
|
||||||
* @param GERBER_DRAW_ITEM is the GBRITEM to fill in.
|
* @param aGbrItem is the GBRITEM to fill in.
|
||||||
* @param Dcode_index is the DCODE value, like D14
|
* @param Dcode_index is the DCODE value, like D14
|
||||||
* @param aLayer is the layer index to set into the GBRITEM
|
* @param aLayer is the layer index to set into the GBRITEM
|
||||||
* @param aStart is the starting point
|
* @param aStart is the starting point
|
||||||
* @param aEnd is the ending point
|
* @param aEnd is the ending point
|
||||||
* @param rel_center is the center coordinate relative to start point,
|
* @param aRelCenter is the center coordinate relative to start point,
|
||||||
* given in ABSOLUTE VALUE and the sign of values x et y de rel_center
|
* given in ABSOLUTE VALUE and the sign of values x et y de rel_center
|
||||||
* must be calculated from the previously given constraint: arc only in the
|
* must be calculated from the previously given constraint: arc only in the
|
||||||
* same quadrant.
|
* same quadrant.
|
||||||
* @param aDiameter The diameter of the round flash
|
* @param aClockwise true if arc must be created clockwise
|
||||||
* @param aPenSize The size of the flash. Note rectangular shapes are legal.
|
* @param aPenSize The size of the flash. Note rectangular shapes are legal.
|
||||||
|
* @param aMultiquadrant = true to create arcs upto 360 deg,
|
||||||
|
* false when arc is inside one quadrant
|
||||||
* @param aLayerNegative = true if the current layer is negative
|
* @param aLayerNegative = true if the current layer is negative
|
||||||
*/
|
*/
|
||||||
static void fillArcGBRITEM( GERBER_DRAW_ITEM* aGbrItem, int Dcode_index, int aLayer,
|
static void fillArcGBRITEM( GERBER_DRAW_ITEM* aGbrItem, int Dcode_index, int aLayer,
|
||||||
|
@ -212,7 +213,7 @@ static void fillArcGBRITEM( GERBER_DRAW_ITEM* aGbrItem, int Dcode_index, int aL
|
||||||
// So we must recalculate the actual sign of aRelCenter.x and aRelCenter.y
|
// So we must recalculate the actual sign of aRelCenter.x and aRelCenter.y
|
||||||
center = aRelCenter;
|
center = aRelCenter;
|
||||||
|
|
||||||
// calculate arc end coordinate relative to the staring point,
|
// calculate arc end coordinate relative to the starting point,
|
||||||
// because center is relative to the center point
|
// because center is relative to the center point
|
||||||
delta = aEnd - aStart;
|
delta = aEnd - aStart;
|
||||||
|
|
||||||
|
@ -305,22 +306,22 @@ static void fillArcGBRITEM( GERBER_DRAW_ITEM* aGbrItem, int Dcode_index, int aL
|
||||||
* <li> absolute angle 270 to 0 (quadrant 4)
|
* <li> absolute angle 270 to 0 (quadrant 4)
|
||||||
* </ul><p>
|
* </ul><p>
|
||||||
* @param aPcb is the board.
|
* @param aPcb is the board.
|
||||||
* @param aLayer is the layer index to set into the GBRITEM
|
* @param aGbrItem is the GBRITEM to fill in.
|
||||||
* @param aStart is the starting point
|
* @param aStart is the starting point
|
||||||
* @param aEnd is the ending point
|
* @param aEnd is the ending point
|
||||||
* @param rel_center is the center coordinate relative to start point,
|
* @param rel_center is the center coordinate relative to start point,
|
||||||
* given in ABSOLUTE VALUE and the sign of values x et y de rel_center
|
* given in ABSOLUTE VALUE and the sign of values x et y de rel_center
|
||||||
* must be calculated from the previously given constraint: arc only in the
|
* must be calculated from the previously given constraint: arc only in the
|
||||||
* same quadrant.
|
* same quadrant.
|
||||||
* @param aDiameter The diameter of the round flash
|
* @param aClockwise true if arc must be created clockwise
|
||||||
* @param aWidth is the pen width.
|
* @param aMultiquadrant = true to create arcs upto 360 deg,
|
||||||
|
* false when arc is inside one quadrant
|
||||||
* @param aLayerNegative = true if the current layer is negative
|
* @param aLayerNegative = true if the current layer is negative
|
||||||
* @param aImageNegative = true if the current image is negative
|
|
||||||
*/
|
*/
|
||||||
static void fillArcPOLY( BOARD* aPcb, GERBER_DRAW_ITEM* aGbrItem,
|
static void fillArcPOLY( BOARD* aPcb, GERBER_DRAW_ITEM* aGbrItem,
|
||||||
const wxPoint& aStart, const wxPoint& aEnd,
|
const wxPoint& aStart, const wxPoint& aEnd,
|
||||||
const wxPoint& rel_center,
|
const wxPoint& rel_center,
|
||||||
bool clockwise, bool multiquadrant,
|
bool aClockwise, bool aMultiquadrant,
|
||||||
bool aLayerNegative )
|
bool aLayerNegative )
|
||||||
{
|
{
|
||||||
/* in order to calculate arc parameters, we use fillArcGBRITEM
|
/* in order to calculate arc parameters, we use fillArcGBRITEM
|
||||||
|
@ -332,7 +333,7 @@ static void fillArcPOLY( BOARD* aPcb, GERBER_DRAW_ITEM* aGbrItem,
|
||||||
|
|
||||||
fillArcGBRITEM( &dummyGbrItem, 0, 0,
|
fillArcGBRITEM( &dummyGbrItem, 0, 0,
|
||||||
aStart, aEnd, rel_center, wxSize(0, 0),
|
aStart, aEnd, rel_center, wxSize(0, 0),
|
||||||
clockwise, multiquadrant, aLayerNegative );
|
aClockwise, aMultiquadrant, aLayerNegative );
|
||||||
|
|
||||||
wxPoint center;
|
wxPoint center;
|
||||||
center = dummyGbrItem.m_ArcCentre;
|
center = dummyGbrItem.m_ArcCentre;
|
||||||
|
@ -370,7 +371,7 @@ static void fillArcPOLY( BOARD* aPcb, GERBER_DRAW_ITEM* aGbrItem,
|
||||||
{
|
{
|
||||||
int rot;
|
int rot;
|
||||||
wxPoint end_arc = start;
|
wxPoint end_arc = start;
|
||||||
if( clockwise )
|
if( aClockwise )
|
||||||
rot = ii * increment_angle; // rot is in 0.1 deg
|
rot = ii * increment_angle; // rot is in 0.1 deg
|
||||||
else
|
else
|
||||||
rot = (count - ii) * increment_angle; // rot is in 0.1 deg
|
rot = (count - ii) * increment_angle; // rot is in 0.1 deg
|
||||||
|
@ -378,7 +379,7 @@ static void fillArcPOLY( BOARD* aPcb, GERBER_DRAW_ITEM* aGbrItem,
|
||||||
if( ii < count )
|
if( ii < count )
|
||||||
RotatePoint( &end_arc, -rot );
|
RotatePoint( &end_arc, -rot );
|
||||||
else // last point
|
else // last point
|
||||||
end_arc = clockwise ? end : start;
|
end_arc = aClockwise ? end : start;
|
||||||
|
|
||||||
aGbrItem->m_PolyCorners.push_back( end_arc + center );
|
aGbrItem->m_PolyCorners.push_back( end_arc + center );
|
||||||
|
|
||||||
|
|
|
@ -769,7 +769,7 @@ bool GetEndOfBlock( char buff[GERBER_BUFZ], char*& text, FILE* gerber_file )
|
||||||
* test for an end of line
|
* test for an end of line
|
||||||
* if an end of line is found:
|
* if an end of line is found:
|
||||||
* read a new line
|
* read a new line
|
||||||
* @param aBuff[GERBER_BUFZ] = buffer to fill with a new line
|
* @param aBuff = buffer (size = GERBER_BUFZ) to fill with a new line
|
||||||
* @param aText = pointer to the last useful char in aBuff
|
* @param aText = pointer to the last useful char in aBuff
|
||||||
* on return: points the beginning of the next line.
|
* on return: points the beginning of the next line.
|
||||||
* @param aFile = the opened GERBER file to read
|
* @param aFile = the opened GERBER file to read
|
||||||
|
|
|
@ -387,7 +387,7 @@ public: WinEDA_GerberFrame( wxWindow* father, const wxString& title,
|
||||||
* example: 0.012, 0.012, L , D10<br>
|
* example: 0.012, 0.012, L , D10<br>
|
||||||
*
|
*
|
||||||
* Categorize all found dcodes into a table of D_CODE instantiations.
|
* Categorize all found dcodes into a table of D_CODE instantiations.
|
||||||
* @param D_CodeFullFileName The name of the file to read from.
|
* @param D_Code_FullFileName The name of the file to read from.
|
||||||
* @return int - <br>
|
* @return int - <br>
|
||||||
* -1 = file not found<br>
|
* -1 = file not found<br>
|
||||||
* -2 = parsing problem<br>
|
* -2 = parsing problem<br>
|
||||||
|
|
Loading…
Reference in New Issue