C# Class Hpgl.Transformations.Optimizer

converts instructions to lines
Inheritance: HpglAllVisitor
Mostra file Open project: spustlik/plotr

Protected Properties

Property Type Description
segments List

Public Methods

Method Description
Process ( List items ) : List

Protected Methods

Method Description
GetPenUpLength ( List lines ) : double
Optimize ( ) : void
VisitInitialization ( Initialization item ) : void
VisitLabel ( Label item ) : void
VisitPenAbsolute ( PenAbsolute item ) : void
VisitPenDown ( PenDown item ) : void
VisitPenRelative ( PenRelative item ) : void
VisitPenUp ( PenUp item ) : void
VisitSelectPen ( SelectPen item ) : void
VisitTerminator ( Terminator item ) : void
VisitUnknown ( UnknownCommand item ) : void

Private Methods

Method Description
SegmentsToHpgl ( ) : List

Method Details

GetPenUpLength() protected method

protected GetPenUpLength ( List lines ) : double
lines List
return double

Optimize() protected abstract method

protected abstract Optimize ( ) : void
return void

Process() public method

public Process ( List items ) : List
items List
return List

VisitInitialization() protected method

protected VisitInitialization ( Initialization item ) : void
item Hpgl.Language.Initialization
return void

VisitLabel() protected method

protected VisitLabel ( Label item ) : void
item Hpgl.Language.Label
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

VisitSelectPen() protected method

protected VisitSelectPen ( SelectPen item ) : void
item Hpgl.Language.SelectPen
return void

VisitTerminator() protected method

protected VisitTerminator ( Terminator item ) : void
item Hpgl.Language.Terminator
return void

VisitUnknown() protected method

protected VisitUnknown ( UnknownCommand item ) : void
item Hpgl.Language.UnknownCommand
return void

Property Details

segments protected_oe property

protected List segments
return List