Package gaiasky.scenegraph
Class GenericCatalog
java.lang.Object
gaiasky.scenegraph.SceneGraphNode
gaiasky.scenegraph.FadeNode
gaiasky.scenegraph.GenericCatalog
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IFadeObject
,IStarContainer
,IVisibilitySwitch
,IPosition
- Direct Known Subclasses:
MeshObject
,OrbitalElementsGroup
Represents a generic catalog of objects.
This entity loads catalog data given a provider and a file, initializes the objects
and adds them as children.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Path of data fileprotected String
protected uk.ac.starlink.util.DataSource
STIL data source, if no data file existsprotected com.badlogic.gdx.utils.Array<? extends SceneGraphNode>
protected String
Fully qualified name of data provider classFields inherited from class gaiasky.scenegraph.FadeNode
catalogInfo, currentDistance, highlighted, hlallvisible, hlc, hlcma, hlcmi, hlcmmax, hlcmmin, hlplain, initialUpdate, inSceneGraph, labelPosition, pointscaling, position
Fields 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
doneLoading
(com.badlogic.gdx.assets.AssetManager manager) void
void
initialize
(boolean dataLoad, boolean createCatalogInfo) void
setDatafile
(String datafile) void
setDataSource
(uk.ac.starlink.util.DataSource ds) void
setDescription
(String description) void
setProvider
(String provider) void
setUp
(ISceneGraph sceneGraph) Methods inherited from class gaiasky.scenegraph.FadeNode
addToRenderLists, getBaseOpacity, getCatalogInfo, getFadeIn, getFadeOut, getHlcma, getHlcmi, getHlcmmax, getHlcmmin, getPointscaling, highlight, highlight, initializeCatalogInfo, isHighlighted, isHlAllVisible, isHlplain, setCataloginfo, setCatalogInfo, setCatalogInfoBare, setFadein, setFadeIn, setFadeout, setFadeOut, setLabelposition, setPointscaling, setPosition, setPosition, setPositionobjectname, setSize, setSize, update, updateLocal, updateLocalValues, updateOpacity
Methods inherited from class gaiasky.scenegraph.SceneGraphNode
add, add, addChild, addChild, addFocusableObjects, addName, addNodes, addToIndex, addToRender, computeFuturePosition, dispose, getAbsoluteOrientation, getAbsolutePosition, getAbsolutePosition, getAggregatedChildren, getAlpha, getChildByName, getChildByNameAndType, getChildrenByComponentType, getChildrenByType, getColor, getComponentType, getCoordinates, getCt, getDelta, 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, getSimpleCopy, getSize, getStarCount, 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, setForcelabel, setForceLabel, setForceLabel, setId, setLabelcolor, setLabelcolor, setLabelcolor, setName, setName, setNames, setParent, setPos, setVisible, setVisible, setVisibleGroup, shouldRender, toString, update, updateLocalizedName, updateLocalizedNameRecursive
-
Field Details
-
description
-
provider
Fully qualified name of data provider class -
datafile
Path of data file -
ds
protected uk.ac.starlink.util.DataSource dsSTIL data source, if no data file exists -
objects
-
-
Constructor Details
-
GenericCatalog
public GenericCatalog()
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classSceneGraphNode
-
initialize
public void initialize(boolean dataLoad, boolean createCatalogInfo) -
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager) - Overrides:
doneLoading
in classFadeNode
-
setUp
-
getDescription
- Specified by:
getDescription
in interfaceIVisibilitySwitch
- Overrides:
getDescription
in classSceneGraphNode
-
setDescription
- Specified by:
setDescription
in interfaceIVisibilitySwitch
- Overrides:
setDescription
in classSceneGraphNode
-
getProvider
-
setProvider
-
getDatafile
-
setDatafile
-
setDataSource
public void setDataSource(uk.ac.starlink.util.DataSource ds)
-