C# 클래스 Revit.SDK.Samples.NewHostedSweep.CS.TrackBall

This class is intent to convenience the geometry transformations. It can produce rotation and scale transformations.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
OnKeyDown ( KeyEventArgs e ) : void

Arrows key down will also yield the rotation transform.

OnMouseDown ( float width, float height, MouseEventArgs e ) : void

Mouse down, initialize the transformation to identity.

OnMouseMove ( MouseEventArgs e ) : void

Mouse move with left button press will yield the rotation transform, with right button press will yield scale transform.

비공개 메소드들

메소드 설명
ProjectToTrackball ( double width, double height, Point point ) : XYZ

Project canvas 2D point to the track ball.

Track ( Point currentPosition ) : void

Yield the rotation transform according to current 2D point in canvas.

Zoom ( Point currentPosition ) : void

Yield the scale transform according to current 2D point in canvas.

메소드 상세

OnKeyDown() 공개 메소드

Arrows key down will also yield the rotation transform.
public OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
리턴 void

OnMouseDown() 공개 메소드

Mouse down, initialize the transformation to identity.
public OnMouseDown ( float width, float height, MouseEventArgs e ) : void
width float Canvas width
height float Canvas height
e MouseEventArgs
리턴 void

OnMouseMove() 공개 메소드

Mouse move with left button press will yield the rotation transform, with right button press will yield scale transform.
public OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void