Class RegionBSPTree2S.RegionNode2S
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.AbstractNode<P,N>
-
- org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.AbstractRegionNode<Point2S,RegionBSPTree2S.RegionNode2S>
-
- org.apache.commons.geometry.spherical.twod.RegionBSPTree2S.RegionNode2S
-
- All Implemented Interfaces:
BSPSubtree<Point2S,RegionBSPTree2S.RegionNode2S>
,BSPTree.Node<Point2S,RegionBSPTree2S.RegionNode2S>
- Enclosing class:
- RegionBSPTree2S
public static final class RegionBSPTree2S.RegionNode2S extends AbstractRegionBSPTree.AbstractRegionNode<Point2S,RegionBSPTree2S.RegionNode2S>
BSP tree node for two dimensional spherical space.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RegionNode2S(AbstractBSPTree<Point2S,RegionBSPTree2S.RegionNode2S> tree)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvexArea2S
getNodeRegion()
Get the region represented by this node.protected RegionBSPTree2S.RegionNode2S
getSelf()
Get a reference to the current instance, cast to type N.-
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.AbstractRegionNode
clearCut, cut, cut, getCutBoundary, getLocation, getTree, insertCut, insertCut, isInside, isOutside, nodeInvalidated, setLocation, setLocationValue, toString
-
Methods inherited from class org.apache.commons.geometry.core.partitioning.bsp.AbstractBSPTree.AbstractNode
accept, checkValid, count, depth, getCut, getCutHyperplane, getMinus, getParent, getPlus, height, isInternal, isLeaf, isMinus, isPlus, makeRoot, nodes, setSubtree, trim
-
-
-
-
Constructor Detail
-
RegionNode2S
private RegionNode2S(AbstractBSPTree<Point2S,RegionBSPTree2S.RegionNode2S> tree)
Simple constructor.- Parameters:
tree
- tree owning the instance.
-
-
Method Detail
-
getNodeRegion
public ConvexArea2S getNodeRegion()
Get the region represented by this node. The returned region contains the entire area contained in this node, regardless of the attributes of any child nodes.- Returns:
- the region represented by this node
-
getSelf
protected RegionBSPTree2S.RegionNode2S getSelf()
Get a reference to the current instance, cast to type N.- Specified by:
getSelf
in classAbstractBSPTree.AbstractNode<Point2S,RegionBSPTree2S.RegionNode2S>
- Returns:
- a reference to the current instance, as type N.
-
-