Package gaiasky.gui.minimap
Class AbstractMinimapScale
java.lang.Object
gaiasky.gui.minimap.AbstractMinimapScale
- All Implemented Interfaces:
IMinimapScale
- Direct Known Subclasses:
HeliosphereMinimapScale
,HighZMinimapScale
,InnerSolarSystemMinimapScale
,LocalGroup1MinimapScale
,LocalGroup2MinimapScale
,MilkyWayMinimapScale
,OortCloudMinimapScale
,OuterSolarSystemMinimapScale
,SolarNeighbourhoodMinimapScale
-
Field Summary
Modifier and TypeFieldDescriptionprotected Vector2d
protected Vector2d
protected Vector3b
protected Vector3b
protected Vector3d
protected Vector3d
protected ICamera
protected com.badlogic.gdx.graphics.Color
protected float[]
protected float[]
protected double
Extent, in whatever units, of the minimap - where the edge isprotected double
Extent, in whatever units, of the minimap - where the edge isprotected com.badlogic.gdx.graphics.g2d.BitmapFont
protected double
Conversions to and from internal unitsprotected com.badlogic.gdx.graphics.OrthographicCamera
protected com.badlogic.gdx.graphics.g2d.SpriteBatch
protected int
protected int
protected int
protected int
protected com.badlogic.gdx.graphics.glutils.ShapeRenderer
protected com.badlogic.gdx.graphics.Color
protected float
protected com.badlogic.gdx.graphics.Color
protected com.badlogic.gdx.graphics.Color
protected com.badlogic.gdx.graphics.Color
protected com.badlogic.gdx.graphics.Color
protected com.badlogic.gdx.graphics.Color
protected com.badlogic.gdx.graphics.Color
protected double
Conversions to and from internal unitsprotected Matrix4d
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]
void
dispose()
protected void
initialize
(com.badlogic.gdx.graphics.OrthographicCamera ortho, com.badlogic.gdx.graphics.g2d.SpriteBatch sb, com.badlogic.gdx.graphics.glutils.ShapeRenderer sr, com.badlogic.gdx.graphics.g2d.BitmapFont font, int side, int sideshort, double to, double from, double extentUp, double extentDown) boolean
float[]
protected float
px
(float px) protected void
protected void
renderCameraSide
(float viewportAlpha) protected void
protected void
renderCameraTop
(float viewportAlpha) protected int
u2Px
(double units, float side) Converts units to pixels, given the side/2 of the end minimapvoid
update()
protected abstract void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gaiasky.gui.IMinimapScale
getName, initialize, renderSideProjection, renderTopProjection
-
Field Details
-
ortho
protected com.badlogic.gdx.graphics.OrthographicCamera ortho -
sb
protected com.badlogic.gdx.graphics.g2d.SpriteBatch sb -
sr
protected com.badlogic.gdx.graphics.glutils.ShapeRenderer sr -
font
protected com.badlogic.gdx.graphics.g2d.BitmapFont font -
side
protected int side -
sideshort
protected int sideshort -
side2
protected int side2 -
sideshort2
protected int sideshort2 -
extentUp
protected double extentUpExtent, in whatever units, of the minimap - where the edge is -
extentDown
protected double extentDownExtent, in whatever units, of the minimap - where the edge is -
to
protected double toConversions to and from internal units -
from
protected double fromConversions to and from internal units -
aux3d1
-
aux3d2
-
aux3b1
-
aux3b2
-
aux2d1
-
aux2d2
-
trans
-
sunc
protected com.badlogic.gdx.graphics.Color sunc -
camc
protected com.badlogic.gdx.graphics.Color camc -
textbc
protected com.badlogic.gdx.graphics.Color textbc -
textrc
protected com.badlogic.gdx.graphics.Color textrc -
textgc
protected com.badlogic.gdx.graphics.Color textgc -
textyc
protected com.badlogic.gdx.graphics.Color textyc -
textcc
protected com.badlogic.gdx.graphics.Color textcc -
textmc
protected com.badlogic.gdx.graphics.Color textmc -
camp
protected float[] camp -
camd
protected float[] camd -
suns
protected float suns -
cam
-
-
Constructor Details
-
AbstractMinimapScale
public AbstractMinimapScale()
-
-
Method Details
-
initialize
protected void initialize(com.badlogic.gdx.graphics.OrthographicCamera ortho, com.badlogic.gdx.graphics.g2d.SpriteBatch sb, com.badlogic.gdx.graphics.glutils.ShapeRenderer sr, com.badlogic.gdx.graphics.g2d.BitmapFont font, int side, int sideshort, double to, double from, double extentUp, double extentDown) -
update
public void update()- Specified by:
update
in interfaceIMinimapScale
-
updateLocal
protected abstract void updateLocal() -
position
-
direction
-
isActive
- Specified by:
isActive
in interfaceIMinimapScale
-
px
protected float px(float px) -
u2Px
protected int u2Px(double units, float side) Converts units to pixels, given the side/2 of the end minimap- Parameters:
units
- The value in whatever unitsside
- Side/2 of minimap- Returns:
- Pixel coordinate
-
renderCameraSide
protected void renderCameraSide() -
renderCameraSide
protected void renderCameraSide(float viewportAlpha) -
renderCameraTop
protected void renderCameraTop() -
renderCameraTop
protected void renderCameraTop(float viewportAlpha) -
dispose
public void dispose()- Specified by:
dispose
in interfaceIMinimapScale
-