C# Class DevAudio.Microcone.Settings.SectorView

Interaction logic for SectorView.xaml
Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: microcone/microconesdk

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Private Methods

Méthode 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 méthode

public ColorForTrack ( int track ) : System.Windows.Media.Brush
track int
Résultat System.Windows.Media.Brush

ComputeCartesianCoordinate() public static méthode

public static ComputeCartesianCoordinate ( double angle, double radius ) : Point
angle double
radius double
Résultat Point

OnRenderSizeChanged() protected méthode

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
Résultat void

SectorView() public méthode

public SectorView ( ) : System
Résultat System

SetEnabled() public méthode

public SetEnabled ( int sectorEnabled ) : void
sectorEnabled int
Résultat void

SetLocation() public méthode

public SetLocation ( int sectorActive, float sectorLocation ) : void
sectorActive int
sectorLocation float
Résultat void