Class TerrainFlattenMode

java.lang.Object
com.massifmaps.components.TerrainFlattenMode

public final class TerrainFlattenMode extends Object
How far a flattened terrain goes back towards a plain 2D map.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The accepted values of this constant namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The whole way: a flat map decodes, culls and draws as if no terrain were configured.
    The price is a re-decode at each switch, paid while the map is already flat.
    static final int
    Rendering only: the terrain passes, the drape and the elevation fetches are dropped,
    but the tiles keep the terrain subdivision they were decoded with.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TERRAIN_FLATTEN_MODE_RENDER

      public static final int TERRAIN_FLATTEN_MODE_RENDER
      Rendering only: the terrain passes, the drape and the elevation fetches are dropped,
      but the tiles keep the terrain subdivision they were decoded with. Switching costs
      nothing and is instant, and a flat map still carries a 3D map's triangles.
      See Also:
    • TERRAIN_FLATTEN_MODE_FULL

      public static final int TERRAIN_FLATTEN_MODE_FULL
      The whole way: a flat map decodes, culls and draws as if no terrain were configured.
      The price is a re-decode at each switch, paid while the map is already flat.
      See Also:
  • Constructor Details

    • TerrainFlattenMode

      public TerrainFlattenMode()