An NDoc Documented Class Library

Stroke Members

Stroke overview

Public Instance Constructors

Stroke Overloaded. Initializes a new instance of the Stroke class.

Public Instance Properties

Aliases (inherited from Shape) Get Aliases
Area (inherited from Shape) Get or set Area
Args (inherited from Shape) Get Args
Author (inherited from Shape) Get or set Author
Color (inherited from Shape) Get or set Color
Control1 (inherited from Shape) Get or set Control1
Control2 (inherited from Shape) Get or set Control2
End (inherited from Shape) Get or set End
Height (inherited from Shape) Get or set Height
Id (inherited from Shape) Get or set Id
LaysInk (inherited from Shape) Get or set LaysInk
LeftX (inherited from Shape) Get or set LeftX
Name (inherited from Shape) Get or set Name
Orientation (inherited from Shape) Get or set Orientation
P1 (inherited from Shape) Get or set P1
P2 (inherited from Shape) Get or set P2
PenTip (inherited from Shape) Get or set PenTip
Points Get an array of Points
Raster (inherited from Shape) Get or set Raster
Source (inherited from Shape) Get or set Source
Start (inherited from Shape) Get or set Start
SubstrokeOf (inherited from Shape) Get or set SubstrokeOf
Text (inherited from Shape) Get or set Text
Time (inherited from Shape) Get or set Time
TopY (inherited from Shape) Get or set TopY
Type (inherited from Shape) Get or set Type
Width (inherited from Shape) Get or set Width
X (inherited from Shape) Get or set X
Y (inherited from Shape) Get or set Y

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 Fields

aliases (inherited from Shape) An array of aliases
area (inherited from Shape) Properties of a shape
args (inherited from Shape) An array of arguments
author (inherited from Shape) Properties of a shape
color (inherited from Shape) Properties of a shape
control1 (inherited from Shape) Properties of a shape
control2 (inherited from Shape) Properties of a shape
end (inherited from Shape) Properties of a shape
height (inherited from Shape) Properties of a shape
id (inherited from Shape) Properties of a shape
laysInk (inherited from Shape) Properties of a shape
leftx (inherited from Shape) Properties of a shape
name (inherited from Shape) Properties of a shape
orientation (inherited from Shape) Properties of a shape
p1 (inherited from Shape) Properties of a shape
p2 (inherited from Shape) Properties of a shape
penTip (inherited from Shape) Properties of a shape
raster (inherited from Shape) Properties of a shape
source (inherited from Shape) Properties of a shape
start (inherited from Shape) Properties of a shape
substrokeOf (inherited from Shape) Properties of a shape
text (inherited from Shape) Properties of a shape
time (inherited from Shape) Properties of a shape
topy (inherited from Shape) Properties of a shape
type (inherited from Shape) Properties of a shape
width (inherited from Shape) Properties of a shape
x (inherited from Shape) Properties of a shape
y (inherited from Shape) Properties of a shape

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.

Private Instance Fields

points 

See Also

Stroke Class | Converter Namespace