C# Class Fractrace.NavigateControl

A Control with some basic buttons to navigate in the virtual object space.
Inheritance: System.Windows.Forms.UserControl
Datei anzeigen Open project: trafassel/Gestaltlupe

Protected Properties

Property Type Description
mAngle double
mFactor double
mZoomFactor double

Public Methods

Method Description
DrawPreview ( ) : void
Init ( PreviewControl preview, PreviewControl preview2, ParameterInput parent ) : void

Initialisation.

MoveScene ( int x, int y ) : void
MoveSceneFromBottomView ( int x, int y ) : void

Slide scene. Input is from bootom view mouse move event.

NavigateControl ( ) : System

Contructer.

RotateScene ( int x, int y ) : void

Rotate scene. Center is scene center. Input is from bootom view mouse move event or fron view mouse move event.

RotateSceneBottomView ( int x, int y ) : void
UpdateCenterDiff ( ) : void

Set centerDiffX, centerDiffY and centerDiffZ.

UpdateFromChangeProperty ( ) : void

Is called, if some properties changed.

Zoom ( double factor ) : void
ZoomIn ( ) : void
ZoomOut ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Verwendete Ressourcen bereinigen.

RotateX ( double angle ) : void
RotateY ( double angle ) : void
RotateZ ( double angle ) : void

Private Methods

Method Description
DrawAndWriteInHistory ( ) : void

Zeichnet und aktualisiert die History.

InitializeComponent ( ) : void

Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.

SlideX ( double xdiff ) : void

Move Scene.CenterX.

SlideY ( double ydiff ) : void

Move Scene.CenterY.

SlideZ ( double zdiff ) : void

Move Scene.CenterZ.

SolveEqusyst ( Fractrace.Geometry.Vec3 pp0, Fractrace.Geometry.Vec3 pp1, Fractrace.Geometry.Vec3 pp2, Fractrace.Geometry.Vec3 pp3 ) : Fractrace.Geometry.Vec3

Solve the equation system a*pp1+b*pp2+c*pp3=pp0

UpdateMoveAngleButtonAppearance ( ) : void
UpdateMoveButtonAppearance ( ) : void
btnBackwards_Click ( object sender, EventArgs e ) : void

Move backwards.

btnDown_Click ( object sender, EventArgs e ) : void

Move down.

btnForward_Click ( object sender, EventArgs e ) : void

Move forward.

btnLeft_Click ( object sender, EventArgs e ) : void

Move left.

btnMoveAngleFast_Click ( object sender, EventArgs e ) : void
btnMoveAngleFine_Click ( object sender, EventArgs e ) : void
btnMoveAngleNormal_Click ( object sender, EventArgs e ) : void
btnMoveFast_Click ( object sender, EventArgs e ) : void
btnMoveFine_Click ( object sender, EventArgs e ) : void
btnMoveNormal_Click ( object sender, EventArgs e ) : void
btnMoveSlow_Click ( object sender, EventArgs e ) : void
btnRight_Click ( object sender, EventArgs e ) : void

Move right.

btnRotX_Click ( object sender, EventArgs e ) : void
btnRotY_Click ( object sender, EventArgs e ) : void
btnRotYneg_Click ( object sender, EventArgs e ) : void
btnRotZ_Click ( object sender, EventArgs e ) : void
btnRotZneg_Click ( object sender, EventArgs e ) : void
btnTop_Click ( object sender, EventArgs e ) : void

Move up.

btnZoomIn_Click ( object sender, EventArgs e ) : void

Zoom in.

btnZoomOut_Click ( object sender, EventArgs e ) : void

Zoom out.

button4_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Verwendete Ressourcen bereinigen.
protected Dispose ( bool disposing ) : void
disposing bool True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
return void

DrawPreview() public method

public DrawPreview ( ) : void
return void

Init() public method

Initialisation.
public Init ( PreviewControl preview, PreviewControl preview2, ParameterInput parent ) : void
preview PreviewControl
preview2 PreviewControl
parent ParameterInput
return void

MoveScene() public method

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

MoveSceneFromBottomView() public method

Slide scene. Input is from bootom view mouse move event.
public MoveSceneFromBottomView ( int x, int y ) : void
x int
y int
return void

NavigateControl() public method

Contructer.
public NavigateControl ( ) : System
return System

RotateScene() public method

Rotate scene. Center is scene center. Input is from bootom view mouse move event or fron view mouse move event.
public RotateScene ( int x, int y ) : void
x int
y int
return void

RotateSceneBottomView() public method

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

RotateX() protected method

protected RotateX ( double angle ) : void
angle double
return void

RotateY() protected method

protected RotateY ( double angle ) : void
angle double
return void

RotateZ() protected method

protected RotateZ ( double angle ) : void
angle double
return void

UpdateCenterDiff() public method

Set centerDiffX, centerDiffY and centerDiffZ.
public UpdateCenterDiff ( ) : void
return void

UpdateFromChangeProperty() public method

Is called, if some properties changed.
public UpdateFromChangeProperty ( ) : void
return void

Zoom() public method

public Zoom ( double factor ) : void
factor double
return void

ZoomIn() public method

public ZoomIn ( ) : void
return void

ZoomOut() public method

public ZoomOut ( ) : void
return void

Property Details

mAngle protected_oe property

protected double mAngle
return double

mFactor protected_oe property

Factor used in move.
protected double mFactor
return double

mZoomFactor protected_oe property

protected double mZoomFactor
return double