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 Summary
FieldsModifier and TypeFieldDescriptionprotected final ICameraprotected ISceneRendererprotected LabelViewFields inherited from class com.badlogic.ashley.core.EntitySystem
priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddToRender(IRenderable renderable, RenderGroup rg) Adds the given renderable to the given render group list.protected booleanaddToRender(IRenderable renderable, RenderGroup rg, boolean fullResolution) Adds the given renderable to the given render group of the given list (full or half resolution).voidextract(com.badlogic.ashley.core.Entity entity) protected booleanisInRender(IRenderable renderable, RenderGroup rg) protected booleanisInRender(IRenderable renderable, RenderGroup... rgs) protected booleanmustRender(Base base) Computes whether the entity with the given base component must be rendered.voidsetRenderer(ISceneRenderer renderer) Methods inherited from class com.badlogic.ashley.systems.IteratingSystem
addedToEngine, getEntities, getFamily, processEntity, removedFromEngine, updateMethods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessing
-
Field Details
-
camera
-
renderer
-
view
-
-
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
-
mustRender
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
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
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
-
isInRender
-