|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.sgl.TraversalContext
edu.mines.jtk.sgl.TransformContext
edu.mines.jtk.sgl.CullContext
public class CullContext
A context for view frustum culling.
A cull context has a draw list, in which it accumulates copies of its node stack. Typically, a leaf node copies the node stack to the draw list when its bounding sphere intersects the view frustum of the cull context.
| Constructor Summary | |
|---|---|
CullContext(ViewCanvas canvas)
Constructs a transform context for the specified view canvas. |
|
| Method Summary | |
|---|---|
void |
appendNodes()
Appends the node stack to the draw list in this context. |
boolean |
frustumIntersectsSphereOf(Node node)
Determines whether the view frustrum intersects the bounding sphere of the specified node. |
DrawList |
getDrawList()
Gets the draw list accumulated in this context. |
void |
popLocalToWorld()
Restores the most recently saved (pushed) local-to-world transform. |
void |
popNode()
Restores the most recently saved (pushed) node. |
void |
pushLocalToWorld(Matrix44 transform)
Saves the local-to-world transform before appending a transform. |
void |
pushNode(Node node)
Saves the current node, and then makes the specified node current. |
| Methods inherited from class edu.mines.jtk.sgl.TransformContext |
|---|
getCubeToLocal, getCubeToPixel, getCubeToView, getCubeToWorld, getLocalToCube, getLocalToPixel, getLocalToView, getLocalToWorld, getPixelToCube, getPixelToLocal, getPixelToView, getPixelToWorld, getView, getViewCanvas, getViewToCube, getViewToLocal, getViewToPixel, getViewToWorld, getWorld, getWorldToCube, getWorldToLocal, getWorldToPixel, getWorldToView |
| Methods inherited from class edu.mines.jtk.sgl.TraversalContext |
|---|
countNodes, getNode, getNode, getNodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CullContext(ViewCanvas canvas)
canvas - the view canvas.| Method Detail |
|---|
public boolean frustumIntersectsSphereOf(Node node)
node - the node with a bounding sphere.
public void appendNodes()
public DrawList getDrawList()
public void pushNode(Node node)
pushNode in class TraversalContextnode - the new current node.public void popNode()
popNode in class TraversalContextpublic void pushLocalToWorld(Matrix44 transform)
pushLocalToWorld in class TransformContexttransform - the transform to append.public void popLocalToWorld()
popLocalToWorld in class TransformContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||