Class StubModel
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
-
- gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
-
- gaia.cu9.ari.gaiaorbit.scenegraph.StubModel
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,ILineRenderable
,IModelRenderable
,IRenderable
,IStarContainer
,IPosition
public class StubModel extends AbstractPositionEntity implements IModelRenderable, ILineRenderable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description IntModelInstance
instance
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
cc, coordinates, copy, distToCamera, octant, octantId, pos, posSph, size, viewAngle, viewAngleApparent
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, children, computed, ct, id, localTransform, name, namekey, numChildren, opacity, orientation, parent, parentkey, parentName, ROOT_NAME, sg, translation
-
-
Constructor Summary
Constructors Constructor Description StubModel(VRContext.VRDevice device, com.badlogic.gdx.graphics.g3d.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
addToRenderLists(SceneGraphNode.RenderGroup rg)
com.badlogic.gdx.math.Vector3
getBeamP0()
Gets the initial point of the controller beam in camera spacecom.badlogic.gdx.math.Vector3
getBeamP1()
Gets the end point of the controller beam in camera spaceComponentTypes
getComponentType()
Gets the component types of this entityVRContext.VRDevice
getDevice()
double
getDistToCamera()
Returns the current distance to the camera in internal units.int
getGlType()
float
getLineWidth()
float
getOpacity()
Returns the opacity of this renderableboolean
hasAtmosphere()
void
render(LineRenderSystem renderer, ICamera camera, float alpha)
void
render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
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 gaia.cu9.ari.gaiaorbit.scenegraph.AbstractPositionEntity
computeFuturePosition, doneLoading, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAlpha, getDelta, getHeight, getHeight, getHeight, getHeightScale, getNext, getOctant, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRadius, getSimpleCopy, getSize, getViewAngle, getViewAngleApparent, isCopy, mustUpdatePosition, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, setColor, setColor, setCoordinates, setSize, setSize, updateLocal
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addNodes, addToIndex, addToRender, dispose, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByType, getCt, getFirstStarAncestor, getId, getLineCopy, getName, getNode, getNode, getOrientation, getRoot, getSceneGraphDepth, getStarCount, getVelocity, initialize, insert, isInRender, isInRender, isValidPosition, isVisibilityOn, mustAddToIndex, removeChild, removeFromIndex, removeFromRender, returnToPool, setComputedFlag, setCt, setCt, setId, setName, setNamekey, setParent, setParentkey, setUp, toString, update, update, updateNames, updateNamesRec
-
-
-
-
Field Detail
-
instance
public IntModelInstance instance
-
-
Constructor Detail
-
StubModel
public StubModel(VRContext.VRDevice device, com.badlogic.gdx.graphics.g3d.Environment env)
-
-
Method Detail
-
getComponentType
public ComponentTypes 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:AbstractPositionEntity
Returns the current distance to the camera in internal units.- Specified by:
getDistToCamera
in interfaceIRenderable
- Overrides:
getDistToCamera
in classAbstractPositionEntity
- 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
public void addToRenderLists(SceneGraphNode.RenderGroup rg)
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
Description copied from class:AbstractPositionEntity
Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Specified by:
addToRenderLists
in classAbstractPositionEntity
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
- Specified by:
render
in interfaceIModelRenderable
-
renderOpaque
public void renderOpaque(IntModelBatch modelBatch, float alpha, double t)
Occlusion rendering
-
render
public void render(LineRenderSystem renderer, ICamera camera, float alpha)
- Specified by:
render
in interfaceILineRenderable
-
getGlType
public int getGlType()
- Specified by:
getGlType
in interfaceILineRenderable
-
setTransparency
public void setTransparency(float alpha)
-
hasAtmosphere
public boolean hasAtmosphere()
- Specified by:
hasAtmosphere
in interfaceIModelRenderable
-
updateLocalValues
public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
Description copied from class:AbstractPositionEntity
This function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Specified by:
updateLocalValues
in classAbstractPositionEntity
-
getDevice
public VRContext.VRDevice 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
-
-