C# Класс Smrf.WpfGraphicsLib.WpfPathGeometryUtil

Utility methods for working with WPF PathGeometry objects.
All methods are static.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
SqrtOf2 Double

Открытые методы

Метод Описание
GetCircleSegment ( Point center, Double radius, Double angleRadians ) : System.Windows.Media.PathGeometry
GetCurveThroughPoints ( IList points, Double tension, Double tolerance ) : System.Windows.Media.PathGeometry
GetDiamond ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
GetPathGeometryFromPoints ( System startPoint ) : System.Windows.Media.PathGeometry
GetQuadraticBezierCurve ( Point startPoint, Point endPoint, Point controlPoint ) : System.Windows.Media.PathGeometry
GetRoundedX ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
GetTaperedDiamond ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
GetTriangle ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
ReverseQuadraticBezierCurve ( System.Windows.Media.PathGeometry quadraticBezierCurve ) : System.Windows.Media.PathGeometry

Приватные методы

Метод Описание
AddPointsToPolyLineSegment ( System.Windows.Media.PolyLineSegment oPolyLineSegment, Point oPoint0, Point oPoint1, Point oPoint2, Point oPoint3, Double dTension, Double dTolerance ) : void
GetPathGeometryFromPathSegments ( Point oStartPoint, System.Boolean bPathFigureIsFilled ) : System.Windows.Media.PathGeometry

Описание методов

GetCircleSegment() публичный статический Метод

public static GetCircleSegment ( Point center, Double radius, Double angleRadians ) : System.Windows.Media.PathGeometry
center Point
radius Double
angleRadians Double
Результат System.Windows.Media.PathGeometry

GetCurveThroughPoints() публичный статический Метод

public static GetCurveThroughPoints ( IList points, Double tension, Double tolerance ) : System.Windows.Media.PathGeometry
points IList
tension Double
tolerance Double
Результат System.Windows.Media.PathGeometry

GetDiamond() публичный статический Метод

public static GetDiamond ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
center System
halfWidth Double
Результат System.Windows.Media.PathGeometry

GetPathGeometryFromPoints() публичный статический Метод

public static GetPathGeometryFromPoints ( System startPoint ) : System.Windows.Media.PathGeometry
startPoint System
Результат System.Windows.Media.PathGeometry

GetQuadraticBezierCurve() публичный статический Метод

public static GetQuadraticBezierCurve ( Point startPoint, Point endPoint, Point controlPoint ) : System.Windows.Media.PathGeometry
startPoint Point
endPoint Point
controlPoint Point
Результат System.Windows.Media.PathGeometry

GetRoundedX() публичный статический Метод

public static GetRoundedX ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
center Point
halfWidth Double
Результат System.Windows.Media.PathGeometry

GetTaperedDiamond() публичный статический Метод

public static GetTaperedDiamond ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
center Point
halfWidth Double
Результат System.Windows.Media.PathGeometry

GetTriangle() публичный статический Метод

public static GetTriangle ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
center System
halfWidth Double
Результат System.Windows.Media.PathGeometry

ReverseQuadraticBezierCurve() публичный статический Метод

public static ReverseQuadraticBezierCurve ( System.Windows.Media.PathGeometry quadraticBezierCurve ) : System.Windows.Media.PathGeometry
quadraticBezierCurve System.Windows.Media.PathGeometry
Результат System.Windows.Media.PathGeometry

Описание свойств

SqrtOf2 публичное статическое свойство

public static Double SqrtOf2
Результат Double