Package gaiasky.scene.view
Class RenderView
java.lang.Object
gaiasky.scene.view.AbstractView
gaiasky.scene.view.BaseView
gaiasky.scene.view.RenderView
- All Implemented Interfaces:
IRenderable
- Direct Known Subclasses:
LabelView
,PointView
,ShapeEntityRenderSystem
-
Field Summary
Modifier and TypeFieldDescriptionParticle component, maybe.Particle set componentStar set componentFields inherited from class gaiasky.scene.view.AbstractView
entity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Contains actions to take after a new entity has been set.protected void
This method is called when the entity of this view is cleared.double
Gets the last distance to the camera calculated for this entityfloat
Returns the opacity of this renderabledouble
float[]
Text color for single objectsfloat[]
textColour
(String name) Text color for the star with the given name in a star set.Methods inherited from class gaiasky.scene.view.BaseView
componentsCheck, entityCheck, getBase, getBody, getComponent, getComponentType, hasCt, isVisible, isVisible, setColor, setVisible, setVisible
Methods inherited from class gaiasky.scene.view.AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gaiasky.render.api.IRenderable
getComponentType
-
Field Details
-
extra
Particle component, maybe. -
particleSet
Particle set component -
starSet
Star set component
-
-
Constructor Details
-
RenderView
public RenderView() -
RenderView
public RenderView(com.badlogic.ashley.core.Entity entity)
-
-
Method Details
-
entityChanged
protected void entityChanged()Description copied from class:AbstractView
Contains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChanged
in classBaseView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractView
This method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityCleared
in classBaseView
-
getDistToCamera
public double getDistToCamera()Description copied from interface:IRenderable
Gets the last distance to the camera calculated for this entity- Specified by:
getDistToCamera
in interfaceIRenderable
- Returns:
- The distance
-
getOpacity
public float getOpacity()Description copied from interface:IRenderable
Returns the opacity of this renderable- Specified by:
getOpacity
in interfaceIRenderable
- Overrides:
getOpacity
in classBaseView
- Returns:
- The opacity
-
getRadius
public double getRadius() -
textColour
public float[] textColour()Text color for single objects -
textColour
Text color for the star with the given name in a star set.
-