You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/GVision/BatchCreateMap/FaultAmplitudeCreator.cs

49 lines
2.0 KiB
C#

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
/// <summary>
/// 创建断距标记图
/// </summary>
/// <param name="parameter">计算参数</param>
/// <returns>是否成功</returns>
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);
}
}