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 TypeMethodDescriptionboolean
loadOctant
(OctreeNode octant, AbstractOctreeWrapper octreeWrapper, boolean fullInit) Loads the data of the given octant.protected AbstractOctreeWrapper
Loads the nodes and the octree.void
void
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
-
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
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
-
setEpoch
-