Converted lots of get properties to methods in SettingsProfile
This commit is contained in:
parent
0ba8a78dc5
commit
895eea253c
40 changed files with 306 additions and 359 deletions
|
|
@ -229,7 +229,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
get
|
||||
{
|
||||
Vector2 PrinteCenter = ActiveSliceSettings.Instance.PrintCenter;
|
||||
Vector2 PrinteCenter = ActiveSliceSettings.Instance.PrintCenter();
|
||||
return (PrinteCenter.x * 1000).ToString();
|
||||
}
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
get
|
||||
{
|
||||
Vector2 PrinteCenter = ActiveSliceSettings.Instance.PrintCenter;
|
||||
Vector2 PrinteCenter = ActiveSliceSettings.Instance.PrintCenter();
|
||||
return (PrinteCenter.y * 1000).ToString();
|
||||
}
|
||||
}
|
||||
|
|
@ -288,8 +288,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
double lengthToExtrudeMm = ParseDouble(base.Value);
|
||||
// we need to convert mm of filament to mm of extrusion path
|
||||
double amountOfFilamentCubicMms = ActiveSliceSettings.Instance.FilamentDiameter * MathHelper.Tau * lengthToExtrudeMm;
|
||||
double extrusionSquareSize = ActiveSliceSettings.Instance.FirstLayerHeight * ActiveSliceSettings.Instance.NozzleDiameter;
|
||||
double amountOfFilamentCubicMms = ActiveSliceSettings.Instance.FilamentDiameter() * MathHelper.Tau * lengthToExtrudeMm;
|
||||
double extrusionSquareSize = ActiveSliceSettings.Instance.FirstLayerHeight() * ActiveSliceSettings.Instance.NozzleDiameter();
|
||||
double lineLength = amountOfFilamentCubicMms / extrusionSquareSize;
|
||||
|
||||
return (lineLength * 1000).ToString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue