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 Summary
Modifier and TypeFieldDescriptionprotected final ICamera
protected ISceneRenderer
protected List
<List<IRenderable>> protected LabelView
Fields inherited from class com.badlogic.ashley.core.EntitySystem
priority
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addToRender
(IRenderable renderable, RenderGroup rg) Adds the given renderable to the given render group list.void
extract
(com.badlogic.ashley.core.Entity entity) protected boolean
isInRender
(IRenderable renderable, RenderGroup rg) protected boolean
isInRender
(IRenderable renderable, RenderGroup... rgs) protected boolean
mustRender
(Base base) Computes whether the entity with the given base component must be rendered.protected boolean
removeFromRender
(IRenderable renderable, RenderGroup rg) Removes the given renderable from the given render group list.void
setRenderer
(ISceneRenderer renderer) Methods inherited from class com.badlogic.ashley.systems.IteratingSystem
addedToEngine, getEntities, getFamily, processEntity, removedFromEngine, update
Methods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessing
-
Field Details
-
camera
-
renderer
-
view
-
renderLists
-
-
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.- 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.
-
removeFromRender
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
-
isInRender
-