edu.byu.phun
Class Axes

java.lang.Object
  extended by edu.byu.phun.PropertyContainer
      extended by edu.byu.phun.Obj3D
          extended by edu.byu.phun.GroupObj
              extended by edu.byu.phun.Axes

public class Axes
extends GroupObj

This will display a trio of coordinate axes centered at the origin. This is an object just like any other object and is planted in the scene in the same way. These axes can be transformed by all of the methods available to an Obj3D.

The default length of the axis arms is 1.0 to the base of the arrow heads. There is a constructor that will create longer axis arms.


Constructor Summary
Axes()
          Creates an Axes object where the arms are of length 1.0.
Axes(double len)
          Creates an Axes object with arms of the specified length.
 
Method Summary
 
Methods inherited from class edu.byu.phun.GroupObj
addPart, getPart, getPart, nParts, partNames, removePart, removePart, setColor, setPart
 
Methods inherited from class edu.byu.phun.Obj3D
getBounds, getColor, getLocation, getName, getRotX, getRotY, getRotZ, getScaleX, getScaleY, getScaleZ, getShininess, setColor, setLocation, setLocation, setName, setRotX, setRotY, setRotZ, setScale, setScale, setScaleX, setScaleY, setScaleZ, setShininess, toString
 
Methods inherited from class edu.byu.phun.PropertyContainer
getPropertyC, getPropertyD, getPropertyP, getPropertyS, propertyIsColor, propertyIsDouble, propertyIsPoint, propertyIsSettable, propertyIsString, propertyNames, setProperty, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Axes

public Axes()
Creates an Axes object where the arms are of length 1.0.


Axes

public Axes(double len)
Creates an Axes object with arms of the specified length. This is helpful for establishing dimensions in a scene.

Parameters:
len - the length from the origin to base of the arrow head on each axis.