Class OctNode

  • All Implemented Interfaces:
    java.util.Comparator

    public class OctNode
    extends java.lang.Object
    implements java.util.Comparator
    • Constructor Detail

      • OctNode

        public OctNode()
    • Method Detail

      • SetAllocator

        public static void SetAllocator​(int blockSize)
      • UseAllocator

        public static int UseAllocator()
      • dispose

        public void dispose()
      • setFullDepth

        public void setFullDepth​(int maxDepth)
      • initChildren

        public int initChildren()
      • Index

        public static final void Index​(int depth,
                                       int[] offset,
                                       short[] d,
                                       short[] off)
      • depthAndOffset

        public final void depthAndOffset​(int[] depth,
                                         int[] offset)
      • depth

        public final int depth()
      • DepthAndOffset

        public static final void DepthAndOffset​(long index,
                                                int[] depth,
                                                int[] offset)
      • Depth

        public static final int Depth​(long index)
      • centerAndWidth

        public final void centerAndWidth​(Point3D center,
                                         float[] width)
      • CenterAndWidth

        public static final void CenterAndWidth​(long index,
                                                Point3D center,
                                                float[] width)
      • maxDepth

        public final int maxDepth()
      • nodes

        public final int nodes()
      • leaves

        public final int leaves()
      • maxDepthLeaves

        public final int maxDepthLeaves​(int maxDepth)
      • root

        public final OctNode root()
      • printRange

        public void printRange()
      • __processNodeFaces

        public void __processNodeFaces​(OctNode node,
                                       NodeAdjacencyFunction F,
                                       int[] cIndex1,
                                       int[] cIndex2,
                                       int[] cIndex3,
                                       int[] cIndex4)
      • ProcessNodeAdjacentNodes

        public static void ProcessNodeAdjacentNodes​(int maxDepth,
                                                    OctNode node1,
                                                    int width1,
                                                    OctNode node2,
                                                    int width2,
                                                    NodeAdjacencyFunction F,
                                                    int processCurrent)
      • ProcessNodeAdjacentNodes

        public static void ProcessNodeAdjacentNodes​(int dx,
                                                    int dy,
                                                    int dz,
                                                    OctNode node1,
                                                    int radius1,
                                                    OctNode node2,
                                                    int radius2,
                                                    int width2,
                                                    NodeAdjacencyFunction F,
                                                    int processCurrent)
      • ProcessTerminatingNodeAdjacentNodes

        public static void ProcessTerminatingNodeAdjacentNodes​(int dx,
                                                               int dy,
                                                               int dz,
                                                               OctNode node1,
                                                               int radius1,
                                                               OctNode node2,
                                                               int radius2,
                                                               int width2,
                                                               TerminatingNodeAdjacencyFunction F,
                                                               int processCurrent)
      • ProcessPointAdjacentNodes

        public static void ProcessPointAdjacentNodes​(int maxDepth,
                                                     int[] c1,
                                                     OctNode node2,
                                                     int width2,
                                                     PointAdjacencyFunction F,
                                                     int processCurrent)
      • ProcessPointAdjacentNodes

        public static void ProcessPointAdjacentNodes​(int dx,
                                                     int dy,
                                                     int dz,
                                                     OctNode node2,
                                                     int radius2,
                                                     int width2,
                                                     PointAdjacencyFunction F,
                                                     int processCurrent)
      • ProcessFixedDepthNodeAdjacentNodes

        public static void ProcessFixedDepthNodeAdjacentNodes​(int maxDepth,
                                                              OctNode node1,
                                                              int width1,
                                                              OctNode node2,
                                                              int width2,
                                                              int depth,
                                                              NodeAdjacencyFunction F,
                                                              int processCurrent)
      • ProcessFixedDepthNodeAdjacentNodes

        public static void ProcessFixedDepthNodeAdjacentNodes​(int dx,
                                                              int dy,
                                                              int dz,
                                                              OctNode node1,
                                                              int radius1,
                                                              OctNode node2,
                                                              int radius2,
                                                              int width2,
                                                              int depth,
                                                              NodeAdjacencyFunction F,
                                                              int processCurrent)
      • ProcessMaxDepthNodeAdjacentNodes

        public static void ProcessMaxDepthNodeAdjacentNodes​(int maxDepth,
                                                            OctNode node1,
                                                            int width1,
                                                            OctNode node2,
                                                            int width2,
                                                            int depth,
                                                            NodeAdjacencyFunction F,
                                                            int processCurrent)
      • ProcessMaxDepthNodeAdjacentNodes

        public static void ProcessMaxDepthNodeAdjacentNodes​(int dx,
                                                            int dy,
                                                            int dz,
                                                            OctNode node1,
                                                            int radius1,
                                                            OctNode node2,
                                                            int radius2,
                                                            int width2,
                                                            int depth,
                                                            NodeAdjacencyFunction F,
                                                            int processCurrent)
      • __ProcessNodeAdjacentNodes

        public static void __ProcessNodeAdjacentNodes​(int dx,
                                                      int dy,
                                                      int dz,
                                                      OctNode node1,
                                                      int radius1,
                                                      OctNode node2,
                                                      int radius2,
                                                      int cWidth2,
                                                      NodeAdjacencyFunction F)
      • __ProcessTerminatingNodeAdjacentNodes

        public static void __ProcessTerminatingNodeAdjacentNodes​(int dx,
                                                                 int dy,
                                                                 int dz,
                                                                 OctNode node1,
                                                                 int radius1,
                                                                 OctNode node2,
                                                                 int radius2,
                                                                 int cWidth2,
                                                                 TerminatingNodeAdjacencyFunction F)
      • __ProcessPointAdjacentNodes

        public static void __ProcessPointAdjacentNodes​(int dx,
                                                       int dy,
                                                       int dz,
                                                       OctNode node2,
                                                       int radius2,
                                                       int cWidth2,
                                                       PointAdjacencyFunction F)
      • __ProcessFixedDepthNodeAdjacentNodes

        public static void __ProcessFixedDepthNodeAdjacentNodes​(int dx,
                                                                int dy,
                                                                int dz,
                                                                OctNode node1,
                                                                int radius1,
                                                                OctNode node2,
                                                                int radius2,
                                                                int cWidth2,
                                                                int depth,
                                                                NodeAdjacencyFunction F)
      • __ProcessMaxDepthNodeAdjacentNodes

        public static void __ProcessMaxDepthNodeAdjacentNodes​(int dx,
                                                              int dy,
                                                              int dz,
                                                              OctNode node1,
                                                              int radius1,
                                                              OctNode node2,
                                                              int radius2,
                                                              int cWidth2,
                                                              int depth,
                                                              NodeAdjacencyFunction F)
      • ChildOverlap

        public static final int ChildOverlap​(int dx,
                                             int dy,
                                             int dz,
                                             int d,
                                             int cRadius2)
      • CommonEdge

        public static int CommonEdge​(OctNode node1,
                                     int eIndex1,
                                     OctNode node2,
                                     int eIndex2)
      • CornerIndex

        public static int CornerIndex​(Point3D center,
                                      Point3D p)
      • CompareForwardDepths

        public static int CompareForwardDepths​(java.lang.Object v1,
                                               java.lang.Object v2)
      • CompareForwardPointerDepths

        public static int CompareForwardPointerDepths​(java.lang.Object v1,
                                                      java.lang.Object v2)
      • compare

        public int compare​(java.lang.Object v1,
                           java.lang.Object v2)
        Specified by:
        compare in interface java.util.Comparator
      • CompareBackwardDepths

        public static int CompareBackwardDepths​(java.lang.Object v1,
                                                java.lang.Object v2)
      • CompareBackwardPointerDepths

        public static int CompareBackwardPointerDepths​(java.lang.Object v1,
                                                       java.lang.Object v2)
      • Overlap2

        public static final boolean Overlap2​(int depth1,
                                             int[] offSet1,
                                             float multiplier1,
                                             int depth2,
                                             int[] offSet2,
                                             float multiplier2)
      • Overlap

        public static final boolean Overlap​(int c1,
                                            int c2,
                                            int c3,
                                            int dWidth)
      • faceNeighbor

        public OctNode faceNeighbor​(int faceIndex)
      • faceNeighbor

        public OctNode faceNeighbor​(int faceIndex,
                                    int forceChildren)
      • __faceNeighbor

        public OctNode __faceNeighbor​(int dir,
                                      int off,
                                      int forceChildren)
      • __faceNeighbor

        public final OctNode __faceNeighbor​(int dir,
                                            int off)
      • edgeNeighbor

        public OctNode edgeNeighbor​(int edgeIndex,
                                    int forceChildren)
      • edgeNeighbor

        public final OctNode edgeNeighbor​(int edgeIndex)
      • __edgeNeighbor

        public final OctNode __edgeNeighbor​(int[] o,
                                            int[] i,
                                            int[] idx)
      • __edgeNeighbor

        public OctNode __edgeNeighbor​(int[] o,
                                      int[] i,
                                      int[] idx,
                                      int forceChildren)
      • cornerNeighbor

        public final OctNode cornerNeighbor​(int cornerIndex)
      • cornerNeighbor

        public OctNode cornerNeighbor​(int cornerIndex,
                                      int forceChildren)
      • width

        public final int width​(int maxDepth)
      • centerIndex

        public final void centerIndex​(int maxDepth,
                                      int[] index)