Class Path
Namespace: Aurigma.DesignAtoms.Model.Math
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class Path : ICloneable
Inheritance: System.Object -> Path
Implements
System.ICloneable
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
Path
public Path()
Properties
IsEmpty
public bool IsEmpty { get; }
Methods
GetBounds
public RectangleF GetBounds()
Returns
System.Drawing.RectangleF
Clone
public object Clone()
Returns
System.Object
Close
public void Close()
MoveTo
public void MoveTo(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y |
MoveTo
public void MoveTo(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | point |
LineTo
public void LineTo(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y |
LineTo
public void LineTo(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | point |
QuadraticTo
public void QuadraticTo(float cx, float cy, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | cx | |
System.Single | cy | |
System.Single | x | |
System.Single | y |
QuadraticTo
public void QuadraticTo(PointF center, PointF endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | center | |
| Aurigma.DesignAtoms.Model.Math.PointF | endPoint |
CubicTo
public void CubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | cx1 | |
System.Single | cy1 | |
System.Single | cx2 | |
System.Single | cy2 | |
System.Single | x | |
System.Single | y |
CubicTo
public void CubicTo(PointF center1, PointF center2, PointF endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | center1 | |
| Aurigma.DesignAtoms.Model.Math.PointF | center2 | |
| Aurigma.DesignAtoms.Model.Math.PointF | endPoint |
Equals
public bool Equals(Path obj, double tolerance = 0.0001)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | obj | |
System.Double | tolerance |
Returns
System.Boolean
Equals
public static bool Equals(Path a, Path b, double tolerance = 0.0001)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | a | |
| Aurigma.DesignAtoms.Model.Math.Path | b | |
System.Double | tolerance |
Returns
System.Boolean
RotateAt
public void RotateAt(double angle, PointF center)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | angle | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
Scale
public void Scale(double scaleX, double scaleY)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | scaleX | |
System.Double | scaleY |
Translate
public void Translate(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | x | |
System.Double | y |
Transform
public void Transform(Transform transform, PointF center)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Transform | transform | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
GetFirstPoint
public PointF GetFirstPoint()
Returns
Aurigma.DesignAtoms.Model.Math.PointF
FromSvgString
public static Path FromSvgString(string svg)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | svg |
Returns
Aurigma.DesignAtoms.Model.Math.Path
ToSvgString
public string ToSvgString()
Returns
System.String
CreateEllipsePath
public static Path CreateEllipsePath(float x, float y, float width, float height)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | height |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateEllipsePath
public static Path CreateEllipsePath(RectangleF rectangleF)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | rectangleF |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateRectanglePath
public static Path CreateRectanglePath(float x, float y, float width, float height)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | height |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateRectanglePath
public static Path CreateRectanglePath(RectangleF rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | rectangle |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateRoundedRectanglePath
public static Path CreateRoundedRectanglePath(RectangleF rectangle, SizeF[] radiuses)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | rectangle | |
System.Drawing.SizeF[] | radiuses |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateRoundedRectanglePath
public static Path CreateRoundedRectanglePath(float x, float y, float width, float height, SizeF[] radiuses)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | height | |
System.Drawing.SizeF[] | radiuses |
Returns
Aurigma.DesignAtoms.Model.Math.Path
Fields
_segments
public readonly List<Path.PathSegment> _segments
Events
PathChanged
public event EventHandler PathChanged