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
FieldsModifier and TypeFieldDescriptionprotected Vector2Dprotected Vector2Dprotected Vector3Qprotected Vector3Qprotected Vector3Dprotected Vector3Dprotected ICameraprotected com.badlogic.gdx.graphics.Colorprotected float[]protected float[]protected doubleExtent, in whatever units, of the minimap - where the edge isprotected doubleExtent, in whatever units, of the minimap - where the edge isprotected com.badlogic.gdx.graphics.g2d.BitmapFontprotected doubleConversions to and from internal unitsprotected com.badlogic.gdx.graphics.OrthographicCameraprotected com.badlogic.gdx.graphics.g2d.SpriteBatchprotected intprotected intprotected intprotected intprotected com.badlogic.gdx.graphics.glutils.ShapeRendererprotected com.badlogic.gdx.graphics.Colorprotected floatprotected com.badlogic.gdx.graphics.Colorprotected com.badlogic.gdx.graphics.Colorprotected com.badlogic.gdx.graphics.Colorprotected com.badlogic.gdx.graphics.Colorprotected com.badlogic.gdx.graphics.Colorprotected com.badlogic.gdx.graphics.Colorprotected doubleConversions to and from internal unitsprotected Matrix4D -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]voiddispose()protected voidinitialize(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) booleanfloat[]protected floatpx(float px) protected voidprotected voidrenderCameraSide(float viewportAlpha) protected voidprotected voidrenderCameraTop(float viewportAlpha) protected intu2Px(double units, float side) Converts units to pixels, given the side/2 of the end minimapvoidupdate()protected abstract voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IMinimapScale
getName, initialize, renderSideProjection, renderTopProjectionModifier and TypeMethodDescriptiongetName()voidinitialize(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) voidrenderSideProjection(com.badlogic.gdx.graphics.glutils.FrameBuffer fb) voidrenderTopProjection(com.badlogic.gdx.graphics.glutils.FrameBuffer fb)
-
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
protected 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:
updatein interfaceIMinimapScale
-
updateLocal
protected abstract void updateLocal() -
position
-
direction
-
isActive
- Specified by:
isActivein 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:
disposein interfaceIMinimapScale
-