SqGrid

final
class SqGrid(val bottomTileRow: Int, val topTileRow: Int, val tileColMin: Int, val tileColMax: Int) extends TGrid

A grid of Squares. A regular rectangle of squares.

Companion
object
trait TGrid
class Object
trait Matchable
class Any

Document{}

@inline
final
def bottomSideRow: Int

The bottom, lowest or minimum Side Row of this TileGrid. The r value, the row number value.

The bottom, lowest or minimum Side Row of this TileGrid. The r value, the row number value.

Inherited from
TGrid
@inline
final
def numOfSideRows: Int

The number of Rows of Sides.

The number of Rows of Sides.

Inherited from
TGrid
def sideRowForeach(f: Int => Unit): Unit

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Inherited from
TGrid
final
def sidesDraw(colour: Colour, lineWidth: Double): LinesDraw

This gives the all tile grid lines in a single colour and line width.

This gives the all tile grid lines in a single colour and line width.

Inherited from
TGrid
@inline
final
def topSideRow: Int

The top, highest or maximum Side Row of this TileGrid. The r value, the row number.

The top, highest or maximum Side Row of this TileGrid. The r value, the row number.

Inherited from
TGrid

Value members

Concrete methods

@inline
final
def arrIndex(sc: SqCen): Int

Gives the index into an Arr / Array of Tile data from its tile Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

Gives the index into an Arr / Array of Tile data from its tile Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

@inline
def arrIndex(r: Int, c: Int): Int
def cGridMax: Int
def cGridMin: Int
def foreach(f: SqCen => Unit): Unit
override
def foreachCenCoord(f: TCoord => Unit): Unit
Definition Classes
override
def height: Double
Definition Classes
final
def iForeach(f: (SqCen, Int) => Unit, startCount: Int): Unit
final
def newTileArr[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): SqCenArr[A]

New immutable Arr of Tile data.

New immutable Arr of Tile data.

final
def newTileArrOpt[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrOpt[A]

New Tile immutable Tile Arr of Opt data values.

New Tile immutable Tile Arr of Opt data values.

final
def newTileBuffArr[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrBuff[A]
override
def numTileRows: Int

Number of rows of tiles.

Number of rows of tiles.

Definition Classes
override
def numTiles: Int

The total number of Tiles in the tile Grid.

The total number of Tiles in the tile Grid.

Definition Classes
def rGridMax: Int
def rGridMin: Int
def rowForeach(r: Int)(f: SqCen => Unit): Unit
def rowIForeach(r: Int, startCount: Int)(f: (SqCen, Int) => Unit): Int
def tileRowLen: Int

The number of tiles in each tile row.

The number of tiles in each tile row.

override
def width: Double
Definition Classes
override
def xCen: Double
Definition Classes
override
def xRatio: Double
Definition Classes

Inherited methods

Inherited from
TGrid
final
def flatMapRows[ArrT <: ArrBase[_]](f: Int => ArrT)(implicit build: ArrFlatBuilder[ArrT]): ArrT

flatMaps over each row number.

flatMaps over each row number.

Inherited from
TGrid
final
def foldRows[B](init: B)(f: (B, Int) => B): B

foldLefts over each row number.

foldLefts over each row number.

Inherited from
TGrid
final
def foreachRow(f: Int => Unit): Unit

Foreach grid Row y coordinate.

Foreach grid Row y coordinate.

Inherited from
TGrid
def fullDisplayScale(dispWidth: Double, dispHeight: Double, padding: Double): Double
Inherited from
TGrid
def mapCenCoords[B, BB <: ArrBase[B]](f: TCoord => B)(implicit build: ArrBuilder[B, BB]): BB
Inherited from
TGrid
final
def mapRows[B, BB <: ArrBase[B]](f: Int => B)(implicit build: ArrBuilder[B, BB]): BB

maps over each row number.

maps over each row number.

Inherited from
TGrid
@inline
final
def numOfVertRows: Int

The number of Rows of vertices.

The number of Rows of vertices.

Inherited from
TGrid

Gives the text graphics for the row and column of each tile centre.

Gives the text graphics for the row and column of each tile centre.

Inherited from
TGrid
@inline
final
def sideRowBottom: Int

The bottom or lowest tile side row, r coordinate.

The bottom or lowest tile side row, r coordinate.

Inherited from
TGrid
@inline
def sideRowTop: Int

The top of highest tile side row, r coordinate.

The top of highest tile side row, r coordinate.

Inherited from
TGrid
def yCen: Double
Inherited from
TGrid

Concrete fields

val bottomTileRow: Int
val tileColMax: Int
val tileColMin: Int
val topTileRow: Int