|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Sphere
org.openmali.spatial.bounds.BoundingSphere
org.openmali.spatial.octree.OcNode<T>
public class OcNode<T>
A node used to define an object stored in the octree. This is not optimized for triangle level octrees, as the overhead per node is substantial.
Copyright: Copyright (c) 2000,2001
Company: Teseract Software, LLP
| Field Summary | |
|---|---|
protected OcNode<T> |
next
|
| Constructor Summary | |
|---|---|
OcNode()
|
|
OcNode(float x,
float y,
float z,
float r,
T o)
|
|
OcNode(Point3f c,
float r,
T o)
Builds an OcNode with the specified center, radius and object. |
|
OcNode(T o,
VertexContainer source)
Builds an OcNode for the specified object. |
|
| Method Summary | |
|---|---|
T |
getObject()
|
OcCell<T> |
getParent()
|
void |
recompute()
Recompute the bounds for the object and place it in the spatial container in the correct place. |
void |
remove()
Removes the node from its spatial container. |
| Methods inherited from class org.openmali.spatial.bounds.BoundingSphere |
|---|
closestIntersection, compute, compute, compute, getMaxDistance, getMaxSquaredDistance, getType, intersects, intersects, intersects, intersects, intersects, intersects, newBoundingSphere, newBoundingSphere, newBoundingSphere, set, set, toString, transform, transform |
| Methods inherited from class org.openmali.spatial.bodies.Sphere |
|---|
combine, combine, combine, combine, combine, contains, contains, containsPlus, containsXYPlus, getCenter, getCenter, getCenterX, getCenterY, getCenterZ, getRadius, getRadiusSquared, setCenter, setCenter, setRadius |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.spatial.bounds.Bounds |
|---|
combine, combine, combine, contains, contains, getCenter |
| Methods inherited from interface org.openmali.spatial.bodies.Body |
|---|
combine, combine |
| Field Detail |
|---|
protected OcNode<T> next
| Constructor Detail |
|---|
public OcNode()
public OcNode(float x,
float y,
float z,
float r,
T o)
public OcNode(Point3f c,
float r,
T o)
c - r - o -
public OcNode(T o,
VertexContainer source)
o - source - | Method Detail |
|---|
public OcCell<T> getParent()
public T getObject()
getObject in interface SpatialHandle<T>public void remove()
remove in interface SpatialHandle<T>public void recompute()
recompute in interface SpatialHandle<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||