Struct agg::cell::RasterizerCell

source ·
pub struct RasterizerCell {
    pub min_x: i64,
    pub max_x: i64,
    pub min_y: i64,
    pub max_y: i64,
    pub sorted_y: Vec<Vec<Cell>>,
    /* private fields */
}
Expand description

Collection of Cells

Fields

min_x: i64

Minimum x value of current cells

max_x: i64

Maximum x value of current cells

min_y: i64

Minimum y value of current cells

max_y: i64

Maximum y value of current cells

sorted_y: Vec<Vec<Cell>>

Cells sorted by y position, then x position

Implementations

Create new Cell collection

Clear cells

Return total number of cells

Sort cells into sorted_y cells

Cells are distributed into y bins, then sorted by x value

Return number of cells in a specific y row

Returns the cells of a specific y row

Draw a line from (x1,y1) to (x2,y2)

Cells are added to the cells collection with cover and area values

Input coordinates are at subpixel scale

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.