Class CubemapComponent

java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.CubemapComponent
Direct Known Subclasses:
OrthosphereComponent, PanoramaComponent, PlanetariumComponent

public abstract class CubemapComponent extends GuiComponent
Abstract component for all cubemap-related modes: planetarium, panorama, orthosphere.
  • Field Details

    • key

      protected String key
    • backButton

      protected com.badlogic.gdx.scenes.scene2d.ui.Button backButton
    • enumOffset

      protected int enumOffset
    • widthMultiplier

      protected float widthMultiplier
      Factor 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: GuiComponent
      Initialises the component.
      Specified by:
      initialize in class GuiComponent
      Parameters:
      unused - The target width of the component.
    • initialize

      public void initialize(float componentWidth, CubmeapProjectionEffect.CubemapProjection projection)
    • 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: GuiComponent
      Disposes the component.
      Specified by:
      dispose in class GuiComponent