LayerTcRef

ostrat.prid.LayerTcRef
trait LayerTcRef[A <: AnyRef]

An Array of tile centre data of type A. An appropriate SqGrid or HGrid is required to utilise its functionality.

Attributes

Graph
Supertypes
class Any
Known subtypes
trait LayerHcRef[A]
class LayerHcRefRow[A]
trait LayerHcRefSys[A]
class LayerHcRefGrid[A]
class LayerHcRefMulti[A]
class SqCenLayer[A]
Show all

Members list

Value members

Abstract methods

def arrayUnsafe: Array[A]

The mutable backing Array. End users should rarely if ever have to access this field

The mutable backing Array. End users should rarely if ever have to access this field

Attributes

Concrete methods

def foreach[U](f: A => U): Unit

For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.

For each element in the underlying array performs the side effecting function. This method treats the LayerTcRef class like a standard Arr or Array. It does not utilise the grid TGrid from which this LayerTcRef was created.

Attributes

final def length: Int

The number of tile centres this array of data represents.

The number of tile centres this array of data represents.

Attributes

def map[B, BB <: Arr[B]](f: A => B)(implicit build: BuilderArrMap[B, BB]): BB

Each element in the underlying array is mapped by the parameter function to an element of type B. This method treat the HCenArr class like a standard Arr or Array. It does not utilise the grid HGrid from which this HCenArr was created.

Each element in the underlying array is mapped by the parameter function to an element of type B. This method treat the HCenArr class like a standard Arr or Array. It does not utilise the grid HGrid from which this HCenArr was created.

Attributes

final def mutSetAll(value: A): Unit

Set all tiles to the given value.

Set all tiles to the given value.

Attributes