44 lines
991 B
C#
44 lines
991 B
C#
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);
|
|
|
|
|
|
}
|
|
}
|