C# Class ROS_ImageWPF.MapControl

A WPF Control used for displaying of maps (occupancy grids) When added to a XAML file, the width of the map control needs to be set to the desired width, height will be set automatically to keep map aspect ratio
Inheritance: System.Windows.Controls.UserControl
Mostrar archivo Open project: uml-robotics/ROS.NET

Public Properties

Property Type Description
TopicProperty System.Windows.DependencyProperty

Public Methods

Method Description
MapControl ( ) : System

Private Methods

Method Description
DrawMap ( ) : void
MatchAspectRatio ( ) : void

Changes the Height of the control, so that it matches the aspect ratio of the map

SubscribeToMap ( string topic ) : void
createRGBA ( sbyte map ) : byte[]
waitThenSubscribe ( ) : void

Method Details

MapControl() public method

public MapControl ( ) : System
return System

Property Details

TopicProperty public_oe static_oe property

public static DependencyProperty,System.Windows TopicProperty
return System.Windows.DependencyProperty