|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.sgl.Node
edu.mines.jtk.sgl.AxisAlignedPanel
public abstract class AxisAlignedPanel
An axis-aligned panel is a special child of an axis-aligned frame. Nodes that draw themselves in an axis-aligned frame typically extend this abstract class, which handles some node responsibilities, such as picking and computing the node's bounding sphere.
| Constructor Summary | |
|---|---|
AxisAlignedPanel()
Constructs a panel with null frame. |
|
AxisAlignedPanel(AxisAlignedFrame frame)
Constructs a panel with specified frame. |
|
| Method Summary | |
|---|---|
protected BoundingSphere |
computeBoundingSphere(boolean finite)
Computes the bounding sphere for this panel. |
BoxConstraint |
getBoxConstraint()
Gets the box constraint for this panel. |
AxisAlignedFrame |
getFrame()
Gets the frame for this panel. |
void |
pick(PickContext pc)
Picks this panel. |
void |
setFrame(AxisAlignedFrame frame)
Sets the frame for this panel. |
| Methods inherited from class edu.mines.jtk.sgl.Node |
|---|
countParents, cull, cullApply, cullBegin, cullEnd, dirtyBoundingSphere, dirtyDraw, draw, drawApply, drawBegin, drawEnd, getAttributeBits, getBoundingSphere, getParents, getWorld, isSelected, pickApply, pickBegin, pickEnd, selectedChanged, setSelected, setStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxisAlignedPanel()
public AxisAlignedPanel(AxisAlignedFrame frame)
frame - the frame.| Method Detail |
|---|
public AxisAlignedFrame getFrame()
public void setFrame(AxisAlignedFrame frame)
frame - the frame; null, if none.public BoxConstraint getBoxConstraint()
public void pick(PickContext pc)
Panels that extend this class and that precisely fill their quad frame when drawn may simply inherit this implementation.
pick in class Nodepc - the pick context.protected BoundingSphere computeBoundingSphere(boolean finite)
Panels that extend this class typically inherit this implementation, but may of course override it as necessary.
computeBoundingSphere in class Nodefinite - true, to force bounding sphere to be finite.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||