Class

com.spark3d.spatialPartitioning

Octree

Related Doc: package spatialPartitioning

Permalink

class Octree extends Serializable

Octree is a 3D extension of Quadtree where in at each stage node (Cuboid) (instead of rectangle in Quadtree case) is split into 8 sub nodes.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Octree
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Octree(box: BoxEnvelope, level: Int, maxItemsPerNode: Int = 5, maxLevel: Int = 10)

    Permalink

    box

    BoxEnvelope (boundary) of the tree rooted at this node

    level

    The depth of the node compared to the root of original tree

    maxItemsPerNode

    maximum number of elements per node

    maxLevel

    maximum level upto which tree can grow

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CHILD_L_NE: Int

    Permalink
  5. val CHILD_L_NW: Int

    Permalink
  6. val CHILD_L_SE: Int

    Permalink
  7. val CHILD_L_SW: Int

    Permalink
  8. val CHILD_U_NE: Int

    Permalink
  9. val CHILD_U_NW: Int

    Permalink
  10. val CHILD_U_SE: Int

    Permalink
  11. val CHILD_U_SW: Int

    Permalink
  12. val SELF_NODE: Int

    Permalink
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def assignPartitionIDs(): Unit

    Permalink

    Assigns the partition ID to each of the leaf node.

  15. val box: BoxEnvelope

    Permalink

    BoxEnvelope (boundary) of the tree rooted at this node

  16. var children: Array[Octree]

    Permalink
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def forceGrowTree(level: Int): Unit

    Permalink

    Forcefully make the tree grow till the level specified

    Forcefully make the tree grow till the level specified

    level

    depth upto which the tree is to be grown

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getElements(element: BoxEnvelope): ListBuffer[BoxEnvelope]

    Permalink

    Get all the elements contained by the input Shape3D's bounding box.

    Get all the elements contained by the input Shape3D's bounding box.

    element

    bounding box of the Shape3D for which the elements search is to be performed

    returns

    list of elements contained by the bounding box of the Shape3D

  24. def getElements(obj: Shape3D): ListBuffer[BoxEnvelope]

    Permalink

    Get all the elements contained by the input Shape3D.

    Get all the elements contained by the input Shape3D. A search is done on the basis of the bounding box of the input Shape3D.

    obj

    input Shape3D for which the elements search is to be performed

    returns

    list of elements contained by the input Shape3D

  25. def getLeafNodes(): ListBuffer[BoxEnvelope]

    Permalink

    Get all the leaf nodes of the tree.

    Get all the leaf nodes of the tree.

    returns

    a list of the leaf nodes

  26. def getMatchedLeaves(obj: BoxEnvelope): ListBuffer[BoxEnvelope]

    Permalink

    get all the leaf nodes, which intersect, contain or are contained by the input BoxEnvelope

    get all the leaf nodes, which intersect, contain or are contained by the input BoxEnvelope

    obj

    Input object to be checked for the match

    returns

    list of leafNodes which match the conditions

  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. def insertElement(element: BoxEnvelope): Unit

    Permalink

    Insert an input object defined by its bounding box into the octree

  29. def insertElement(obj: Shape3D): Unit

    Permalink

    Insert an input object into the Octree

    Insert an input object into the Octree

    obj

    Shape3D object to be inserted

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def isLeaf(): Boolean

    Permalink

    Check if this node is a leaf node or not based its children

    Check if this node is a leaf node or not based its children

    returns

    true if its a leaf node, false otherwise

  32. val level: Int

    Permalink

    The depth of the node compared to the root of original tree

  33. val maxItemsPerNode: Int

    Permalink

    maximum number of elements per node

  34. val maxLevel: Int

    Permalink

    maximum level upto which tree can grow

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped