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
FieldsModifier and TypeFieldDescriptionprotected final ICameraprotected ISceneRendererprotected List<List<IRenderable>> protected 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.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.protected booleanremoveFromRender(IRenderable renderable, RenderGroup rg) Removes the given renderable from the given render group list.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
-
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
-