C# Class PixelFarm.Agg.VertexSource.PathWriter

forward path writer
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
ClearAndStartNewVxs ( VertexStore newVxsOutput ) : void
CloseFigure ( ) : void
CloseFigureCCW ( ) : void
ConcatPath ( VertexStoreSnap s ) : void
Curve3 ( double p2x, double p2y, double x, double y ) : void

Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point.

Curve3Rel ( double p2x, double p2y, double x, double y ) : void

Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point.

Curve4 ( double p2x, double p2y, double p3x, double p3y, double x, double y ) : void
Curve4Rel ( double p2x, double p2y, double p3x, double p3y, double x, double y ) : void
HorizontalLineTo ( double x ) : void
HorizontalLineToRel ( double x ) : void
JoinPath ( VertexStoreSnap s ) : void
LineTo ( double x, double y ) : void
LineToRel ( double x, double y ) : void
MakeVertexSnap ( ) : VertexStoreSnap
MoveTo ( double x, double y ) : void
MoveToRel ( double x, double y ) : void
PathWriter ( ) : PixelFarm.VectorMath
PathWriter ( VertexStore externalVxs ) : PixelFarm.VectorMath
SmoothCurve3 ( double x, double y ) : void

Draws a quadratic Bezier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

(If there is no previous command or if the previous command was not a curve, assume the control point is coincident with the current point.)

SmoothCurve3Rel ( double x, double y ) : void

Draws a quadratic Bezier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

(If there is no previous command or if the previous command was not a curve, assume the control point is coincident with the current point.)

SmoothCurve4 ( double p3x, double p3y, double x, double y ) : void
SmoothCurve4Rel ( double p3x, double p3y, double x, double y ) : void
StartFigure ( ) : int
Stop ( ) : void
UnsafeDirectGetData ( PathWriter pathStore, int &m_allocated_vertices, int &m_num_vertices, double &m_coord_xy, byte &m_CommandAndFlags ) : void
UnsafeDirectSetData ( PathWriter pathStore, int m_allocated_vertices, int m_num_vertices, double m_coord_xy, byte m_CommandAndFlags ) : void
VerticalLineTo ( double y ) : void
VerticalLineToRel ( double y ) : void

Private Methods

Method Description
CreateMirrorPoint ( Vector2 mirrorPoint, Vector2 fixedPoint ) : Vector2
GetLastVertex ( double &x, double &y ) : VertexCmd

Method Details

Clear() public method

public Clear ( ) : void
return void

ClearAndStartNewVxs() public method

public ClearAndStartNewVxs ( VertexStore newVxsOutput ) : void
newVxsOutput VertexStore
return void

CloseFigure() public method

public CloseFigure ( ) : void
return void

CloseFigureCCW() public method

public CloseFigureCCW ( ) : void
return void

ConcatPath() public method

public ConcatPath ( VertexStoreSnap s ) : void
s VertexStoreSnap
return void

Curve3() public method

Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point.
public Curve3 ( double p2x, double p2y, double x, double y ) : void
p2x double
p2y double
x double
y double
return void

Curve3Rel() public method

Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point.
public Curve3Rel ( double p2x, double p2y, double x, double y ) : void
p2x double
p2y double
x double
y double
return void

Curve4() public method

public Curve4 ( double p2x, double p2y, double p3x, double p3y, double x, double y ) : void
p2x double
p2y double
p3x double
p3y double
x double
y double
return void

Curve4Rel() public method

public Curve4Rel ( double p2x, double p2y, double p3x, double p3y, double x, double y ) : void
p2x double
p2y double
p3x double
p3y double
x double
y double
return void

HorizontalLineTo() public method

public HorizontalLineTo ( double x ) : void
x double
return void

HorizontalLineToRel() public method

public HorizontalLineToRel ( double x ) : void
x double
return void

JoinPath() public method

public JoinPath ( VertexStoreSnap s ) : void
s VertexStoreSnap
return void

LineTo() public method

public LineTo ( double x, double y ) : void
x double
y double
return void

LineToRel() public method

public LineToRel ( double x, double y ) : void
x double
y double
return void

MakeVertexSnap() public method

public MakeVertexSnap ( ) : VertexStoreSnap
return VertexStoreSnap

MoveTo() public method

public MoveTo ( double x, double y ) : void
x double
y double
return void

MoveToRel() public method

public MoveToRel ( double x, double y ) : void
x double
y double
return void

PathWriter() public method

public PathWriter ( ) : PixelFarm.VectorMath
return PixelFarm.VectorMath

PathWriter() public method

public PathWriter ( VertexStore externalVxs ) : PixelFarm.VectorMath
externalVxs VertexStore
return PixelFarm.VectorMath

SmoothCurve3() public method

Draws a quadratic Bezier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

(If there is no previous command or if the previous command was not a curve, assume the control point is coincident with the current point.)

public SmoothCurve3 ( double x, double y ) : void
x double
y double
return void

SmoothCurve3Rel() public method

Draws a quadratic Bezier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous command relative to the current point.

(If there is no previous command or if the previous command was not a curve, assume the control point is coincident with the current point.)

public SmoothCurve3Rel ( double x, double y ) : void
x double
y double
return void

SmoothCurve4() public method

public SmoothCurve4 ( double p3x, double p3y, double x, double y ) : void
p3x double
p3y double
x double
y double
return void

SmoothCurve4Rel() public method

public SmoothCurve4Rel ( double p3x, double p3y, double x, double y ) : void
p3x double
p3y double
x double
y double
return void

StartFigure() public method

public StartFigure ( ) : int
return int

Stop() public method

public Stop ( ) : void
return void

UnsafeDirectGetData() public static method

public static UnsafeDirectGetData ( PathWriter pathStore, int &m_allocated_vertices, int &m_num_vertices, double &m_coord_xy, byte &m_CommandAndFlags ) : void
pathStore PathWriter
m_allocated_vertices int
m_num_vertices int
m_coord_xy double
m_CommandAndFlags byte
return void

UnsafeDirectSetData() public static method

public static UnsafeDirectSetData ( PathWriter pathStore, int m_allocated_vertices, int m_num_vertices, double m_coord_xy, byte m_CommandAndFlags ) : void
pathStore PathWriter
m_allocated_vertices int
m_num_vertices int
m_coord_xy double
m_CommandAndFlags byte
return void

VerticalLineTo() public method

public VerticalLineTo ( double y ) : void
y double
return void

VerticalLineToRel() public method

public VerticalLineToRel ( double y ) : void
y double
return void