添加项目文件。
This commit is contained in:
43
MetroGauges/Controls/BlockShaps/BaseShap.cs
Normal file
43
MetroGauges/Controls/BlockShaps/BaseShap.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MetroGauges.Controls
|
||||
{
|
||||
public abstract class BaseShap
|
||||
{
|
||||
|
||||
|
||||
protected FrameworkElement shapeitem;
|
||||
|
||||
|
||||
|
||||
public double m_ScaleRale { get; set; }
|
||||
public BaseShap(FrameworkElement shap)
|
||||
{
|
||||
shapeitem = shap;
|
||||
}
|
||||
|
||||
public abstract List<Point> GetPoints();
|
||||
|
||||
public abstract void DrawDxfBlocks(netDxf.DxfDocument dxf, netDxf.Tables.Layer layer);
|
||||
|
||||
public abstract void CopyBlock();
|
||||
|
||||
public abstract void MoveBlock(System.Windows.Point currentPoint, System.Windows.Point dragPoint);
|
||||
|
||||
public abstract void MoveByX(double x);
|
||||
|
||||
public abstract void MoveByY(double y);
|
||||
|
||||
public abstract void ScaleBlock(double rate);
|
||||
|
||||
public abstract FrameworkElement DirectionShap(Point dirPoint);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user