Package gaiasky.scenegraph
Class StubModel
- java.lang.Object
-
- gaiasky.scenegraph.SceneGraphNode
-
- gaiasky.scenegraph.AbstractPositionEntity
-
- gaiasky.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 gaiasky.scenegraph.SceneGraphNode
SceneGraphNode.RenderGroup, SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description IntModelInstanceinstance-
Fields inherited from class gaiasky.scenegraph.AbstractPositionEntity
cc, coordinates, copy, distToCamera, octant, octantId, pos, posSph, size, viewAngle, viewAngleApparent
-
Fields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, children, computed, ct, id, localTransform, namekey, names, 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 voidaddToRenderLists(ICamera camera)Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.voidaddToRenderLists(SceneGraphNode.RenderGroup rg)com.badlogic.gdx.math.Vector3getBeamP0()Gets the initial point of the controller beam in camera spacecom.badlogic.gdx.math.Vector3getBeamP1()Gets the end point of the controller beam in camera spaceComponentTypesgetComponentType()Gets the component types of this entityVRContext.VRDevicegetDevice()doublegetDistToCamera()Returns the current distance to the camera in internal units.intgetGlPrimitive()floatgetLineWidth()floatgetOpacity()Returns the opacity of this renderablebooleanhasAtmosphere()voidrender(LineRenderSystem renderer, ICamera camera, float alpha)voidrender(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)voidrenderOpaque(IntModelBatch modelBatch, float alpha, double t)Occlusion renderingvoidsetTransparency(float alpha)voidupdateLocalValues(ITimeFrameProvider time, ICamera camera)This function updates all the local values before the localTransform is updated.-
Methods inherited from class gaiasky.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, setLabelcolor, setLabelcolor, setSize, setSize, updateLocal
-
Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, dispose, getAggregatedChildren, getChildByName, getChildByNameAndType, getChildrenByType, getCt, getFirstStarAncestor, getId, getLineCopy, getName, getNames, getNode, getNode, getOrientation, getRoot, getSceneGraphDepth, getStarCount, getVelocity, hasName, hasName, initialize, insert, insert, isInRender, isInRender, isValidPosition, isVisibilityOn, mustAddToIndex, namesConcat, removeChild, removeFromIndex, removeFromRender, returnToPool, setComputedFlag, setCt, setCt, setId, setName, setNamekey, setNames, 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:IRenderableGets the component types of this entity- Specified by:
getComponentTypein interfaceIRenderable- Overrides:
getComponentTypein classSceneGraphNode- Returns:
- The component types
-
getDistToCamera
public double getDistToCamera()
Description copied from class:AbstractPositionEntityReturns the current distance to the camera in internal units.- Specified by:
getDistToCamerain interfaceIRenderable- Overrides:
getDistToCamerain classAbstractPositionEntity- Returns:
- The current distance to the camera, in internal units.
-
getOpacity
public float getOpacity()
Description copied from interface:IRenderableReturns the opacity of this renderable- Specified by:
getOpacityin interfaceIRenderable- Overrides:
getOpacityin classSceneGraphNode- Returns:
- The opacity
-
addToRenderLists
public void addToRenderLists(SceneGraphNode.RenderGroup rg)
-
addToRenderLists
protected void addToRenderLists(ICamera camera)
Description copied from class:AbstractPositionEntityAdds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Specified by:
addToRenderListsin classAbstractPositionEntity
-
render
public void render(IntModelBatch modelBatch, float alpha, double t, RenderingContext rc)
- Specified by:
renderin 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:
renderin interfaceILineRenderable
-
getGlPrimitive
public int getGlPrimitive()
- Specified by:
getGlPrimitivein interfaceILineRenderable
-
setTransparency
public void setTransparency(float alpha)
-
hasAtmosphere
public boolean hasAtmosphere()
- Specified by:
hasAtmospherein interfaceIModelRenderable
-
updateLocalValues
public void updateLocalValues(ITimeFrameProvider time, ICamera camera)
Description copied from class:AbstractPositionEntityThis function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Specified by:
updateLocalValuesin 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:
getLineWidthin interfaceILineRenderable
-
-