Class Octree


  • public class Octree
    extends Object
    • Constructor Detail

      • Octree

        public Octree​(int maxDepth,
                      int size)
    • Method Detail

      • initArchitecture

        public void initArchitecture()
      • addNode

        public void addNode​(NodeModel node)
      • removeNode

        public void removeNode​(NodeModel node)
      • repositionNodes

        public boolean repositionNodes()
      • isEmpty

        public boolean isEmpty()
      • clear

        public void clear()
      • getNodeIterator

        public Iterator<NodeModel> getNodeIterator​(boolean onlyVisible)
      • addLeaf

        protected int addLeaf​(Octant octant)
      • removeLeaf

        protected void removeLeaf​(Octant octant)
      • ensureArraySize

        private void ensureArraySize​(int index)
      • subdivide

        private void subdivide​(Octant octant)
      • clampPosition

        private void clampPosition​(NodeModel nodeModel)
      • refreshLimits

        private void refreshLimits()
      • updateVisibleOctant

        public void updateVisibleOctant​(com.jogamp.opengl.GL2 gl)
      • updateSelectedOctant

        public void updateSelectedOctant​(com.jogamp.opengl.GL2 gl,
                                         com.jogamp.opengl.glu.GLU glu,
                                         float[] mousePosition,
                                         float[] pickRectangle)
      • displayOctree

        public void displayOctree​(com.jogamp.opengl.GL2 gl,
                                  com.jogamp.opengl.glu.GLU glu)