Class CullState

java.lang.Object
com.massifmaps.renderers.components.CullState

public class CullState extends Object
View specific state determined by the culling process. This includes
convex envelope of the visible area, view frustum, tiles and camera state.
  • Constructor Details

    • CullState

      public CullState(MapEnvelope envelope, ViewState viewState)
      Constructs a CullState object from an envelope and a viewstate.
      Parameters:
      envelope - The envelope.
      viewState - The view state.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getProjectionEnvelope

      public MapEnvelope getProjectionEnvelope(Projection projection)
      Returns an envelope for the visible area in given projection coordinates.
      Parameters:
      projection - The projection for the envelope
      Returns:
      The envelope for the visible area in the coordinate system of the given projection.
    • getViewState

      public ViewState getViewState()
      Returns a view state.
      Returns:
      The view state.