HSysProjection

ostrat.prid.phex.HSysProjection

Hex grid system graphics projection.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type SysT <: HGridSys

The type of the grid system this projects from.

The type of the grid system this projects from.

Attributes

Value members

Abstract methods

Maps the HCens visible in this projection with their respective projected Pt2s.

Maps the HCens visible in this projection with their respective projected Pt2s.

Attributes

def hCenSizedMap(hexScale: Double)(f: (HCen, Pt2) => GraphicElem): GraphicElems
def setView(view: Any): Unit

Set the perspective, The position of the view. the rotation and the scale.

Set the perspective, The position of the view. the rotation and the scale.

Attributes

def transCoord(hc: HCoord): Pt2

Generally unsafe. Transforms an HCoord to a Pt2. Only use for HCoords that are guaranteed displayed by the projection.

Generally unsafe. Transforms an HCoord to a Pt2. Only use for HCoords that are guaranteed displayed by the projection.

Attributes

transforms and filters out non visible HSeps.

transforms and filters out non visible HSeps.

Attributes

Optionally transforms an HCoord to a Pt2. This is safe unlike transCoord.

Optionally transforms an HCoord to a Pt2. This is safe unlike transCoord.

Attributes

Concrete methods

def hCenFlatMap[ArrB <: Arr[_]](f: HCen => ArrB)(implicit build: BuilderArrFlat[ArrB]): ArrB

FlatMaps the HCens visible in this projection.

FlatMaps the HCens visible in this projection.

Attributes

def hCenIfMap[B, ArrB <: Arr[B]](f1: HCen => Boolean)(f2: HCen => B)(implicit build: BuilderArrMap[B, ArrB]): ArrB

IfMaps the HCens visible in this projection. The mapping function is only applied if the first function condition is true.

IfMaps the HCens visible in this projection. The mapping function is only applied if the first function condition is true.

Attributes

def hCenMap[B, ArrB <: Arr[B]](f: HCen => B)(implicit build: BuilderArrMap[B, ArrB]): ArrB

Maps the HCens of this projection.

Maps the HCens of this projection.

Attributes

def hCenOptMap[B, ArrB <: Arr[B]](f: HCen => Option[B])(implicit build: BuilderArrMap[B, ArrB]): ArrB

OptMaps the HCens visible in this projection.

OptMaps the HCens visible in this projection.

Attributes

Produces the hex tile polygons modified by the HCornerLayer parameter. Polygons not visible in the projection should be excluded.

Produces the hex tile polygons modified by the HCornerLayer parameter. Polygons not visible in the projection should be excluded.

Attributes

def hCensIfPtFlatMap[ArrB <: Arr[_]](f1: HCen => Boolean)(f2: (HCen, Pt2) => ArrB)(implicit build: BuilderArrFlat[ArrB]): ArrB

IfFlatMaps the HCens visible in this projection with their respective projected Pt2s. The flatMapping function is only applied if the first function condition is true

IfFlatMaps the HCens visible in this projection with their respective projected Pt2s. The flatMapping function is only applied if the first function condition is true

Attributes

def hCensIfPtMap[B, ArrB <: Arr[B]](f1: HCen => Boolean)(f2: (HCen, Pt2) => B)(implicit build: BuilderArrMap[B, ArrB]): ArrB

IfMaps the HCens visible in this projection with their respective projected Pt2s. The mapping function is only applied if the first function condition is true.

IfMaps the HCens visible in this projection with their respective projected Pt2s. The mapping function is only applied if the first function condition is true.

Attributes

Produces optional data about the HCoord. for example on a world projection it can give the latitude and longitude.

Produces optional data about the HCoord. for example on a world projection it can give the latitude and longitude.

Attributes

Produces the side polygons from the HCornerLayer parameter. Polygons not visible in the projection should be excluded.

Produces the side polygons from the HCornerLayer parameter. Polygons not visible in the projection should be excluded.

Attributes

def lineSeg(hs: HSep): LineSeg
def linkLineSegsOptMap[B, ArrB <: Arr[B]](f: (HSep, LineSeg) => Option[B])(implicit build: BuilderArrMap[B, ArrB]): ArrB
def linksOptMap[B, ArrB <: Arr[B]](f: HSep => Option[B])(implicit build: BuilderArrMap[B, ArrB]): ArrB
def sidesOptMap[B, ArrB <: Arr[B]](f: HSep => Option[B])(implicit build: BuilderArrMap[B, ArrB]): ArrB
def transLineSegPairs[A2](inp: LineSegHCPairArr[A2])(implicit ct: ClassTag[A2]): LineSegPairArr[A2]

Inherited methods

def ifTileScale(minScale: Double, elems: => GraphicElems): GraphicElems

Filters the GraphicElems away if the tile scale is too small to display the elements satisfactorily.

Filters the GraphicElems away if the tile scale is too small to display the elements satisfactorily.

Attributes

Inherited from:
TSysProjection

The visible inner hex sides.

The visible inner hex sides.

Attributes

Inherited from:
TSysProjection
def innerSidesDraw(lineWidth: Double, colour: Colour): LinesDraw

Draws visible inner hex sides.

Draws visible inner hex sides.

Attributes

Inherited from:
TSysProjection

The visible outer hex sides.

The visible outer hex sides.

Attributes

Inherited from:
TSysProjection
def outerSidesDraw(lineWidth: Double, colour: Colour): LinesDraw

Draws visible outer hex sides.

Draws visible outer hex sides.

Attributes

Inherited from:
TSysProjection
def panel: Panel

The panel this projection outputs to.

The panel this projection outputs to.

Attributes

Inherited from:
TSysProjection
def parent: SysT

The parent grid system of the scenario, from which the this projection projects from.

The parent grid system of the scenario, from which the this projection projects from.

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection

The number of pixels per tile from side to opposite side.

The number of pixels per tile from side to opposite side.

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection

The visible hex sides.

The visible hex sides.

Attributes

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

Draws visible hex sides.

Draws visible hex sides.

Attributes

Inherited from:
TSysProjection

Active projected Polygons of the tiles.

Active projected Polygons of the tiles.

Attributes

Inherited from:
TSysProjection

Projected Polygons of the tiles.

Projected Polygons of the tiles.

Attributes

Inherited from:
TSysProjection
def zoomFactor(button: MouseButton): Double

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection

Abstract fields

Inherited fields

Attributes

Inherited from:
TSysProjection
var getFrame: () => GraphicElems

Gives the projector access to the scenarios tile graphic creation.

Gives the projector access to the scenarios tile graphic creation.

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjection