Class ShapeBase
public abstract class ShapeBase : IHitShape, IHandleShape, IShape, ICloneable
- Inheritance
-
ShapeBase
- Implements
- Inherited Members
- Extension Methods
Constructors
ShapeBase()
public ShapeBase()
Properties
Bound
[Browsable(false)]
public abstract Rect Bound { get; }
Property Value
Center
[Browsable(false)]
public Point Center { get; }
Property Value
Commands
public ObservableCollection<ICommand> Commands { get; }
Property Value
Dashes
public DoubleCollection Dashes { get; set; }
Property Value
Description
public string Description { get; set; }
Property Value
Fill
public Brush Fill { get; set; }
Property Value
Handles
[Browsable(false)]
public List<IHandle> Handles { get; }
Property Value
Locked
public bool Locked { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
Stroke
public Brush Stroke { get; set; }
Property Value
StrokeThickness
public double StrokeThickness { get; set; }
Property Value
Methods
CanDraw(LayerView)
public virtual bool CanDraw(LayerView layerView)
Parameters
layerView
LayerView
Returns
Clear()
public virtual void Clear()
Click(ILayer, Point, LayerView, MouseButtonEventArgs)
public virtual void Click(ILayer layer, Point point, LayerView layerView, MouseButtonEventArgs e)
Parameters
layer
ILayerpoint
PointlayerView
LayerViewe
MouseButtonEventArgs
Clone()
Creates a new object that is a copy of the current instance.
public virtual object Clone()
Returns
- object
A new object that is a copy of this instance.
CreateHandles()
public virtual IEnumerable<IHandle> CreateHandles()
Returns
Draw(IDrawing)
public virtual void Draw(IDrawing dc)
Parameters
dc
IDrawing
Draw(IDrawing, Pen, Brush)
public abstract void Draw(IDrawing dc, Pen pen, Brush fill)
Parameters
DrawHit(IDrawing)
public virtual void DrawHit(IDrawing dc)
Parameters
dc
IDrawing
DrawPoint(IDrawing, Point, double)
public void DrawPoint(IDrawing drawing, Point point, double raduis = 1)
Parameters
GetDashStyle(IDrawing, DoubleCollection)
protected DashStyle GetDashStyle(IDrawing drawing, DoubleCollection from)
Parameters
drawing
IDrawingfrom
DoubleCollection
Returns
GetDragToPen(IDrawing)
protected virtual Pen GetDragToPen(IDrawing dc)
Parameters
dc
IDrawing
Returns
GetHitPen(IDrawing)
public virtual Pen GetHitPen(IDrawing dc)
Parameters
dc
IDrawing
Returns
GetPen(IDrawing)
public Pen GetPen(IDrawing drawing)
Parameters
drawing
IDrawing
Returns
GetSelectedPen(IDrawing)
protected virtual Pen GetSelectedPen(IDrawing dc)
Parameters
dc
IDrawing
Returns
Hit(Point, LayerView)
public virtual Tuple<Action<IDrawing>, Point, object> Hit(Point point, LayerView layerView)
Parameters
Returns
InvalidateHandles()
public void InvalidateHandles()
IsVaild()
public virtual bool IsVaild()
Returns
Offset(Vector)
public abstract void Offset(Vector v)
Parameters
v
Vector
Reflect(Point, double)
public virtual void Reflect(Point point, double angle)
Parameters
Rotate(double)
public virtual void Rotate(double angle)
Parameters
angle
double