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 theSerializedDataProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaiasky.data.StreamingOctreeLoader
StreamingOctreeLoader.DaemonLoader
-
-
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, particles, PRELOAD_DEPTH, toLoadQueue, toUnloadQueue
-
-
Constructor Summary
Constructors Constructor Description OctreeGroupLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
loadOctant(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit)
Loads the data of the given octantprotected AbstractOctreeWrapper
loadOctreeData()
Loads the nodes and the octreevoid
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, touch, touchOctant, unloadOctant
-
-
-
-
Method Detail
-
loadOctreeData
protected AbstractOctreeWrapper loadOctreeData()
Description copied from class:StreamingOctreeLoader
Loads the nodes and the octree- Specified by:
loadOctreeData
in classStreamingOctreeLoader
- Returns:
-
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)
-
-