C# Class Fractrace.NavigateControl

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

Protected Properties

Свойство Type Description
mAngle double
mFactor double
mZoomFactor double

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Verwendete Ressourcen bereinigen.

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

Private Methods

Méthode 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 méthode

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

DrawPreview() public méthode

public DrawPreview ( ) : void
Résultat void

Init() public méthode

Initialisation.
public Init ( PreviewControl preview, PreviewControl preview2, ParameterInput parent ) : void
preview PreviewControl
preview2 PreviewControl
parent ParameterInput
Résultat void

MoveScene() public méthode

public MoveScene ( int x, int y ) : void
x int
y int
Résultat void

MoveSceneFromBottomView() public méthode

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

NavigateControl() public méthode

Contructer.
public NavigateControl ( ) : System
Résultat System

RotateScene() public méthode

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
Résultat void

RotateSceneBottomView() public méthode

public RotateSceneBottomView ( int x, int y ) : void
x int
y int
Résultat void

RotateX() protected méthode

protected RotateX ( double angle ) : void
angle double
Résultat void

RotateY() protected méthode

protected RotateY ( double angle ) : void
angle double
Résultat void

RotateZ() protected méthode

protected RotateZ ( double angle ) : void
angle double
Résultat void

UpdateCenterDiff() public méthode

Set centerDiffX, centerDiffY and centerDiffZ.
public UpdateCenterDiff ( ) : void
Résultat void

UpdateFromChangeProperty() public méthode

Is called, if some properties changed.
public UpdateFromChangeProperty ( ) : void
Résultat void

Zoom() public méthode

public Zoom ( double factor ) : void
factor double
Résultat void

ZoomIn() public méthode

public ZoomIn ( ) : void
Résultat void

ZoomOut() public méthode

public ZoomOut ( ) : void
Résultat void

Property Details

mAngle protected_oe property

protected double mAngle
Résultat double

mFactor protected_oe property

Factor used in move.
protected double mFactor
Résultat double

mZoomFactor protected_oe property

protected double mZoomFactor
Résultat double