HSysProjectionFlat

ostrat.prid.phex.HSysProjectionFlat
final case class HSysProjectionFlat(parent: HGridSys, panel: Panel) extends HSysProjection with TSysProjectionFlat

Projects HGridSys on to a flat surface for 2D graphics. Like all projections attempts to remove tiles that can't be seen.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

The type of the grid system this projects from.

The type of the grid system this projects from.

Attributes

Value members

Concrete methods

This is the method to recreate the grid system subset that should be displayed.

This is the method to recreate the grid system subset that should be displayed.

Attributes

override def hCenPtMap(f: (HCen, Pt2) => GraphicElem): GraphicElems

Attributes

Definition Classes
override def hCenSizedMap(hexScale: Double)(f: (HCen, Pt2) => GraphicElem): GraphicElems

Attributes

Definition Classes
override 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

Definition Classes

The visible inner hex sides.

The visible inner hex sides.

Attributes

Definition Classes

The visible outer hex sides.

The visible outer hex sides.

Attributes

Definition Classes
override def pixRScale: Double

The number of pixels per tile grid row unit.

The number of pixels per tile grid row unit.

Attributes

Definition Classes
override def pixTileScale: Double

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

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

Attributes

Definition Classes
override 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

Definition Classes
override def sideLines: LineSegArr

The visible hex sides.

The visible hex sides.

Attributes

Definition Classes

Active projected Polygons of the tiles.

Active projected Polygons of the tiles.

Attributes

Definition Classes
override def tilePolygons: PolygonArr

Projected Polygons of the tiles.

Projected Polygons of the tiles.

Attributes

Definition Classes
override def transCoord(hc: HCoord): Pt2

only use for projection's known HCoords.

only use for projection's known HCoords.

Attributes

Definition Classes
override def transHSides(inp: HSideArr): LineSegArr

transforms and filters out non visible HSides.

transforms and filters out non visible HSides.

Attributes

Definition Classes
override def transLineSeg(seg: LineSegHC): LineSeg

Attributes

Definition Classes
override def transOptCoord(hc: HCoord): Option[Pt2]

Attributes

Definition Classes

Attributes

Definition Classes
override def transTile(hc: HCen): Option[Polygon]

Attributes

Definition Classes

Inherited methods

def focusAdj(uniStr: String)(f: (Vec2, Double) => Vec2): PolygonCompound

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
TSysProjectionFlat
def hCensMap[B, ArrB <: Arr[B]](f: HCen => B)(implicit build: ArrMapBuilder[B, ArrB]): ArrB

Attributes

Inherited from:
HSysProjection

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

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

Draws visible inner hex sides.

Draws visible inner hex sides.

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
HSysProjection
def linkLineSegsOptMap[B, ArrB <: Arr[B]](f: (HSide, LineSeg) => Option[B])(implicit build: ArrMapBuilder[B, ArrB]): ArrB

Attributes

Inherited from:
HSysProjection
def linksOptMap[B, ArrB <: Arr[B]](f: HSide => Option[B])(implicit build: ArrMapBuilder[B, ArrB]): ArrB

Attributes

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

Draws visible outer hex sides.

Draws visible outer hex sides.

Attributes

Inherited from:
TSysProjection

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
Product

Attributes

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

Draws visible hex sides.

Draws visible hex sides.

Attributes

Inherited from:
TSysProjection
def sidesOptMap[B, ArrB <: Arr[B]](f: HSide => Option[B])(implicit build: ArrMapBuilder[B, ArrB]): ArrB

Attributes

Inherited from:
HSysProjection
def transLineSegPairs[A2](inp: LineSegHCPairArr[A2])(implicit ct: ClassTag[A2]): LineSegPairArr[A2]

Attributes

Inherited from:
HSysProjection

Attributes

Inherited from:
TSysProjectionFlat

Attributes

Inherited from:
TSysProjectionFlat

Concrete fields

var focus: Vec2

This is child grid the subset of the grid that should actually be sent to the display to be rendered.

This is child grid the subset of the grid that should actually be sent to the display to be rendered.

Attributes

The number of pixels per tile grid column unit.

The number of pixels per tile grid column unit.

Attributes

Inherited fields

final override val buttons: RArr[PolygonCompound]

Attributes

Inherited from:
TSysProjectionFlat

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