public abstract class FacetedWidget extends Widget
A Widget
whose first geometry is an array of polygon faces.
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.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
cvsid |
javax.media.j3d.Appearance |
faceAppearance
appearance of the face
Widget.geometry |
javax.media.j3d.Material |
faceMaterial
material for
faceAppearance |
static int |
FACES
index of the face
Widget.geometry |
javax.media.j3d.TransparencyAttributes |
faceTransparencyAttributes
transparency attributes for
faceAppearance |
alpha, appearance, autoSetBoundingSpheres, boundingSphereCenter, boundingSphereCenterInView, boundingSphereRadius, boundingSphereRadiusInView, dbgEnabled, dbgNormalsGeometry, dbgNormalsVertices, dbgSpheresGeometry, dbgSpheresVertices, DEF_DBG_NORMAL_LENGTH, DEF_WIDGET_LENGTH, enabled, geometry, numGeometries, primitiveIterator, propertyMap, rx, vertexAccessor, widgetLength
Constructor and Description |
---|
FacetedWidget()
covers
FacetedWidget(int) , no other geometries |
FacetedWidget(int numOtherGeometries)
Construts a new FacetedWidget.
|
Modifier and Type | Method and Description |
---|---|
void |
enableFaces(boolean enable)
convenience method to set
Widget.enabled [FACES ] |
javax.media.j3d.Appearance |
getFaceAppearance()
convenience method to get
Widget.appearance [FACES ] |
javax.media.j3d.Geometry |
getFaceGeometry()
convenience method to get
Widget.geometry [FACES ] |
void |
setFaceAlpha(float alpha)
set the alpha (1 is opaque) of
faceTransparencyAttributes |
void |
setFaceColor(java.awt.Color color)
covers
setFaceColor(float...) |
void |
setFaceColor(float... color)
set the ambient and diffuse components of
faceMaterial |
cons, countGeometryArrays, disableBoundingSphere, disableBoundingSpheres, dump, dump, enableDBGGeometry, enableGeometry, ensureBoundingSpheresInView, getAppearance, getBoundingSphereCenter, getBoundingSphereRadius, getGeometry, getProperty, getWidget, getWidgetAlpha, hasBoundingSphere, hasBoundingSphereInView, hasProperty, indexOf, populateFrom, recomputeBoundingSphere, recomputeBoundingSpheres, removeDBGNormals, removeDBGSpheres, removeGeometry, removeGeometry, removeProperty, replaceAppearanceWithClone, replaceGeometryWithClone, scaleWidget, setAppearance, setBoundingSphereCenter, setBoundingSphereRadius, setGeometry, setGeometryAlpha, setGeometryAlpha, setGeometryAndAppearance, setProperty, setProperty, setWidgetAlpha, setWidgetLength, trackWidgetLength, updateAllDBGNormals, updateAllDBGNormals, updateAllDBGSpheres, updateDBGNormals, updateDBGNormals, updateDBGSpheres, updateExistingDBGNormals, updateExistingDBGSpheres, widgetLengthChanged
private static final java.lang.String cvsid
public static final int FACES
Widget.geometry
public final javax.media.j3d.Appearance faceAppearance
Widget.geometry
public final javax.media.j3d.Material faceMaterial
faceAppearance
public final javax.media.j3d.TransparencyAttributes faceTransparencyAttributes
faceAppearance
public FacetedWidget(int numOtherGeometries)
Construts a new FacetedWidget.
Sets Widget.appearance
[FACES
] but leaves initialization of
Widget.geometry
[FACES
] to the caller.
public FacetedWidget()
FacetedWidget(int)
, no other geometriespublic void setFaceColor(float... color)
faceMaterial
public void setFaceColor(java.awt.Color color)
setFaceColor(float...)
public void setFaceAlpha(float alpha)
faceTransparencyAttributes
public void enableFaces(boolean enable)
Widget.enabled
[FACES
]public javax.media.j3d.Geometry getFaceGeometry()
Widget.geometry
[FACES
]public javax.media.j3d.Appearance getFaceAppearance()
Widget.appearance
[FACES
]