C# Class Praeclarum.Graphics.Stroke

Show file Open project: praeclarum/Praeclarum Class Usage Examples

Public Methods

Method Description
AddPoint ( PointF rawPoint ) : void
AddPoints ( IEnumerable rawPoints ) : void
Draw ( IGraphics g, float thickness = DefaultThickness ) : void
GetDirectionSegments ( int startIndex, int resolution = 20 ) : Praeclarum.Graphics.StrokeSegment[]
GetIntersectionWith ( Stroke other ) : IntersectionInfo
GetResolutionSimplifiedSegments ( int startIndex, int resolution ) : Praeclarum.Graphics.StrokeSegment[]
GetSegment ( int startIndex ) : StrokeSegment
GetSegment ( int startIndex, int lastIndex ) : StrokeSegment
GetSimplifiedSegments ( int startIndex, float error, int maxSegments ) : Praeclarum.Graphics.StrokeSegment[]
GetSimplifiedStroke ( int startIndex, float error, int maxSegments ) : Stroke
IntersectsWith ( LineSegmentF lineSegment ) : bool
IntersectsWith ( Stroke other ) : bool
RecognizeHorizontalLine ( int startIndex, int &endIndex ) : bool
RecognizeLoop ( int startIndex, int &lastIndex ) : bool
RecognizeVerticalLine ( int startIndex, int &lastIndex ) : bool
Stroke ( ) : System
Stroke ( System.DateTime createdTime ) : System

Protected Methods

Method Description
Draw ( IGraphics g, int startIndex, int length, float thickness ) : void

Private Methods

Method Description
RemoveInitialFlourish ( ) : int

Method Details

AddPoint() public method

public AddPoint ( PointF rawPoint ) : void
rawPoint PointF
return void

AddPoints() public method

public AddPoints ( IEnumerable rawPoints ) : void
rawPoints IEnumerable
return void

Draw() public method

public Draw ( IGraphics g, float thickness = DefaultThickness ) : void
g IGraphics
thickness float
return void

Draw() protected method

protected Draw ( IGraphics g, int startIndex, int length, float thickness ) : void
g IGraphics
startIndex int
length int
thickness float
return void

GetDirectionSegments() public method

public GetDirectionSegments ( int startIndex, int resolution = 20 ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
resolution int
return Praeclarum.Graphics.StrokeSegment[]

GetIntersectionWith() public method

public GetIntersectionWith ( Stroke other ) : IntersectionInfo
other Stroke
return IntersectionInfo

GetResolutionSimplifiedSegments() public method

public GetResolutionSimplifiedSegments ( int startIndex, int resolution ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
resolution int
return Praeclarum.Graphics.StrokeSegment[]

GetSegment() public method

public GetSegment ( int startIndex ) : StrokeSegment
startIndex int
return StrokeSegment

GetSegment() public method

public GetSegment ( int startIndex, int lastIndex ) : StrokeSegment
startIndex int
lastIndex int
return StrokeSegment

GetSimplifiedSegments() public method

public GetSimplifiedSegments ( int startIndex, float error, int maxSegments ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
error float
maxSegments int
return Praeclarum.Graphics.StrokeSegment[]

GetSimplifiedStroke() public method

public GetSimplifiedStroke ( int startIndex, float error, int maxSegments ) : Stroke
startIndex int
error float
maxSegments int
return Stroke

IntersectsWith() public method

public IntersectsWith ( LineSegmentF lineSegment ) : bool
lineSegment LineSegmentF
return bool

IntersectsWith() public method

public IntersectsWith ( Stroke other ) : bool
other Stroke
return bool

RecognizeHorizontalLine() public method

public RecognizeHorizontalLine ( int startIndex, int &endIndex ) : bool
startIndex int
endIndex int
return bool

RecognizeLoop() public method

public RecognizeLoop ( int startIndex, int &lastIndex ) : bool
startIndex int
lastIndex int
return bool

RecognizeVerticalLine() public method

public RecognizeVerticalLine ( int startIndex, int &lastIndex ) : bool
startIndex int
lastIndex int
return bool

Stroke() public method

public Stroke ( ) : System
return System

Stroke() public method

public Stroke ( System.DateTime createdTime ) : System
createdTime System.DateTime
return System