Class Circle
Represents a circle class.
Inheritance
Namespace: CirclePacking
Assembly: FastReport.BG.dll
Syntax
public class Circle
Constructors
Circle()
Creates a Circle.
Declaration
public Circle()
Circle(Double)
Creates a Circle object.
Declaration
public Circle(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value. |
Circle(Double, Double, Double)
Creates a Circle object.
Declaration
public Circle(double left, double top, double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | Left position of circle center. |
System.Double | top | Top position of circle center. |
System.Double | value | Value. |
Circle(Object, Double)
Creates a Circle with linked object.
Declaration
public Circle(object obj, double value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Linked object. |
System.Double | value | Value for visualization. |
Properties
Items
Gets child Items.
Declaration
public List<Circle> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Circle> |
Left
Left position of circle center.
Declaration
public double Left { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Object
The reference to any payload object.
Declaration
public object Object { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Packer
Child packer.
Declaration
public Packer Packer { get; set; }
Property Value
Type | Description |
---|---|
Packer |
Top
Top positipn of circle center.
Declaration
public double Top { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Value
The radius of circle.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Add(Double)
Adds child circle with value.
Declaration
public void Add(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value for adding. |
Add(Object, Double)
Adds child linked object with value.
Declaration
public void Add(object obj, double value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Linked object. |
System.Double | value | Value for visualization. |
Attach(Circle, Circle, Circle.AttachmentSide)
Attaches a circle to the pair others in chain.
Declaration
public void Attach(Circle circle1, Circle circle2, Circle.AttachmentSide position)
Parameters
Type | Name | Description |
---|---|---|
Circle | circle1 | First circle in chain. |
Circle | circle2 | Second circle in chain. |
Circle.AttachmentSide | position | The side of attachement. |
CalcRange(Double, Double)
Calc the range from Circle center to point with left, top.
Declaration
public double CalcRange(double left, double top)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | |
System.Double | top |
Returns
Type | Description |
---|---|
System.Double |
HitTest(Double, Double)
Checks point inside a circle.
Declaration
public bool HitTest(double left, double top)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | |
System.Double | top |
Returns
Type | Description |
---|---|
System.Boolean |
Intersection(Circle)
Testing of intersection with another circle.
Declaration
public bool Intersection(Circle circle)
Parameters
Type | Name | Description |
---|---|---|
Circle | circle | A circle for testing. |
Returns
Type | Description |
---|---|
System.Boolean |
Pack(Boolean)
Pack current circle.
Declaration
public void Pack(bool isRoot)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isRoot |
Update(Boolean)
Updates packing.
Declaration
public void Update(bool isRoot)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isRoot |