ShapeRasterizer Description abstract class Tinman.Terrain.Shapes.ShapeRasterizer → <T ref : ISampleBufferBase> Derived from IShapeRasterizer<T> Abstract base class for implementations of the IShapeRasterizer interface. Protected / Constructors ShapeRasterizer protected constructor ShapeRasterizer → (3) factory in : IShapeRasterizerFactory<T> [not-null] The owning factory. shape in : IShape [not-null] The shape instance. uniform in : bool true if this shape rasterizer works uniformly, based on distance only; false if the rasterizer uses additional information, such as nearest vertices. Creates a new instance of ShapeRasterizer. Protected / Methods Clear protected abstract method Clear → (6) target in : T The target buffer. x in : int32 X-coordinate of top-left sample to clear. y in : int32 Y-coordinate of top-left sample to clear. width in : int32 Width of sample block. height in : int32 Height of sample block. distance in : float64 Uniform distance value. Clears the given block to an uniform sample value. Fill 2 overloads protected abstract method Fill1 → (11) target in : T The target buffer. x in : int32 Buffer X-coordinate of top-left sample to fill. y in : int32 Buffer Y-coordinate of top-left sample to fill. width in : int32 Width of sample block. height in : int32 Height of sample block. shapeX in : float64 Shape X-coordinate that corresponds to top-left buffer sample. shapeY in : float64 Shape Y-coordinate that corresponds to top-left buffer sample. shapeDeltaX in : float64 Step distance from one sample to adjacent one, along shape X-axis. shapeDeltaY in : float64 Step distance from one sample to adjacent one, along shape Y-axis. scale in : float64 Scale factor to apply to computed shape distance values. antiAlias in : bool Perform anti-aliasing, if supported? Fills the given block according to shape distance values. protected abstract method Fill2 → (8) target in : T The target buffer. x in : int32 Buffer X-coordinate of top-left sample to fill. y in : int32 Buffer Y-coordinate of top-left sample to fill. width in : int32 Width of sample block. height in : int32 Height of sample block. shape in : Mat3D The homogeneous 2D matrix to use for computing shape coordinates from buffer coordinates, where (0,0) corresponds to x in and y in. scale in : float64 Scale factor to apply to computed shape distance values. area in : bool true if each sample represents an area, false if each sample represents a point. Fills the given block according to shape distance values. Protected / Attributes shape protected readonly attribute shape → (IShape) The shape that is being rasterized. ShapePolygonSimpleBase ShapeRasterizerFactory