Class CubemapComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.CubemapComponent
- Direct Known Subclasses:
OrthosphereComponent, PanoramaComponent, PlanetariumComponent
Abstract component for all cubemap-related modes: planetarium, panorama, orthosphere.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.badlogic.gdx.scenes.scene2d.ui.Buttonprotected intprotected Stringprotected floatFactor to apply to the default component width.Fields inherited from class GuiComponent
component, pad1, pad12, pad20, pad3, pad30, pad4, pad6, pad8, pad9, skin, stageModifier and TypeFieldDescriptionprotected com.badlogic.gdx.scenes.scene2d.Actorprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected com.badlogic.gdx.scenes.scene2d.ui.Skinprotected com.badlogic.gdx.scenes.scene2d.Stage -
Constructor Summary
ConstructorsConstructorDescriptionCubemapComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, String key) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddToTable(com.badlogic.gdx.scenes.scene2d.ui.Table t) voiddispose()Disposes the component.voidinitialize(float unused) Initialises the component.voidinitialize(float componentWidth, CubmeapProjectionEffect.CubemapProjection projection) abstract voidinitializeComponent(float componentWidth, CubmeapProjectionEffect.CubemapProjection projection) protected abstract voidMethods inherited from class GuiComponent
getActor, group
-
Field Details
-
key
-
backButton
protected com.badlogic.gdx.scenes.scene2d.ui.Button backButton -
enumOffset
protected int enumOffset -
widthMultiplier
protected float widthMultiplierFactor to apply to the default component width.
-
-
Constructor Details
-
CubemapComponent
public CubemapComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, String key)
-
-
Method Details
-
setEnumOffset
protected abstract void setEnumOffset() -
initialize
public void initialize(float unused) Description copied from class:GuiComponentInitialises the component.- Specified by:
initializein classGuiComponent- Parameters:
unused- The target width of the component.
-
initialize
-
initializeComponent
public abstract void initializeComponent(float componentWidth, CubmeapProjectionEffect.CubemapProjection projection) -
addToTable
public abstract void addToTable(com.badlogic.gdx.scenes.scene2d.ui.Table t) -
dispose
public void dispose()Description copied from class:GuiComponentDisposes the component.- Specified by:
disposein classGuiComponent
-