C# Class Hpgl.Transformations.Transformer

transforms PU,PD,PA points by transformation matrix PR transformation is done without translation, but it can be strange - due to rotation around some absolute point it is better, if Absolutizer is used before this
Inheritance: Hpgl.Language.HpglVisitor
Mostra file Open project: spustlik/plotr Class Usage Examples

Public Methods

Method Description
Move ( int x, int y ) : void
Rotate ( int rotate ) : void
Scale ( double z1, double z2 ) : void
Transform ( List items ) : List
Transformer ( ) : System
Transformer ( string transformation ) : System

Protected Methods

Method Description
Unprocessed ( HpglItem item ) : void
VisitPenAbsolute ( PenAbsolute item ) : void
VisitPenDown ( PenDown item ) : void
VisitPenRelative ( PenRelative item ) : void
VisitPenUp ( PenUp item ) : void

Private Methods

Method Description
Scale ( double p ) : void
TransformPoint ( HPoint p ) : HPoint
TransformPointRelative ( HPoint p ) : HPoint
TrasformPoints ( HpglPointsCommand item ) : void

Method Details

Move() public method

public Move ( int x, int y ) : void
x int
y int
return void

Rotate() public method

public Rotate ( int rotate ) : void
rotate int
return void

Scale() public method

public Scale ( double z1, double z2 ) : void
z1 double
z2 double
return void

Transform() public method

public Transform ( List items ) : List
items List
return List

Transformer() public method

public Transformer ( ) : System
return System

Transformer() public method

public Transformer ( string transformation ) : System
transformation string
return System

Unprocessed() protected method

protected Unprocessed ( HpglItem item ) : void
item Hpgl.Language.HpglItem
return void

VisitPenAbsolute() protected method

protected VisitPenAbsolute ( PenAbsolute item ) : void
item Hpgl.Language.PenAbsolute
return void

VisitPenDown() protected method

protected VisitPenDown ( PenDown item ) : void
item Hpgl.Language.PenDown
return void

VisitPenRelative() protected method

protected VisitPenRelative ( PenRelative item ) : void
item Hpgl.Language.PenRelative
return void

VisitPenUp() protected method

protected VisitPenUp ( PenUp item ) : void
item Hpgl.Language.PenUp
return void