Package gaiasky.data.group
Class OctreeGroupLoader
java.lang.Object
gaiasky.data.StreamingOctreeLoader
gaiasky.data.group.OctreeGroupLoader
- All Implemented Interfaces:
ISceneGraphLoader
,IObserver
public class OctreeGroupLoader extends StreamingOctreeLoader
Implements the loading and streaming of octree nodes from files. This version
loads star groups using
BinaryDataProvider
.-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.data.StreamingOctreeLoader
StreamingOctreeLoader.OctreeLoaderThread
-
Field Summary
Fields inherited from class gaiasky.data.StreamingOctreeLoader
daemon, description, idxLoadedIds, instance, lastQueueClearMs, LOAD_QUEUE_MAX_SIZE, loadedIds, loadedObjects, loadingPaused, MAX_LOAD_CHUNK, maxLoadedIds, maxLoadedStars, metadata, MIN_QUEUE_CLEAR_MS, name, nLoadedStars, params, particles, PRELOAD_DEPTH, toLoadQueue, toUnloadQueue
-
Constructor Summary
Constructors Constructor Description OctreeGroupLoader()
-
Method Summary
Modifier and Type Method Description boolean
loadOctant(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit)
Loads the data of the given octant.protected AbstractOctreeWrapper
loadOctreeData()
Loads the nodes and the octree.void
setEpoch(java.lang.Double epoch)
Methods inherited from class gaiasky.data.StreamingOctreeLoader
abortCurrentLoading, addLoadedInfo, addToQueue, clearQueue, emptyLoadQueue, flushLoadedIds, flushLoadQueue, getLoadQueueSize, getNLoadedStars, initialize, initialize, loadData, loadLod, loadOctant, loadOctants, notify, queue, setDescription, setName, setParams, touch, touchOctant, unloadOctant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OctreeGroupLoader
public OctreeGroupLoader()
-
-
Method Details
-
loadOctreeData
Description copied from class:StreamingOctreeLoader
Loads the nodes and the octree.- Specified by:
loadOctreeData
in classStreamingOctreeLoader
-
loadOctant
public boolean loadOctant(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit)Description copied from class:StreamingOctreeLoader
Loads the data of the given octant.- Specified by:
loadOctant
in classStreamingOctreeLoader
- Parameters:
octant
- The octant to load.octreeWrapper
- The octree wrapper.fullInit
- Whether to fully initialise the objects (on-demand load) or not (startup)- Returns:
- True if the octant was loaded, false otherwise
-
setEpoch
public void setEpoch(java.lang.Double epoch)
-