Class OverlapRemovalAlgorithmBase<TObject, TParameters>
Base class for all overlap removal algorithm.
Inheritance
System.Object
OverlapRemovalAlgorithmBase<TObject, TParameters>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.OverlapRemoval
Assembly: GraphShape.dll
Syntax
public abstract class OverlapRemovalAlgorithmBase<TObject, TParameters> : AlgorithmBase, IOverlapRemovalAlgorithm<TObject, TParameters>, IOverlapRemovalAlgorithm<TObject>, IAlgorithm where TParameters : IOverlapRemovalParameters
Type Parameters
Name | Description |
---|---|
TObject | Object type. |
TParameters | Algorithm parameters type. |
Constructors
| Improve this Doc View SourceOverlapRemovalAlgorithmBase(IDictionary<TObject, Rect>, TParameters)
Initializes a new instance of the OverlapRemovalAlgorithmBase<TObject, TParameters> class.
Declaration
protected OverlapRemovalAlgorithmBase(IDictionary<TObject, Rect> rectangles, TParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<TObject, Rect> | rectangles | Overlap rectangles. |
TParameters | parameters | Algorithm parameters. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Fields
| Improve this Doc View SourceWrappedRectangles
Wrapped rectangles.
Declaration
protected List<RectangleWrapper<TObject>> WrappedRectangles
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<RectangleWrapper<TObject>> |
Properties
| Improve this Doc View SourceParameters
Overlap removal parameters.
Declaration
public TParameters Parameters { get; }
Property Value
Type | Description |
---|---|
TParameters |
Rectangles
Overlap rectangles.
Declaration
public IDictionary<TObject, Rect> Rectangles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TObject, Rect> |
Methods
| Improve this Doc View SourceAddGaps()
Adds gaps between rectangles.
Declaration
protected virtual void AddGaps()
GetParameters()
Gets overlap removal parameters.
Declaration
public IOverlapRemovalParameters GetParameters()
Returns
Type | Description |
---|---|
IOverlapRemovalParameters | Overlap removal parameters. |
InternalCompute()
Algorithm compute step.
Declaration
protected sealed override void InternalCompute()
Overrides
| Improve this Doc View SourceRemoveGaps()
Removes gaps between rectangles.
Declaration
protected virtual void RemoveGaps()
RemoveOverlap()
Removes overlap.
Declaration
protected abstract void RemoveOverlap()