Package gaiasky.scenegraph.octreewrapper
Class AbstractOctreeWrapper
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.FadeNode
gaiasky.scenegraph.octreewrapper.AbstractOctreeWrapper
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IFadeObject,IStarContainer,IVisibilitySwitch,IPosition
- Direct Known Subclasses:
OctreeWrapper
Abstract Octree wrapper with the common parts of the regular Octree wrapper
and the concurrent one
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIs this just a copy?protected intThe number of objects added to render in the last frameprotected List<SceneGraphNode>Roulette list with the objects to processFields inherited from class gaiasky.scenegraph.FadeNode
catalogInfo, currentDistance, highlighted, hlallvisible, hlc, hlcma, hlcmi, hlcmmax, hlcmmin, hlplain, initialUpdate, inSceneGraph, labelPosition, pointscaling, positionFields inherited from class gaiasky.scenegraph.SceneGraphNode
B31, B32, B33, B34, cc, children, computed, coordinates, 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
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractOctreeWrapper(String parentName, OctreeNode root) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SceneGraphNode child, OctreeNode octant) voidadd(List<SceneGraphNode> children, OctreeNode octant) voidaddToRenderLists(ICamera camera, OctreeNode octant) booleancontainsObject(SceneGraphNode object) voiddispose()<T extends SceneGraphNode>
TGets a copy of this object but does not copy its parent or childrenintvoidhighlight(boolean hl, float[] color, boolean allVisible) Highlight using a plain colorvoidhighlight(boolean hl, int cmi, IAttribute cma, double cmmin, double cmmax, boolean allVisible) Highlight using a colormapvoidAn octree wrapper has as 'scene graph children' all the elements contained in the octree, even though it acts as a hub that decides which are processed and which are not.voidremoveParenthood(SceneGraphNode child) voidupdate(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity) voidupdateLocal(ITimeFrameProvider time, ICamera camera) Updates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.protected abstract voidupdateOctreeObjects(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera) Runs the update on all the observed and selected octree objects.Methods inherited from class gaiasky.scenegraph.FadeNode
addToRenderLists, doneLoading, getBaseOpacity, getCatalogInfo, getFadeIn, getFadeOut, getHlcma, getHlcmi, getHlcmmax, getHlcmmin, getPointscaling, initializeCatalogInfo, isHighlighted, isHlAllVisible, isHlplain, setCataloginfo, setCatalogInfo, setCatalogInfoBare, setFadein, setFadeIn, setFadeout, setFadeOut, setLabelposition, setPointscaling, setPosition, setPosition, setPositionobjectname, setSize, setSize, setUp, updateLocalValues, updateOpacityMethods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getComponentType, getCoordinates, getCt, getDelta, getDescription, getDistToCamera, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLabelcolor, getLineCopy, getLocalizedName, getName, getNames, getNext, getNode, getNode, getOctant, getOpacity, getOrientation, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRadius, getRoot, getSceneGraphDepth, getSize, getUnrotatedPos, getVelocity, getViewAngle, getViewAngleApparent, getVisibilityOpacityFactor, hasCt, hasName, hasName, 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, setVisible, setVisible, setVisibleGroup, shouldRender, toString, update, updateLocalizedName, updateLocalizedNameRecursive
-
Field Details
-
root
-
roulette
Roulette list with the objects to process -
parenthood
-
lastNumberObjects
protected int lastNumberObjectsThe number of objects added to render in the last frame -
copy
protected boolean copyIs this just a copy?
-
-
Constructor Details
-
AbstractOctreeWrapper
protected AbstractOctreeWrapper() -
AbstractOctreeWrapper
-
-
Method Details
-
initialize
public void initialize()An octree wrapper has as 'scene graph children' all the elements contained in the octree, even though it acts as a hub that decides which are processed and which are not.- Overrides:
initializein classSceneGraphNode
-
containsObject
-
add
-
add
-
removeParenthood
-
update
public void update(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera, float opacity) -
updateLocal
Description copied from class:SceneGraphNodeUpdates the transform matrix with the transformations that will apply to the children and the local transform matrix with the transformations that will apply only to this object.- Overrides:
updateLocalin classFadeNode
-
updateOctreeObjects
protected abstract void updateOctreeObjects(ITimeFrameProvider time, Vector3b parentTransform, ICamera camera) Runs the update on all the observed and selected octree objects. -
addToRenderLists
-
getStarCount
public int getStarCount()- Specified by:
getStarCountin interfaceIStarContainer- Overrides:
getStarCountin classSceneGraphNode
-
highlight
public void highlight(boolean hl, float[] color, boolean allVisible) Description copied from class:FadeNodeHighlight using a plain color -
highlight
public void highlight(boolean hl, int cmi, IAttribute cma, double cmmin, double cmmax, boolean allVisible) Description copied from class:FadeNodeHighlight using a colormap -
getSimpleCopy
Gets a copy of this object but does not copy its parent or children- Overrides:
getSimpleCopyin classSceneGraphNode- Returns:
- The copied object
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classSceneGraphNode
-