edu.mines.jtk.sgl
Class AxisAlignedQuad

java.lang.Object
  extended by edu.mines.jtk.sgl.Node
      extended by edu.mines.jtk.sgl.Group
          extended by edu.mines.jtk.sgl.AxisAlignedQuad
All Implemented Interfaces:
Dragable, Selectable

public class AxisAlignedQuad
extends Group
implements Selectable, Dragable

An axis-aligned quad has one frame that contains one or more panels. The quad is constrained to lie within a box specified by two corner points.

Version:
2006.06.01
Author:
Dave Hale, Colorado School of Mines

Constructor Summary
AxisAlignedQuad(Axis axis, Point3 qa, Point3 qb)
          Constructs an axis-aligned quad with specified axis and corner points.
 
Method Summary
 void drag(DragContext dc)
          During dragging, this method is called when the mouse moves.
 void dragBegin(DragContext dc)
          Begins dragging.
 void dragEnd(DragContext dc)
          Ends dragging.
 AxisAlignedFrame getFrame()
          Gets the frame for this quad.
protected  void selectedChanged()
          This method is called when the selected state of this node has changed.
 
Methods inherited from class edu.mines.jtk.sgl.Group
addChild, computeBoundingSphere, countChildren, cull, draw, getAttributeBits, getChildren, pick, removeChild
 
Methods inherited from class edu.mines.jtk.sgl.Node
countParents, cullApply, cullBegin, cullEnd, dirtyBoundingSphere, dirtyDraw, drawApply, drawBegin, drawEnd, getBoundingSphere, getParents, getWorld, isSelected, pickApply, pickBegin, pickEnd, setSelected, setStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.mines.jtk.sgl.Selectable
isSelected, setSelected
 

Constructor Detail

AxisAlignedQuad

public AxisAlignedQuad(Axis axis,
                       Point3 qa,
                       Point3 qb)
Constructs an axis-aligned quad with specified axis and corner points.

Parameters:
axis - the axis orthogonal to the plane of this quad.
qa - a corner point.
qb - a corner point.
Method Detail

getFrame

public AxisAlignedFrame getFrame()
Gets the frame for this quad.

Returns:
the frame.

dragBegin

public void dragBegin(DragContext dc)
Description copied from interface: Dragable
Begins dragging.

Specified by:
dragBegin in interface Dragable
Parameters:
dc - the drag context.

drag

public void drag(DragContext dc)
Description copied from interface: Dragable
During dragging, this method is called when the mouse moves.

Specified by:
drag in interface Dragable
Parameters:
dc - the drag context.

dragEnd

public void dragEnd(DragContext dc)
Description copied from interface: Dragable
Ends dragging.

Specified by:
dragEnd in interface Dragable
Parameters:
dc - the drag context.

selectedChanged

protected void selectedChanged()
Description copied from class: Node
This method is called when the selected state of this node has changed. Classes that extend this abstract base class typically override this method to alter this node's appearance when selected or deselected.

This implementation does nothing.

Overrides:
selectedChanged in class Node