|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.GroupNode
org.xith3d.scenegraph.Group
org.xith3d.scenegraph.OcTreeGroup
public class OcTreeGroup
Insert type comment here.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.GroupNode |
|---|
children, hostGroup, numChildren, totalNumChildren, totalNumShapes |
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
OcTreeGroup(float centerX,
float centerY,
float centerZ,
float size,
boolean useExtendedCells)
|
|
OcTreeGroup(float centerX,
float centerY,
float centerZ,
float sizeX,
float sizeY,
float sizeZ,
boolean useExtendedCells)
|
|
OcTreeGroup(org.openmali.vecmath2.Tuple3f center,
float size,
boolean useExtendedCells)
|
|
OcTreeGroup(org.openmali.vecmath2.Tuple3f center,
float sizeX,
float sizeY,
float sizeZ,
boolean useExtendedCells)
|
|
| Method Summary | |
|---|---|
void |
addChild(Node child,
int index)
Insert a child at the specified index. |
void |
cullSpecialNode(OcTreeGroup node,
boolean cullingSuppressed,
View view,
org.openmali.vecmath2.Point3f viewPosition,
org.openmali.spatial.bodies.Frustum frustum,
RenderBinProvider binProvider,
OpenGLCapabilities glCaps,
long frameId,
long nanoTime,
long nanoStep,
PickRay pickRay,
boolean isShadowPass,
FrustumCuller frustumCuller)
Thsi method is called by the FrustumCuller, if an instance of SpecialCullingNode
is detected. |
void |
dump()
Dumps this Group and it's children to stdout. |
int |
getMaxLevelForExtendedCells()
|
int |
getMaxOcTreeLevel()
|
int |
getMinNodesBeforeSplit()
|
void |
removeAllChildren()
Removes all the children of this group. |
Node |
removeChild(int index)
Remove the child at the specified index. |
void |
setMaxLevelForExtendedCells(int maxLevelForExtendedCells)
|
void |
setMinNodesBeforeSplit(int minNodesBeforeSplit)
|
void |
updateNodePosition(Node node)
This method must be called after a node's position or size has changed. |
| Methods inherited from class org.xith3d.scenegraph.Group |
|---|
moveTo, newInstance, traverse |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OcTreeGroup(float centerX,
float centerY,
float centerZ,
float sizeX,
float sizeY,
float sizeZ,
boolean useExtendedCells)
public OcTreeGroup(org.openmali.vecmath2.Tuple3f center,
float sizeX,
float sizeY,
float sizeZ,
boolean useExtendedCells)
public OcTreeGroup(float centerX,
float centerY,
float centerZ,
float size,
boolean useExtendedCells)
public OcTreeGroup(org.openmali.vecmath2.Tuple3f center,
float size,
boolean useExtendedCells)
| Method Detail |
|---|
public void setMinNodesBeforeSplit(int minNodesBeforeSplit)
public final int getMinNodesBeforeSplit()
public void setMaxLevelForExtendedCells(int maxLevelForExtendedCells)
public final int getMaxLevelForExtendedCells()
public final int getMaxOcTreeLevel()
public void addChild(Node child,
int index)
addChild in class GroupNodepublic Node removeChild(int index)
removeChild in class GroupNodepublic void removeAllChildren()
removeAllChildren in class GroupNodepublic final void updateNodePosition(Node node)
node - public final void dump()
GroupNode
dump in class GroupNode
public void cullSpecialNode(OcTreeGroup node,
boolean cullingSuppressed,
View view,
org.openmali.vecmath2.Point3f viewPosition,
org.openmali.spatial.bodies.Frustum frustum,
RenderBinProvider binProvider,
OpenGLCapabilities glCaps,
long frameId,
long nanoTime,
long nanoStep,
PickRay pickRay,
boolean isShadowPass,
FrustumCuller frustumCuller)
FrustumCuller, if an instance of SpecialCullingNode
is detected. The implementation must traverse the individual structure of this node
and call the FrustumCuller's FrustumCuller.cullNodeAtoms(Node, org.openmali.spatial.bodies.Classifier.Classification, boolean, View, Point3f, Frustum, RenderBinProvider, OpenGLCapabilities, long, long, long, PickRay, boolean)
method.
cullSpecialNode in interface SpecialCullingNode<OcTreeGroup>node - the node to be culledpickRay - if this is not null, it is a pick-cullingfrustumCuller - the FrustumCuller instance to call the FrustumCuller.cullNodeAtoms(Node, org.openmali.spatial.bodies.Classifier.Classification, boolean, View, Point3f, Frustum, RenderBinProvider, OpenGLCapabilities, long, long, long, PickRay, boolean) method on for each Node to be further traversed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||