C# Class MissionPlanner.Controls.HUD

Inheritance: OpenTK.GLControl
Exibir arquivo Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
CustomItems System.Collections.Hashtable
HoldInvalidation bool
SixteenXNine bool
huddrawtime int
objBitmap Bitmap
streamjpgenable bool

Private Properties

Property Type Description
Clear void
GetImageCodec System.Drawing.Imaging.ImageCodecInfo
doPaint void
drawstring void
drawstring void
wrap360 float

Public Methods

Method Description
DrawArc ( Pen penn, RectangleF rect, float start, float degrees ) : void
DrawEllipse ( Pen penn, Rectangle rect ) : void
DrawImage ( Image img, int x, int y, int width, int height ) : void
DrawLine ( Pen penn, double x1, double y1, double x2, double y2 ) : void
DrawPath ( Pen penn, GraphicsPath gp ) : void
DrawPolygon ( Pen penn, Point list ) : void
DrawPolygon ( Pen penn, PointF list ) : void
DrawRectangle ( Pen penn, RectangleF rect ) : void
DrawRectangle ( Pen penn, double x1, double y1, double width, double height ) : void
FillPath ( Brush brushh, GraphicsPath gp ) : void
FillPolygon ( Brush brushh, Point list ) : void
FillPolygon ( Brush brushh, PointF list ) : void
FillRectangle ( Brush brushh, RectangleF rectf ) : void
GrabScreenshot ( ) : Bitmap
HUD ( ) : System
Invalidate ( ) : void

Override to prevent offscreen drawing the control - mono mac

Refresh ( ) : void
ResetClip ( ) : void
ResetTransform ( ) : void
ResizeImage ( Image image, int width, int height ) : Bitmap
RotateTransform ( float angle ) : void
SetClip ( Rectangle rect ) : void
ThisReallyVisible ( ) : bool

this is to fix a mono off screen drawing issue

TranslateTransform ( float x, float y ) : void
doResize ( ) : void

Protected Methods

Method Description
OnHandleCreated ( EventArgs e ) : void
OnHandleDestroyed ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Method Description
Clear ( Color color ) : void
GetImageCodec ( string mimetype ) : System.Drawing.Imaging.ImageCodecInfo
doPaint ( PaintEventArgs e ) : void
drawstring ( Graphics e, string text, Font font, float fontsize, SolidBrush brush, float x, float y ) : void
drawstring ( HUD e, string text, Font font, float fontsize, SolidBrush brush, float x, float y ) : void
wrap360 ( float noin ) : float

Method Details

DrawArc() public method

public DrawArc ( Pen penn, RectangleF rect, float start, float degrees ) : void
penn System.Drawing.Pen
rect System.Drawing.RectangleF
start float
degrees float
return void

DrawEllipse() public method

public DrawEllipse ( Pen penn, Rectangle rect ) : void
penn System.Drawing.Pen
rect System.Drawing.Rectangle
return void

DrawImage() public method

public DrawImage ( Image img, int x, int y, int width, int height ) : void
img Image
x int
y int
width int
height int
return void

DrawLine() public method

public DrawLine ( Pen penn, double x1, double y1, double x2, double y2 ) : void
penn System.Drawing.Pen
x1 double
y1 double
x2 double
y2 double
return void

DrawPath() public method

public DrawPath ( Pen penn, GraphicsPath gp ) : void
penn System.Drawing.Pen
gp System.Drawing.Drawing2D.GraphicsPath
return void

DrawPolygon() public method

public DrawPolygon ( Pen penn, Point list ) : void
penn System.Drawing.Pen
list Point
return void

DrawPolygon() public method

public DrawPolygon ( Pen penn, PointF list ) : void
penn System.Drawing.Pen
list System.Drawing.PointF
return void

DrawRectangle() public method

public DrawRectangle ( Pen penn, RectangleF rect ) : void
penn System.Drawing.Pen
rect System.Drawing.RectangleF
return void

DrawRectangle() public method

public DrawRectangle ( Pen penn, double x1, double y1, double width, double height ) : void
penn System.Drawing.Pen
x1 double
y1 double
width double
height double
return void

FillPath() public method

public FillPath ( Brush brushh, GraphicsPath gp ) : void
brushh System.Drawing.Brush
gp System.Drawing.Drawing2D.GraphicsPath
return void

FillPolygon() public method

public FillPolygon ( Brush brushh, Point list ) : void
brushh System.Drawing.Brush
list Point
return void

FillPolygon() public method

public FillPolygon ( Brush brushh, PointF list ) : void
brushh System.Drawing.Brush
list System.Drawing.PointF
return void

FillRectangle() public method

public FillRectangle ( Brush brushh, RectangleF rectf ) : void
brushh System.Drawing.Brush
rectf System.Drawing.RectangleF
return void

GrabScreenshot() public method

public GrabScreenshot ( ) : Bitmap
return System.Drawing.Bitmap

HUD() public method

public HUD ( ) : System
return System

Invalidate() public method

Override to prevent offscreen drawing the control - mono mac
public Invalidate ( ) : void
return void

OnHandleCreated() protected method

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
return void

OnHandleDestroyed() protected method

protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Refresh() public method

public Refresh ( ) : void
return void

ResetClip() public method

public ResetClip ( ) : void
return void

ResetTransform() public method

public ResetTransform ( ) : void
return void

ResizeImage() public static method

public static ResizeImage ( Image image, int width, int height ) : Bitmap
image Image
width int
height int
return System.Drawing.Bitmap

RotateTransform() public method

public RotateTransform ( float angle ) : void
angle float
return void

SetClip() public method

public SetClip ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

ThisReallyVisible() public method

this is to fix a mono off screen drawing issue
public ThisReallyVisible ( ) : bool
return bool

TranslateTransform() public method

public TranslateTransform ( float x, float y ) : void
x float
y float
return void

doResize() public method

public doResize ( ) : void
return void

Property Details

CustomItems public_oe property

public Hashtable,System.Collections CustomItems
return System.Collections.Hashtable

HoldInvalidation public_oe property

public bool HoldInvalidation
return bool

SixteenXNine public_oe property

public bool SixteenXNine
return bool

huddrawtime public_oe property

public int huddrawtime
return int

objBitmap public_oe property

public Bitmap objBitmap
return Bitmap

streamjpgenable public_oe property

this is to reduce cpu usage
public bool streamjpgenable
return bool