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