j3d.org Code

org.j3d.renderer.java3d.geom
Class Axis

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Group
              extended byorg.j3d.renderer.java3d.geom.Axis

public class Axis
extends javax.media.j3d.Group

Representation of a set of axis around the coordinates.

Each axis is color coordinated and the length can be adjusted.

X axis: Red
Y axis: Green
Z axis: Blue

Version:
$Revision: 1.1 $
Author:
Jason Taylor, based on the work by Justin Couch

Field Summary
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
Axis()
          Create a default axis object with each item length 5 from the origin
Axis(float length)
          Create an axis object with the given axis length from the origin.
Axis(float length, float transparency)
          Create an axis object with the given axis length from the origin.
 
Methods inherited from class javax.media.j3d.Group
addChild, cloneNode, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis

public Axis()
Create a default axis object with each item length 5 from the origin


Axis

public Axis(float length)
Create an axis object with the given axis length from the origin.

Parameters:
length - The length to use. Must be positive

Axis

public Axis(float length,
            float transparency)
Create an axis object with the given axis length from the origin. The transparency of the axis can be controlled through the use of the second parameter. It follows the standard alpha values. A value of 0 is not visible, a value of 1 is completely visible.

Parameters:
length - The length to use. Must be positive
transparency - The amount of alpha channel in the axis

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org