using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Construction.BatchCreateMap { public class FaultAmplitudeCreator { #if DEBUG const string DLL_FILE_Fault = "FaultAmplitudeLib.dll"; #else const string DLL_FILE_Fault = "FaultAmplitudeLib.dll"; #endif /// /// 创建断距标记图 /// /// 计算参数 /// 是否成功 public static bool Create(FaultAmplitudeParameter parameter) { //MessageBox.Show(parameter.DestFile); bool bSuccess = CreateFaultAmplitude( parameter.SourceFile, parameter.DestFile, parameter.StatisticFile , parameter.FaultLayer , parameter.IsCalculateByStep, parameter.CalculateStep , parameter.DivideValue, parameter.PillarWidth, parameter.PillarScale, parameter.TextHeight , parameter.HeighColor, parameter.LowColor , parameter.LocalFltDirect , parameter.WithIncline, parameter.InclineScale, parameter.InclineColor , parameter.SurveyLayer, parameter.FaultNames); return bSuccess; } [DllImport(DLL_FILE_Fault, EntryPoint = "CreateFaultAmplitude", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)] private extern static bool CreateFaultAmplitude(string inputFile, string resultFile, string statisticFile, string faultLayer, bool calByStep, double calStep , double divideValue, double pillarWidth, double pillarScale, double textHeight , int heighColor, int lowColor , bool bLocalFltDirect , bool bWithIncline, double inclineScale, int inclineColor // 断层倾角 , string surveyLayer, string faultNames); } }