Show / Hide Table of Contents

Class RectangleWrapper<TObject>

Rectangle wrapper.

Inheritance
System.Object
RectangleWrapper<TObject>
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 class RectangleWrapper<TObject>
Type Parameters
Name Description
TObject

Constructors

| Improve this Doc View Source

RectangleWrapper(TObject, Rect)

Initializes a new instance of the RectangleWrapper<TObject> class.

Declaration
public RectangleWrapper(TObject id, Rect rectangle)
Parameters
Type Name Description
TObject id

Rectangle id (at the end of the overlap removal, we must know which rectangle is associated to which object. The id will be resolved at that time.

Rect rectangle

Rectangle to wrap.

Exceptions
Type Condition
System.ArgumentNullException

id is null.

Fields

| Improve this Doc View Source

Rectangle

Wrapped rectangle.

Declaration
public Rect Rectangle
Field Value
Type Description
Rect

Properties

| Improve this Doc View Source

Center

Rectangle center.

Declaration
public Point Center { get; }
Property Value
Type Description
Point
| Improve this Doc View Source

CenterX

Rectangle center on X axis.

Declaration
public double CenterX { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

CenterY

Rectangle center on Y axis.

Declaration
public double CenterY { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Id

Rectangle Id.

Declaration
public TObject Id { get; }
Property Value
Type Description
TObject

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape