C# 클래스 AForge.Controls.ManipulatorControl

Manipulator control.

The manipulator control can be used to mimic behaviour of analogue joystick using regular mouse. By dragging manipulator away from control's centre, it fires PositionChanged event notifying about its X/Y coordinates (or about R/Theta coordinates in Polar coordinates system).

For example, in robotics applications the control can be used to drive robots. If user drags manipulator further from centre (increasing distance between centre and manipulator), then higher power (speed) should be set for robot's motors. But dragging it in different directions away from centre should result in changing robot's direction: straight forward, backward, turning right or left, etc.

Another possible application of the control is to control position of some device, etc. For example, the control could be used with pan-tilt camera - by dragging control away from centre, the camera may rotate in one of the directions.

상속: System.Windows.Forms.Control
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ManipulatorControl_MouseDown void
ManipulatorControl_MouseMove void
ManipulatorControl_MouseUp void
ManipulatorControl_Paint void
NotifyClients void
timer_Tick void

공개 메소드들

메소드 설명
ManipulatorControl ( ) : System

Initializes a new instance of the ManipulatorControl class.

비공개 메소드들

메소드 설명
ManipulatorControl_MouseDown ( object sender, MouseEventArgs e ) : void
ManipulatorControl_MouseMove ( object sender, MouseEventArgs e ) : void
ManipulatorControl_MouseUp ( object sender, MouseEventArgs e ) : void
ManipulatorControl_Paint ( object sender, PaintEventArgs e ) : void
NotifyClients ( ) : void
timer_Tick ( object sender, EventArgs e ) : void

메소드 상세

ManipulatorControl() 공개 메소드

Initializes a new instance of the ManipulatorControl class.
public ManipulatorControl ( ) : System
리턴 System