Search in sources :

Example 6 with CatalogInfo

use of gaiasky.util.CatalogInfo in project gaiasky by langurmonkey.

the class FadeNode method setCataloginfo.

public void setCataloginfo(Map<String, String> map) {
    String name = map.get("name");
    String desc = map.get("description");
    String source = map.get("source");
    CatalogInfoSource type = map.get("type") != null ? CatalogInfoSource.valueOf(map.get("type")) : CatalogInfoSource.INTERNAL;
    float size = map.get("size") != null ? Parser.parseFloat(map.get("size")) : 1;
    long sizeBytes = map.get("sizebytes") != null ? Parser.parseLong(map.get("sizebytes")) : -1;
    long nObjects = map.get("nobjects") != null ? Parser.parseLong(map.get("nobjects")) : -1;
    this.catalogInfo = new CatalogInfo(name, desc, source, type, size, this);
    this.catalogInfo.sizeBytes = sizeBytes;
    this.catalogInfo.nParticles = nObjects;
}
Also used : CatalogInfoSource(gaiasky.util.CatalogInfo.CatalogInfoSource) CatalogInfo(gaiasky.util.CatalogInfo)

Aggregations

CatalogInfo (gaiasky.util.CatalogInfo)6 SceneGraphNode (gaiasky.scenegraph.SceneGraphNode)2 ISceneGraphLoader (gaiasky.data.ISceneGraphLoader)1 MetadataBinaryIO (gaiasky.data.octreegen.MetadataBinaryIO)1 IRenderable (gaiasky.render.IRenderable)1 IFocus (gaiasky.scenegraph.IFocus)1 Orbit (gaiasky.scenegraph.Orbit)1 OrbitalElementsGroup (gaiasky.scenegraph.OrbitalElementsGroup)1 ParticleGroup (gaiasky.scenegraph.ParticleGroup)1 OrbitComponent (gaiasky.scenegraph.component.OrbitComponent)1 AbstractOctreeWrapper (gaiasky.scenegraph.octreewrapper.AbstractOctreeWrapper)1 OctreeWrapper (gaiasky.scenegraph.octreewrapper.OctreeWrapper)1 CatalogInfoSource (gaiasky.util.CatalogInfo.CatalogInfoSource)1 ExtShaderProgram (gaiasky.util.gdx.shader.ExtShaderProgram)1 OctreeNode (gaiasky.util.tree.OctreeNode)1 IOException (java.io.IOException)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1