C# Class Smrf.WpfGraphicsLib.WpfPathGeometryUtil

Utility methods for working with WPF PathGeometry objects.
All methods are static.
Show file Open project: 2014-sed-team3/term-project

Public Properties

Property Type Description
SqrtOf2 Double

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

GetCircleSegment() public static method

public static GetCircleSegment ( Point center, Double radius, Double angleRadians ) : System.Windows.Media.PathGeometry
center Point
radius Double
angleRadians Double
return System.Windows.Media.PathGeometry

GetCurveThroughPoints() public static method

public static GetCurveThroughPoints ( IList points, Double tension, Double tolerance ) : System.Windows.Media.PathGeometry
points IList
tension Double
tolerance Double
return System.Windows.Media.PathGeometry

GetDiamond() public static method

public static GetDiamond ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
center System
halfWidth Double
return System.Windows.Media.PathGeometry

GetPathGeometryFromPoints() public static method

public static GetPathGeometryFromPoints ( System startPoint ) : System.Windows.Media.PathGeometry
startPoint System
return System.Windows.Media.PathGeometry

GetQuadraticBezierCurve() public static method

public static GetQuadraticBezierCurve ( Point startPoint, Point endPoint, Point controlPoint ) : System.Windows.Media.PathGeometry
startPoint Point
endPoint Point
controlPoint Point
return System.Windows.Media.PathGeometry

GetRoundedX() public static method

public static GetRoundedX ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
center Point
halfWidth Double
return System.Windows.Media.PathGeometry

GetTaperedDiamond() public static method

public static GetTaperedDiamond ( Point center, Double halfWidth ) : System.Windows.Media.PathGeometry
center Point
halfWidth Double
return System.Windows.Media.PathGeometry

GetTriangle() public static method

public static GetTriangle ( System center, Double halfWidth ) : System.Windows.Media.PathGeometry
center System
halfWidth Double
return System.Windows.Media.PathGeometry

ReverseQuadraticBezierCurve() public static method

public static ReverseQuadraticBezierCurve ( System.Windows.Media.PathGeometry quadraticBezierCurve ) : System.Windows.Media.PathGeometry
quadraticBezierCurve System.Windows.Media.PathGeometry
return System.Windows.Media.PathGeometry

Property Details

SqrtOf2 public static property

public static Double SqrtOf2
return Double