|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvona.j3d.Widget
vona.j3d.AxesWidget
public class AxesWidget
A widget with an axes triad.
trackWidgetLength(float...) may be called to enable Widget.widgetLength
tracking, which causes the axes radius to track Widget.widgetLength*trackRadiusFactor.
Vertex array is 3 C3_V lines.
Copyright (C) 2008 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.
| Field Summary | |
|---|---|
static java.lang.String |
AXES_COLORS_STRING
a short human-readable string giving the mapping from axes to colors |
private static java.lang.String |
cvsid
|
static float |
DEF_RADIUS
default axes radius |
protected JOGLGeometry |
geometry
the geometry |
protected float |
radius
current radius |
protected float |
trackRadiusFactor
mapping from Widget.widgetLength to radius, NaN if none |
protected java.nio.FloatBuffer |
vertexBuffer
the vertex buffer |
| Constructor Summary | |
|---|---|
AxesWidget()
makes a new AxesWidget of default radius |
|
AxesWidget(float radius)
covers AxesWidget(), sets initial axes radius |
|
| Method Summary | |
|---|---|
boolean |
setRadius(float radius)
Set the radius. |
void |
trackWidgetLength(float... trackFactor)
set trackRadiusFactor, see class header doc |
protected void |
widgetLengthChanged()
implements Widget.widgetLength tracking, see class header doc |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String cvsid
public static final java.lang.String AXES_COLORS_STRING
public static final float DEF_RADIUS
protected float radius
protected float trackRadiusFactor
Widget.widgetLength to radius, NaN if none
protected final JOGLGeometry geometry
protected final java.nio.FloatBuffer vertexBuffer
| Constructor Detail |
|---|
public AxesWidget(float radius)
AxesWidget(), sets initial axes radius
public AxesWidget()
| Method Detail |
|---|
public boolean setRadius(float radius)
Set the radius.
radius - the new radius, ignored if NaN, otherwise must be
non-negative
public void trackWidgetLength(float... trackFactor)
trackRadiusFactor, see class header doc
trackWidgetLength in class Widgetprotected void widgetLengthChanged()
Widget.widgetLength tracking, see class header doc
widgetLengthChanged in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||