Class LineShapeInfo<TCell>
Provides the implementation for AbstractShapeInfo to be used with LineGrid.
[Version(1, 8, 0)]
public class LineShapeInfo<TCell> : AbstractShapeInfo<LineShapeInfo<TCell>, LineGrid<TCell>, LinePoint, LinePoint, LineOp<TCell>>, IShapeInfo<LineShapeInfo<TCell>, LineGrid<TCell>, LinePoint, LinePoint, LineOp<TCell>>
Type Parameters
TCell
- Inheritance
-
LineShapeInfo<TCell>
- Implements
- Inherited Members
- Extension Methods
Constructors
LineShapeInfo(ShapeStorageInfo<LinePoint>)
public LineShapeInfo(ShapeStorageInfo<LinePoint> info)
Parameters
info
ShapeStorageInfo<LinePoint>
Methods
ArrayPointFromGridPoint(LinePoint)
protected override ArrayPoint ArrayPointFromGridPoint(LinePoint point)
Parameters
point
LinePoint
Returns
EndGroup(LineOp<TCell>)
Only call this method from within a RectOp method (usually, in client code, this will be in an extension).
[Version(1, 1, 0)]
public LineShapeInfo<TCell> EndGroup(LineOp<TCell> op)
Parameters
op
LineOp<TCell>the operator on which this shape is defined.
Returns
- LineShapeInfo<TCell>
GridPointFromArrayPoint(ArrayPoint)
protected override LinePoint GridPointFromArrayPoint(ArrayPoint point)
Parameters
point
ArrayPoint
Returns
MakeOp(ShapeStorageInfo<LinePoint>, Func<ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>>)
protected override LineOp<TCell> MakeOp(ShapeStorageInfo<LinePoint> shapeInfo, Func<ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>> combineInfo)
Parameters
shapeInfo
ShapeStorageInfo<LinePoint>combineInfo
Func<ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>, ShapeStorageInfo<LinePoint>>
Returns
- LineOp<TCell>
MakePoint(int, int)
protected override LinePoint MakePoint(int x, int y)
Parameters
Returns
MakeShape(int, int, Func<LinePoint, bool>, LinePoint)
protected override LineGrid<TCell> MakeShape(int x, int y, Func<LinePoint, bool> isInside, LinePoint offset)
Parameters
Returns
- LineGrid<TCell>
MakeShapeInfo(ShapeStorageInfo<LinePoint>)
protected override LineShapeInfo<TCell> MakeShapeInfo(ShapeStorageInfo<LinePoint> shapeStorageInfo)
Parameters
shapeStorageInfo
ShapeStorageInfo<LinePoint>
Returns
- LineShapeInfo<TCell>