public class J3DAxesShape
extends javax.media.j3d.Shape3D
A Java3D shape displaying the 3D axes at the origin.
The axes are displayed as line segments extending from the origin in the direction of the positive axis. The x axis is red, the y axis is green, and the z axis is blue.
Copyright (C) 2007 Marsette A. Vona, III
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AXES_COLORS_STRING
a short human-readable string giving the mapping from axes to colors
|
protected javax.media.j3d.BoundingSphere |
bounds
the bounds
|
private static java.lang.String |
cvsid |
static float |
DEF_RADIUS
default axes radius
|
javax.media.j3d.GeometryArray |
geometry
the axes geometry
|
protected float |
radius
the current radius
|
protected float[] |
vertices
the vertex components array
|
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Constructor and Description |
---|
J3DAxesShape()
covers
J3DAxesShape(float) , uses DEF_RADIUS |
J3DAxesShape(float radius)
make a new axes shape that extends r from origin
|
Modifier and Type | Method and Description |
---|---|
float |
getRadius()
get the current radius
|
void |
setRadius(float radius)
Mutate the radius of this axes shape.
|
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
private static final java.lang.String cvsid
public static final java.lang.String AXES_COLORS_STRING
public final javax.media.j3d.GeometryArray geometry
public static final float DEF_RADIUS
protected float radius
protected float[] vertices
protected javax.media.j3d.BoundingSphere bounds
public J3DAxesShape(float radius)
public J3DAxesShape()
J3DAxesShape(float)
, uses DEF_RADIUS