Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Layer/LayerManager.cs')
-rw-r--r--UVtools.Core/Layer/LayerManager.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/UVtools.Core/Layer/LayerManager.cs b/UVtools.Core/Layer/LayerManager.cs
index a5ec45d..65127c4 100644
--- a/UVtools.Core/Layer/LayerManager.cs
+++ b/UVtools.Core/Layer/LayerManager.cs
@@ -49,8 +49,14 @@ namespace UVtools.Core
}
}
+ /// <summary>
+ /// Gets the bounding rectangle of the object
+ /// </summary>
private Rectangle _boundingRectangle = Rectangle.Empty;
+ /// <summary>
+ /// Gets the bounding rectangle of the object
+ /// </summary>
public Rectangle BoundingRectangle
{
get => GetBoundingRectangle();
@@ -79,7 +85,7 @@ namespace UVtools.Core
}
}
- public float LayerHeight => Layers[0].PositionZ;
+ //public float LayerHeight => Layers[0].PositionZ;
#endregion
@@ -1294,5 +1300,14 @@ namespace UVtools.Core
#endregion
+
+ #region Formater
+
+ public override string ToString()
+ {
+ return $"{nameof(BoundingRectangle)}: {BoundingRectangle}, {nameof(Count)}: {Count}, {nameof(IsModified)}: {IsModified}";
+ }
+
+ #endregion
}
}