C# Class DevAudio.Microcone.Settings.SectorView

Interaction logic for SectorView.xaml
Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: microcone/microconesdk

Public Methods

Method Description
ColorForTrack ( int track ) : System.Windows.Media.Brush
ComputeCartesianCoordinate ( double angle, double radius ) : Point
SectorView ( ) : System
SetEnabled ( int sectorEnabled ) : void
SetLocation ( int sectorActive, float sectorLocation ) : void

Protected Methods

Method Description
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Private Methods

Method Description
DrawBall ( System.Windows.Controls.Canvas canvas, Point centre, int i, float theWidth ) : System.Windows.Shapes.Ellipse
DrawCord ( System.Windows.Controls.Canvas canvas, Point centre, float theWidth ) : void
DrawGeometry ( System.Windows.Media.StreamGeometryContext context, Point centre, float RotationAngle, float WedgeAngle, float Radius, float InnerRadius ) : void
DrawText ( System.Windows.Controls.Canvas canvas, Point centre, float arcRadius, int i, float rotationAngle ) : void
DrawWedge ( System.Windows.Controls.Canvas canvas, Point centre, float arcRadius, int i, float rotationAngle, float wedgeAngle, System.Windows.Media.Brush sectorBrush ) : System.Windows.Shapes.Path

Method Details

ColorForTrack() public method

public ColorForTrack ( int track ) : System.Windows.Media.Brush
track int
return System.Windows.Media.Brush

ComputeCartesianCoordinate() public static method

public static ComputeCartesianCoordinate ( double angle, double radius ) : Point
angle double
radius double
return Point

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

SectorView() public method

public SectorView ( ) : System
return System

SetEnabled() public method

public SetEnabled ( int sectorEnabled ) : void
sectorEnabled int
return void

SetLocation() public method

public SetLocation ( int sectorActive, float sectorLocation ) : void
sectorActive int
sectorLocation float
return void