Module org.arakhne.afc.gis.giscore
Package org.arakhne.afc.gis.tree
Interface GISTreeSetNodeFactory<P extends GISPrimitive,N extends TreeNode<P,N>>
-
- Type Parameters:
P
- is the type of the user data inside the node.N
- is the type of the nodes to create.
- All Known Implementing Classes:
MapElementTreeSet
,MapPolylineTreeSet
,StandardGISTreeSet
,WeakGISTreeSet
interface GISTreeSetNodeFactory<P extends GISPrimitive,N extends TreeNode<P,N>>
Builder for GIS tree nodes.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description N
newNode(IcosepQuadTreeNode.IcosepQuadTreeZone zone, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Create a root node with the given element inside.N
newRootNode(P element)
Create a root node with the given element inside.N
newRootNode(P element, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Create a root node with the given element inside.
-
-
-
Method Detail
-
newRootNode
@Pure N newRootNode(P element)
Create a root node with the given element inside.- Parameters:
element
- is the element to initially put inside the node.- Returns:
- the node
-
newRootNode
@Pure N newRootNode(P element, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Create a root node with the given element inside.- Parameters:
element
- is the element to initially put inside the node.boundsX
- is the bounds of the scene.boundsY
- is the bounds of the scene.boundsWidth
- is the bounds of the scene.boundsHeight
- is the bounds of the scene.- Returns:
- the node
-
newNode
@Pure N newNode(IcosepQuadTreeNode.IcosepQuadTreeZone zone, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Create a root node with the given element inside.- Parameters:
zone
- is the zone enclosed by this node.boundsX
- is the bounds of the scene.boundsY
- is the bounds of the scene.boundsWidth
- is the bounds of the scene.boundsHeight
- is the bounds of the scene.- Returns:
- the node
-
-