An NDoc Documented Class Library

Stroke Methods

The methods of the Stroke class are listed below. For a complete list of Stroke class members, see the Stroke Members topic.

Public Instance Methods

addFeatures Get relavent properties of a shape and add it to the stroke
addPointOverloaded. Add an arg of type point.
addPointsOverloaded. Add args of type point.
arcLengthOverloaded. Computes the arc length of this stroke.
averagePoint Computes the average x distance, y distance, and pressure of this stroke.
averageSlope Computes the average slope by summing the slopes at every index and dividing by n
averageSpeed Computes the average speed by summing up the speed at each index and dividing by n
averageTangentAngle Computes the average tangent angle by summing the tangent angles at every index and dividing by n
curvature NOT SURE THIS WORKS
curvatureProfile Computes the curvature at each point and creates a double array of it all
directionOverloaded. Computes the angle from the start of the stroke, to the end of the stroke
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
getArgIds (inherited from Shape) Compute an array of all the argument ID's
getEndPoint Gets the last point of the stroke
getEndTime Gets the timestamp of the last point, which is the endTime of the stroke
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
getStartPoint Gets the first point of the stroke NOTE: Code is broke in the Stroke object doesn't have any points in it!!!
getStartTime Gets the timestamp of the first point, which is the startTime of the stroke
GetType (inherited from Object) Gets the Type of the current instance.
slopeOverloaded. Computes the slope of this stroke (rise over run)
slopeProfile Computes the slope at every point
speed Computes the speed at the given index
speedProfile Computes the speed at each point and creates a double array of it all
tangentAngle Computes the angle of the tangent line at index
tangentAngleProfile Computes the tangent angle at every point
ToString (inherited from Object) Returns a String that represents the current Object.
writeXML (inherited from Shape) Write this element out to a document

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Stroke Class | Converter Namespace