Shapes for schematic.

ADDED arc, circle and rectangle shapes for schematic.  Shapes support
line styles and fill colors.

CHANGED sheet background color in Edit Text & Graphics Properties to
fill color (and it now affects shapes).

Pushed STROKE_PARAMS down into common and moved all shapes to using it
for stroke descriptions.
This commit is contained in:
Jeff Young
2021-12-23 20:36:07 +00:00
parent 4b6bf3095a
commit 2bc86fa0a8
110 changed files with 4100 additions and 909 deletions
+3 -4
View File
@@ -41,7 +41,6 @@
#include <eda_item.h>
#include <plotters/plotter.h>
#include <geometry/shape_line_chain.h>
#include <geometry/geometry_utils.h>
#include <bezier_curves.h>
#include <math/util.h> // for KiROUND
@@ -138,19 +137,19 @@ double PLOTTER::userToDeviceSize( double size ) const
double PLOTTER::GetDotMarkLenIU() const
{
return userToDeviceSize( dot_mark_len( GetCurrentLineWidth() ) );
return userToDeviceSize( m_renderSettings->GetDotLength( GetCurrentLineWidth() ) );
}
double PLOTTER::GetDashMarkLenIU() const
{
return userToDeviceSize( dash_mark_len( GetCurrentLineWidth() ) );
return userToDeviceSize( m_renderSettings->GetDashLength( GetCurrentLineWidth() ) );
}
double PLOTTER::GetDashGapLenIU() const
{
return userToDeviceSize( dash_gap_len( GetCurrentLineWidth() ) );
return userToDeviceSize( m_renderSettings->GetGapLength( GetCurrentLineWidth() ) );
}