Package gaiasky.data
Class SceneGraphImplementationProvider
java.lang.Object
gaiasky.data.SceneGraphImplementationProvider
- Direct Known Subclasses:
DesktopSceneGraphImplementationProvider
Provides the scene graph implementation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ISceneGraph
getImplementation(boolean multithreading, boolean hasOctree, boolean hasStarGroup, int maxThreads, int numNodes)
Gets the right scene graph implementation for the given information about it.static void
initialize(SceneGraphImplementationProvider provider)
-
Field Details
-
provider
-
-
Constructor Details
-
SceneGraphImplementationProvider
public SceneGraphImplementationProvider()
-
-
Method Details
-
initialize
-
getImplementation
public abstract ISceneGraph getImplementation(boolean multithreading, boolean hasOctree, boolean hasStarGroup, int maxThreads, int numNodes)Gets the right scene graph implementation for the given information about it.- Parameters:
multithreading
- Multithreading on?hasOctree
- Does it have an octree?hasStarGroup
- Does it contain a star group?maxThreads
- Max number of threads.numNodes
- Initial number of nodes.- Returns:
- The scene graph.
-