Removed redundant fields DIMENSION::m_arrowD1O, m_arrowD2O, m_arrowG1O, m_arrowG2O (==m_crossBarO/F).
Added DIMENSION::SetOrigin(), DIMENSION::SetEnd(), DIMENSION::GetOrigin(), DIMENSION::GetEnd(), DIMENSION::GetHeight(). Fixed flipping for DIMENSION class. Added an information that helps to understand roles of the points in the DIMENSION class. Some minor changes to PCB_PAINTER (mainly using const COLOR4D& for taking the result of GetColor() function).
This commit is contained in:
@@ -274,19 +274,19 @@ void BRDITEMS_PLOTTER::PlotDimension( DIMENSION* aDim )
|
||||
draw.SetEnd( aDim->m_featureLineDF );
|
||||
PlotDrawSegment( &draw );
|
||||
|
||||
draw.SetStart( aDim->m_arrowD1O );
|
||||
draw.SetStart( aDim->m_crossBarF );
|
||||
draw.SetEnd( aDim->m_arrowD1F );
|
||||
PlotDrawSegment( &draw );
|
||||
|
||||
draw.SetStart( aDim->m_arrowD2O );
|
||||
draw.SetStart( aDim->m_crossBarF );
|
||||
draw.SetEnd( aDim->m_arrowD2F );
|
||||
PlotDrawSegment( &draw );
|
||||
|
||||
draw.SetStart( aDim->m_arrowG1O );
|
||||
draw.SetStart( aDim->m_crossBarO );
|
||||
draw.SetEnd( aDim->m_arrowG1F );
|
||||
PlotDrawSegment( &draw );
|
||||
|
||||
draw.SetStart( aDim->m_arrowG2O );
|
||||
draw.SetStart( aDim->m_crossBarO );
|
||||
draw.SetEnd( aDim->m_arrowG2F );
|
||||
PlotDrawSegment( &draw );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user