Class AbstractExtractSystem

java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.render.extract.AbstractExtractSystem
Direct Known Subclasses:
AxesExtractor, BackgroundExtractor, BillboardSetExtractor, BoundariesExtractor, ClusterExtractor, ConstellationExtractor, ElementsSetExtractor, GridRecExtractor, InvisibleExtractor, KeyframeExtractor, LocExtractor, MeshExtractor, ModelExtractor, OctreeExtractor, ParticleExtractor, ParticleSetExtractor, PerimeterExtractor, RaymarchingExtractor, RulerExtractor, ShapeExtractor, TrajectoryExtractor, VertsExtractor, VRDeviceExtractor

public abstract class AbstractExtractSystem extends com.badlogic.ashley.systems.IteratingSystem
Common utilities to all extract systems. Mostly contains methods that compute whether a specific entity should be extracted for rendering or not.
  • Field Details

  • Constructor Details

    • AbstractExtractSystem

      public AbstractExtractSystem(com.badlogic.ashley.core.Family family, int priority)
  • Method Details

    • extract

      public void extract(com.badlogic.ashley.core.Entity entity)
    • setRenderer

      public void setRenderer(ISceneRenderer renderer)
    • mustRender

      protected boolean mustRender(Base base)
      Computes whether the entity with the given base component must be rendered. Entities must be rendered when their opacity is non-zero, they are visible, they are not a copy, and all of their component types are active. Here is an exhaustive list of the conditions:
      • Is initialized
      • Is not invisible
      • Is not a copy
      • Its component types are all visible
      • It itself is visible
      Parameters:
      base - The base component of the entity.
      Returns:
      Whether the entity must be rendered.
    • addToRender

      protected boolean addToRender(IRenderable renderable, RenderGroup rg)
      Adds the given renderable to the given render group list.
      Parameters:
      renderable - The renderable to add.
      rg - The render group that identifies the renderable list.
      Returns:
      True if added, false otherwise.
    • addToRender

      protected boolean addToRender(IRenderable renderable, RenderGroup rg, boolean fullResolution)
      Adds the given renderable to the given render group of the given list (full or half resolution).
      Parameters:
      renderable - The renderable to add.
      rg - The render group that identifies the renderable list.
      fullResolution - Whether the renderable must be rendered to the full or to the half resolution buffer.
      Returns:
      True if added, false otherwise.
    • isInRender

      protected boolean isInRender(IRenderable renderable, RenderGroup rg)
    • isInRender

      protected boolean isInRender(IRenderable renderable, RenderGroup... rgs)