Package gaiasky.scenegraph
Class StubModel
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.StubModel
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,ILineRenderable
,IModelRenderable
,IRenderable
,IStarContainer
,IVisibilitySwitch
,IPosition
-
Field Summary
FieldsFields inherited from class gaiasky.scenegraph.SceneGraphNode
B31, B32, B33, B34, cc, children, computed, coordinates, copy, ct, D31, D32, D33, D34, distToCamera, F31, F32, F33, F34, forceLabel, id, labelcolor, lastStateChangeTimeMs, localizedNameIndex, localTransform, names, numChildren, octant, octantId, opacity, orientation, parent, parentName, pos, posSph, ROOT_NAME, size, translation, viewAngle, viewAngleApparent, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
addToRenderLists
(ICamera camera) Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.com.badlogic.gdx.math.Vector3
Gets the initial point of the controller beam in camera spacecom.badlogic.gdx.math.Vector3
Gets the end point of the controller beam in camera spaceGets the component types of this entitydouble
Returns the current distance to the camera in internal units.int
float
float
Returns the opacity of this renderableboolean
void
render
(LineRenderSystem renderer, ICamera camera, float alpha) void
render
(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc, SceneGraphRenderer.RenderGroup group) void
renderOpaque
(IntModelBatch modelBatch, float alpha, double t) Occlusion renderingvoid
setTransparency
(float alpha) void
updateLocalValues
(ITimeFrameProvider time, ICamera camera) This function updates all the local values before the localTransform is updated.Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, dispose, doneLoading, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getCoordinates, getCt, getDelta, getDescription, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLabelcolor, getLineCopy, getLocalizedName, getName, getNames, getNext, getNode, getNode, getOctant, getOrientation, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRadius, getRoot, getSceneGraphDepth, getSimpleCopy, getSize, getStarCount, getUnrotatedPos, getVelocity, getViewAngle, getViewAngleApparent, getVisibilityOpacityFactor, hasCt, hasName, hasName, initialize, insert, isCopy, isForceLabel, isForceLabel, isInRender, isInRender, isValidPosition, isVisibilityOn, isVisible, isVisible, isVisible, isVisibleGroup, isVisibleGroup, msSinceStateChange, mustAddToIndex, mustUpdatePosition, namesConcat, removeChild, removeFromIndex, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setDescription, setForcelabel, setForceLabel, setForceLabel, setId, setLabelcolor, setLabelcolor, setLabelcolor, setName, setName, setNames, setParent, setPos, setSize, setSize, setUp, setVisible, setVisible, setVisibleGroup, shouldRender, toString, update, update, updateLocal, updateLocalizedName, updateLocalizedNameRecursive
-
Field Details
-
instance
-
-
Constructor Details
-
StubModel
-
-
Method Details
-
getComponentType
Description copied from interface:IRenderable
Gets the component types of this entity- Specified by:
getComponentType
in interfaceIRenderable
- Overrides:
getComponentType
in classSceneGraphNode
- Returns:
- The component types
-
getDistToCamera
public double getDistToCamera()Description copied from class:SceneGraphNode
Returns the current distance to the camera in internal units.- Specified by:
getDistToCamera
in interfaceIRenderable
- Overrides:
getDistToCamera
in classSceneGraphNode
- Returns:
- The current distance to the camera, in internal units.
-
getOpacity
public float getOpacity()Description copied from interface:IRenderable
Returns the opacity of this renderable- Specified by:
getOpacity
in interfaceIRenderable
- Overrides:
getOpacity
in classSceneGraphNode
- Returns:
- The opacity
-
addToRenderLists
-
addToRenderLists
Description copied from class:SceneGraphNode
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Overrides:
addToRenderLists
in classSceneGraphNode
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc, SceneGraphRenderer.RenderGroup group) - Specified by:
render
in interfaceIModelRenderable
-
renderOpaque
Occlusion rendering -
render
- Specified by:
render
in interfaceILineRenderable
-
getGlPrimitive
public int getGlPrimitive()- Specified by:
getGlPrimitive
in interfaceILineRenderable
-
setTransparency
public void setTransparency(float alpha) -
hasAtmosphere
public boolean hasAtmosphere()- Specified by:
hasAtmosphere
in interfaceIModelRenderable
-
updateLocalValues
Description copied from class:SceneGraphNode
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Overrides:
updateLocalValues
in classSceneGraphNode
-
getDevice
-
getBeamP0
public com.badlogic.gdx.math.Vector3 getBeamP0()Gets the initial point of the controller beam in camera space- Returns:
- Initial point of controller beam
-
getBeamP1
public com.badlogic.gdx.math.Vector3 getBeamP1()Gets the end point of the controller beam in camera space- Returns:
- End point of controller beam
-
getLineWidth
public float getLineWidth()- Specified by:
getLineWidth
in interfaceILineRenderable
-