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
Показать файл Открыть проект Примеры использования класса

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