1 Star 0 Fork 1

张艳军/MissionPlanner

forked from uav360/MissionPlanner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ZZZLibShims.cs 16.14 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using Microsoft.Scripting.Hosting;
using MissionPlanner.Utilities;
using SkiaSharp;
namespace tlogThumbnailHandler
{
public class tlogThumbnailHandler
{
public static string queuefile = "queue.txt";
}
}
public delegate int GetInt();
namespace IronPython.Runtime
{
}
namespace SharpAdbClient
{[Flags]
public enum UnixFileMode
{
TypeMask = 0x8000,
Socket = 0xC000,
SymbolicLink = 0xA000,
Regular = 0x8000,
Block = 0x6000,
Directory = 0x4000,
Character = 0x2000,
FIFO = 0x1000
}
public class AdbClient
{
public static IAdbClient Instance { get; set; }
}
public class AdbServer
{
public static AdbServer Instance { get; set; }
public void StartServer(string adbExe, bool b)
{
}
}
public class DeviceData
{
}
public class ConsoleOutputReceiver
{
}
public class FileStatistics
{
public UnixFileMode FileMode { get; set; }
public DateTime Time { get; set; }
}
public class SyncService: IDisposable
{
public SyncService(DeviceData device)
{
throw new NotImplementedException();
}
public void Push(Stream stream, string dataFtpInternalApm, int p2, DateTime now, CancellationToken none)
{
}
public FileStatistics Stat(string dataFtpInternalApmStartArdupilotSh)
{
throw new NotImplementedException();
}
public void Pull(string etcInitDRcsModeDefault, MemoryStream stream, CancellationToken none)
{
throw new NotImplementedException();
}
public void Dispose()
{
}
}
public interface IAdbClient
{
string Connect(DnsEndPoint p0);
List<DeviceData> GetDevices();
void ExecuteRemoteCommand(string mountORemountRw, DeviceData device, ConsoleOutputReceiver consoleOut);
void KillAdb();
}
}
namespace IronPython.Hosting
{
public class Python
{
public static ScriptEngine CreateEngine(Dictionary<string, object> options = null)
{
throw new NotImplementedException();
}
}
}
public class OpenGLtest: UserControl
{
public static OpenGLtest instance;
public MissionPlanner.Utilities.Vector3 rpy;
public PointLatLngAlt LocationCenter { get; set; }
public List<Locationwp> WPs { get; set; }
}
public class OpenGLtest2: OpenGLtest
{
public static OpenGLtest2 instance;
}
namespace DotSpatial.Data{}
namespace DotSpatial.Projections{
public class ProjectionInfo
{
public void ParseEsriString(string readLine)
{
throw new NotImplementedException();
}
}
public class FeatureSet:IFeatureSet
{
public static IFeatureSet Open(string file)
{
throw new NotImplementedException();
}
public void CopyTableSchema(DataTable sourceTable)
{
throw new NotImplementedException();
}
public void FillAttributes()
{
throw new NotImplementedException();
}
public List<int> Find(string filterExpression)
{
throw new NotImplementedException();
}
public void InitializeVertices()
{
throw new NotImplementedException();
}
public void InvalidateVertices()
{
throw new NotImplementedException();
}
public bool RemoveShapeAt(int index)
{
throw new NotImplementedException();
}
public void RemoveShapesAt(IEnumerable<int> indices)
{
throw new NotImplementedException();
}
public void Save()
{
throw new NotImplementedException();
}
public void SaveAs(string fileName, bool overwrite)
{
throw new NotImplementedException();
}
public List<int> SelectIndexByAttribute(string filterExpression)
{
throw new NotImplementedException();
}
public void UpdateExtent()
{
throw new NotImplementedException();
}
public int NumRows()
{
throw new NotImplementedException();
}
public bool AttributesPopulated
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public DataTable DataTable
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public string Filename
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public bool IndexMode
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
double[] IFeatureSet.Vertex
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
double[] IFeatureSet.Z
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public double[] M
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public bool VerticesAreValid => throw new NotImplementedException();
public event EventHandler VerticesInvalidated;
public List<string> GetColumnNames(string xlsFilePath)
{
throw new NotImplementedException();
}
public IFeatureSet Join(string xlsFilePath, string localJoinField, string xlsJoinField)
{
throw new NotImplementedException();
}
public void AddFid()
{
throw new NotImplementedException();
}
public void CopyFeatures(IFeatureSet source, bool copyAttributes)
{
throw new NotImplementedException();
}
public IFeatureSet CopySubset(List<int> indices)
{
throw new NotImplementedException();
}
public IFeatureSet CopySubset(string filterExpression)
{
throw new NotImplementedException();
}
public void CopyTableSchema(IFeatureSet source)
{
throw new NotImplementedException();
}
public IEnumerable Features
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public object Vertex
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public double Z
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
List<Feature> IFeatureSet.Features { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
}
public interface IFeatureSet
{
bool AttributesPopulated
{
get;
set;
}
DataTable DataTable
{
get;
set;
}
string Filename
{
get;
set;
}
bool IndexMode
{
get;
set;
}
double[] Vertex
{
get;
set;
}
double[] Z
{
get;
set;
}
double[] M
{
get;
set;
}
bool VerticesAreValid
{
get;
}
List<Feature> Features { get; set; }
event EventHandler VerticesInvalidated;
List<string> GetColumnNames(string xlsFilePath);
IFeatureSet Join(string xlsFilePath, string localJoinField, string xlsJoinField);
void AddFid();
void CopyFeatures(IFeatureSet source, bool copyAttributes);
IFeatureSet CopySubset(List<int> indices);
IFeatureSet CopySubset(string filterExpression);
void CopyTableSchema(IFeatureSet source);
void CopyTableSchema(DataTable sourceTable);
void FillAttributes();
[Obsolete("Use SelectIndexByAttribute(filterExpression) instead.")]
List<int> Find(string filterExpression);
void InitializeVertices();
void InvalidateVertices();
bool RemoveShapeAt(int index);
void RemoveShapesAt(IEnumerable<int> indices);
void Save();
void SaveAs(string fileName, bool overwrite);
List<int> SelectIndexByAttribute(string filterExpression);
void UpdateExtent();
int NumRows();
}
public class Feature
{
public List<Coord> Coordinates { get; set; }
}
public class Coord
{
public double X { get; set; }
public double Y { get; set; }
public double Z { get; set; }
}
public class Reproject
{
public static void ReprojectPoints(double[] xyarray, double[] zarray, ProjectionInfo pStart, ProjectionInfo pEsriEnd, int i, int i1)
{
throw new NotImplementedException();
}
}
public class KnownCoordinateSystems
{
public class Geographic
{
public class World
{
public static ProjectionInfo WGS1984;
}
}
}
}
namespace DotSpatial.Symbology {}
namespace SkiaSharp.Views.Desktop
{
[DefaultEvent("PaintSurface")]
[DefaultProperty("Name")]
public class SKControl : Control
{
private readonly bool designMode;
private Bitmap bitmap;
[Bindable(false)]
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Never)]
public SKSize CanvasSize
{
get
{
if (bitmap != null)
{
return new SKSize(bitmap.Width, bitmap.Height);
}
return SKSize.Empty;
}
}
[Category("Appearance")]
public event EventHandler<SKPaintSurfaceEventArgs> PaintSurface;
public SKControl()
{
DoubleBuffered = true;
SetStyle(ControlStyles.ResizeRedraw, value: true);
designMode = (base.DesignMode || LicenseManager.UsageMode == LicenseUsageMode.Designtime);
}
protected override void OnPaint(PaintEventArgs e)
{
if (!designMode)
{
base.OnPaint(e);
SKImageInfo info = CreateBitmap();
if (info.Width != 0 && info.Height != 0)
{
BitmapData bitmapData = bitmap.LockBits(new Rectangle(0, 0, base.Width, base.Height), ImageLockMode.WriteOnly, bitmap.PixelFormat);
using (SKSurface sKSurface = SKSurface.Create(info, bitmapData.Scan0, bitmapData.Stride))
{
OnPaintSurface(new SKPaintSurfaceEventArgs(sKSurface, info));
sKSurface.Canvas.Flush();
}
bitmap.UnlockBits(bitmapData);
e.Graphics.DrawImage(bitmap, 0, 0);
}
}
}
protected virtual void OnPaintSurface(SKPaintSurfaceEventArgs e)
{
this.PaintSurface?.Invoke(this, e);
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
FreeBitmap();
}
private SKImageInfo CreateBitmap()
{
SKImageInfo result = new SKImageInfo(base.Width, base.Height, SKImageInfo.PlatformColorType, SKAlphaType.Premul);
if (bitmap == null || bitmap.Width != result.Width || bitmap.Height != result.Height)
{
FreeBitmap();
if (result.Width != 0 && result.Height != 0)
{
bitmap = new Bitmap(result.Width, result.Height, PixelFormat.Format32bppPArgb);
}
}
return result;
}
private void FreeBitmap()
{
if (bitmap != null)
{
bitmap.Dispose();
bitmap = null;
}
}
}
}
namespace MissionPlanner.Log
{
public partial class LogIndex : Form
{
}
}
namespace System.Windows.Forms
{
public class WebBrowser : Control
{
public bool CanGoBack { get; internal set; }
public object Url { get; set; }
public bool CanGoForward { get; set; }
public string DocumentText { get; set; }
public HtmlDocument Document { get; set; }
public event EventHandler<WebBrowserNavigatingEventArgs> Navigating;
public event EventHandler<WebBrowserNavigatedEventArgs> Navigated;
public void Navigate(Uri authorizeUri)
{
}
public void GoBack()
{
}
public void GoForward()
{
}
public void Navigate(string authorizeUri)
{
}
}
public class HtmlDocument
{
public void InvokeScript(string script)
{
}
}
public class WebBrowserNavigatedEventArgs : EventArgs
{
public Uri Url;
}
public class WebBrowserNavigatingEventArgs : EventArgs
{
public Uri Url;
public bool Cancel;
}
}
public class GdalConfiguration
{
public static void ConfigureGdal()
{
}
public static void ConfigureOgr()
{
}
}
public class GdiGraphics: Graphics
{
public GdiGraphics(SKSurface surface) : base(surface)
{
}
public GdiGraphics(IntPtr handle, int width, int height) : base(handle, width, height)
{
}
public GdiGraphics(Graphics fromImage): base(fromImage.Surface)
{
}
}
public class SkiaGraphics: Graphics
{
public SkiaGraphics(SKSurface surface) : base(surface)
{
}
public SkiaGraphics(IntPtr handle, int width, int height) : base(handle, width, height)
{
}
}
namespace System.Speech.Synthesis
{
public class PromptBuilder
{
private CultureInfo currentUICulture;
private string text;
public PromptBuilder(CultureInfo currentUICulture)
{
this.currentUICulture = currentUICulture;
}
public void AppendText(string text)
{
this.text = text;
}
public static implicit operator string(PromptBuilder d) => d.text;
}
public class SpeechSynthesizer
{
public SynthesizerState State { get; set; }
public void SpeakAsyncCancelAll()
{
}
public void Dispose()
{
}
public void SpeakAsync(string text)
{
}
}
public enum SynthesizerState
{
Ready,
Speaking
}
}
namespace System.Management
{
public class ObjectQuery
{
private string v;
public ObjectQuery(string v)
{
this.v = v;
}
}
public class ManagementObjectSearcher: IDisposable
{
private ObjectQuery query;
public ManagementObjectSearcher(ObjectQuery query)
{
this.query = query;
}
public IEnumerable<ManagementObject> Get()
{
return new List<ManagementObject>();
}
public void Dispose()
{
}
}
public class ManagementObject
{
public PropertyDataCollection Properties = new PropertyDataCollection();
public class PropertyDataCollection : ICollection
{
public IEnumerator<extratype> GetEnumerator()
{
yield return new extratype();
}
public extratype this[string pnpdeviceid]
{
get { return null; }
}
public void CopyTo(Array array, int index)
{
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
public int Count { get; }
public bool IsSynchronized { get; }
public object SyncRoot { get; }
}
public class extratype
{
public object Name { get; set; }
public object Value { get; set; }
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fremwork/MissionPlanner.git
git@gitee.com:fremwork/MissionPlanner.git
fremwork
MissionPlanner
MissionPlanner
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385