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
,IStarContainer
,IPosition
public class GenericCatalog extends FadeNode
Represents a generic catalog of entities. This entity loads catalog data given a provider and a file, initializes them and adds them as children.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaiasky.scenegraph.SceneGraphNode
SceneGraphNode.TLV3, SceneGraphNode.TLV3D
-
-
Field Summary
Fields Modifier and Type Field Description protected com.badlogic.gdx.utils.Array<? extends SceneGraphNode>
clusters
protected java.lang.String
datafile
Path of data fileprotected java.lang.String
description
protected uk.ac.starlink.util.DataSource
ds
STIL data source, if no data file existsprotected java.lang.String
provider
Fully qualified name of data provider class-
Fields inherited from class gaiasky.scenegraph.FadeNode
catalogInfo, currentDistance, highlighted, hlc, hlcma, hlcmi, hlcmmax, hlcmmin, hlplain, inSceneGraph, labelcolor, labelPosition
-
Fields inherited from class gaiasky.scenegraph.SceneGraphNode
aux3d1, aux3d2, aux3d3, aux3d4, aux3f1, aux3f2, aux3f3, aux3f4, cc, children, computed, coordinates, copy, ct, distToCamera, id, localTransform, namekey, names, numChildren, octant, octantId, opacity, orientation, parent, parentkey, parentName, pos, posSph, ROOT_NAME, sg, size, translation, viewAngle, viewAngleApparent
-
-
Constructor Summary
Constructors Constructor Description GenericCatalog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doneLoading(com.badlogic.gdx.assets.AssetManager manager)
java.lang.String
getDatafile()
java.lang.String
getDescription()
java.lang.String
getProvider()
void
initialize()
void
initialize(boolean dataLoad, boolean createCatalogInfo)
void
setDatafile(java.lang.String datafile)
void
setDataSource(uk.ac.starlink.util.DataSource ds)
void
setDescription(java.lang.String description)
void
setProvider(java.lang.String provider)
void
setUp()
-
Methods inherited from class gaiasky.scenegraph.FadeNode
addToRenderLists, getBaseOpacity, getCatalogInfo, getHlcma, getHlcmi, getHlcmmax, getHlcmmin, highlight, highlight, isHighlighted, isHlplain, isVisible, setCataloginfo, setCatalogInfo, setCatalogInfoBare, setFadein, setFadeout, setLabelcolor, setLabelcolor, setLabelposition, setPosition, setPositionobjectname, setSize, setSize, setVisible, 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, getChildrenByType, getComponentType, getCt, getDelta, getDistToCamera, getFirstStarAncestor, getHeight, getHeight, getHeight, getHeightScale, getId, getLineCopy, getName, getNames, getNext, getNode, getNode, getOctant, getOpacity, getOrientation, getPos, getPosition, getPosition, getPosSph, getPredictedPosition, getRadius, getRoot, getSceneGraphDepth, getSimpleCopy, getSize, getStarCount, getUnrotatedPos, getVelocity, getViewAngle, getViewAngleApparent, hasName, hasName, insert, insert, isCopy, isInRender, isInRender, isValidPosition, isVisibilityOn, mustAddToIndex, mustUpdatePosition, namesConcat, removeChild, removeFromIndex, removeFromRender, render2DLabel, render2DLabel, render2DLabel, render2DLabel, render3DLabel, render3DLabel, returnToPool, setColor, setColor, setComputedFlag, setCoordinates, setCt, setCt, setId, setName, setNamekey, setNames, setParent, setParentkey, toString, update, updateNames, updateNamesRec
-
-
-
-
Field Detail
-
description
protected java.lang.String description
-
provider
protected java.lang.String provider
Fully qualified name of data provider class
-
datafile
protected java.lang.String datafile
Path of data file
-
ds
protected uk.ac.starlink.util.DataSource ds
STIL data source, if no data file exists
-
clusters
protected com.badlogic.gdx.utils.Array<? extends SceneGraphNode> clusters
-
-
Method Detail
-
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
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getProvider
public java.lang.String getProvider()
-
setProvider
public void setProvider(java.lang.String provider)
-
getDatafile
public java.lang.String getDatafile()
-
setDatafile
public void setDatafile(java.lang.String datafile)
-
setDataSource
public void setDataSource(uk.ac.starlink.util.DataSource ds)
-
-