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, KeyframeExtractor, LocExtractor, MeshExtractor, ModelExtractor, OctreeExtractor, ParticleExtractor, ParticleSetExtractor, PerimeterExtractor, RaymarchingExtractor, RulerExtractor, ShapeExtractor, TitleExtractor, TrajectoryExtractor, VertsExtractor, VRDeviceExtractor

public abstract class AbstractExtractSystem extends com.badlogic.ashley.systems.IteratingSystem
  • 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.
      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.
    • removeFromRender

      protected boolean removeFromRender(IRenderable renderable, RenderGroup rg)
      Removes the given renderable from the given render group list.
      Parameters:
      renderable - The renderable to remove.
      rg - The render group to remove from.
      Returns:
      True if removed, false otherwise.
    • isInRender

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

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