C# Class Gears.GearDrawing

Inheritance: System.Windows.Forms.UserControl
Exibir arquivo Open project: jwatte/gears Class Usage Examples

Public Methods

Method Description
GearDrawing ( ) : System
calcGears ( GearInfo info ) : Gears.GearCalc[]
recalc ( ) : void
setInfo ( GearInfo info ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
DrawGearOutline ( Graphics g, PointF center, float scale, float radius, float baseRadius, float addendum, float dedendum, int numTeeth, float toothPhase ) : void
GearDrawing_SizeChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

timer1_Tick ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GearDrawing() public method

public GearDrawing ( ) : System
return System

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

calcGears() public static method

public static calcGears ( GearInfo info ) : Gears.GearCalc[]
info GearInfo
return Gears.GearCalc[]

recalc() public method

public recalc ( ) : void
return void

setInfo() public method

public setInfo ( GearInfo info ) : void
info GearInfo
return void