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
public class StubModel extends SceneGraphNode implements IModelRenderable, ILineRenderable
-
Field Summary
Fields Modifier and Type Field Description IntModelInstanceinstanceFields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3b1, aux3b2, aux3b3, aux3b4, aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, cc, children, computed, coordinates, copy, ct, distToCamera, id, lastStateChangeTimeMs, localTransform, namekey, names, numChildren, octant, octantId, opacity, orientation, parent, parentkey, parentName, pos, posSph, ROOT_NAME, sg, size, translation, viewAngle, viewAngleApparent, visible -
Constructor Summary
Constructors Constructor Description StubModel(VRContext.VRDevice device, com.badlogic.gdx.graphics.g3d.Environment env) -
Method Summary
Modifier and Type Method Description voidaddToRenderLists(SceneGraphRenderer.RenderGroup rg)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.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.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, dispose, doneLoading, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getCt, getDelta, getDescription, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLineCopy, 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, insert, isCopy, isInRender, isInRender, isValidPosition, isVisibilityOn, isVisible, isVisible, isVisibleGroup, msSinceStateChange, mustAddToIndex, mustUpdatePosition, namesConcat, removeChild, removeFromIndex, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setDescription, setId, setLabelcolor, setLabelcolor, setName, setNamekey, setNames, setParent, setParentkey, setSize, setSize, setUp, setVisible, setVisibleGroup, shouldRender, toString, update, update, updateLocal, updateNames, updateNamesRecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
instance
-
-
Constructor Details
-
StubModel
-
-
Method Details
-
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:SceneGraphNodeReturns the current distance to the camera in internal units.- Specified by:
getDistToCamerain interfaceIRenderable- Overrides:
getDistToCamerain classSceneGraphNode- 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
-
addToRenderLists
Description copied from class:SceneGraphNodeAdds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.- Overrides:
addToRenderListsin classSceneGraphNode
-
render
- Specified by:
renderin interfaceIModelRenderable
-
renderOpaque
Occlusion rendering -
render
- 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
Description copied from class:SceneGraphNodeThis function updates all the local values before the localTransform is updated. Position, rotations and scale must be updated in here.- Overrides:
updateLocalValuesin 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:
getLineWidthin interfaceILineRenderable
-