|
|
@ -1,6 +1,4 @@ |
|
|
|
using System.Drawing; |
|
|
|
|
|
|
|
namespace Cis.Application.Core.Component.MarkSeacher; |
|
|
|
namespace Cis.Application.Core.Component.MarkSeacher; |
|
|
|
|
|
|
|
public class HiKMarkSearcher : MarkSearcherBase |
|
|
|
{ |
|
|
@ -29,39 +27,17 @@ public class HiKMarkSearcher : MarkSearcherBase |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
protected override PointF GetFOfMatrixByZoomPos(double zoomPos) |
|
|
|
{ |
|
|
|
PointF pointF = new() |
|
|
|
protected override double GetZoomTag(double zoomPos) |
|
|
|
{ |
|
|
|
X = (float)GetFx(zoomPos), |
|
|
|
Y = (float)GetFy(zoomPos) |
|
|
|
}; |
|
|
|
return pointF; |
|
|
|
double ret = HexToDecMa(zoomPos) * 0.1; |
|
|
|
ret = (ret - 1) * 0.65 + 1; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
#endregion Implement
|
|
|
|
|
|
|
|
#region Util
|
|
|
|
|
|
|
|
protected virtual double GetFx(double zoomPos) |
|
|
|
{ |
|
|
|
CameraCalcParams calcParams = CameraCalcParams; |
|
|
|
return calcParams.FocusX * GetZoomTag(zoomPos); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual double GetFy(double zoomPos) |
|
|
|
{ |
|
|
|
CameraCalcParams calcParams = CameraCalcParams; |
|
|
|
return calcParams.FocusY * GetZoomTag(zoomPos); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual double GetZoomTag(double zoomPos) |
|
|
|
{ |
|
|
|
double ret = HexToDecMa(zoomPos) * 0.1; |
|
|
|
ret = (ret - 1) * 0.65 + 1; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
protected int HexToDecMa(double wHex) |
|
|
|
{ |
|
|
|
int wHexInt = wHex.ToInt(); |
|
|
|