Package gaiasky.data.group
Class OctreeGroupLoader
java.lang.Object
gaiasky.data.StreamingOctreeLoader
gaiasky.data.group.OctreeGroupLoader
- All Implemented Interfaces:
ISceneGraphLoader,IObserver
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanloadOctant(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit)Loads the data of the given octant.protected AbstractOctreeWrapperLoads the nodes and the octree.voidMethods 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
-
Constructor Details
-
OctreeGroupLoader
public OctreeGroupLoader()
-
-
Method Details
-
loadOctreeData
Description copied from class:StreamingOctreeLoaderLoads the nodes and the octree.- Specified by:
loadOctreeDatain classStreamingOctreeLoader
-
loadOctant
public boolean loadOctant(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit)Description copied from class:StreamingOctreeLoaderLoads the data of the given octant.- Specified by:
loadOctantin 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
-