public abstract class EdgedFacetedWidget extends FacetedWidget
A FacetedWidget
whose second geometry is an array of edges.
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 |
static int |
DASHED_PATTERN
edge line attributes pattern mask
|
static float[] |
DEF_EDGE_COLOR
default edge color
|
static float |
DEF_OFFSET_BIAS
default face offset bias
|
static float |
DEF_OFFSET_FACTOR
default face offset factor
|
static int |
DOTTED_PATTERN
edge line attributes pattern mask
|
javax.media.j3d.Appearance |
edgeAppearance
appearance of the edge
Widget.geometry |
javax.media.j3d.ColoringAttributes |
edgeColoringAttributes
coloring attributes for
edgeAppearance |
javax.media.j3d.LineAttributes |
edgeLineAttributes
line attributes for
edgeAppearance |
static int |
EDGES
index of the edge
Widget.geometry |
javax.media.j3d.TransparencyAttributes |
edgeTransparencyAttributes
transparency attributes for
edgeAppearance |
javax.media.j3d.PolygonAttributes |
facePolygonAttributes
polygon attributes for
FacetedWidget.faceAppearance |
static int |
SOLID_PATTERN
edge line attributes pattern mask
|
faceAppearance, faceMaterial, FACES, faceTransparencyAttributes
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 |
---|
EdgedFacetedWidget()
covers
EdgedFacetedWidget(int) , no other geometries |
EdgedFacetedWidget(int numOtherGeometries)
Construts a new EdgedFacetedWidget.
|
Modifier and Type | Method and Description |
---|---|
void |
enableEdges(boolean enable)
convenience method to set
Widget.enabled [EDGES ] |
javax.media.j3d.Appearance |
getEdgeAppearance()
convenience method to get
Widget.appearance [EDGES ] |
javax.media.j3d.Geometry |
getEdgeGeometry()
convenience method to get
Widget.geometry [EDGES ] |
void |
setAlpha(float alpha)
|
void |
setColor(java.awt.Color color)
covers
setColor(float...) |
void |
setColor(float... color)
|
void |
setEdgeAlpha(float alpha)
set the alpha (1 is opaque) of
edgeTransparencyAttributes |
void |
setEdgeColor(java.awt.Color color)
covers
setEdgeColor(float...) |
void |
setEdgeColor(float... color)
set the color in
edgeColoringAttributes |
void |
setEdgePattern(int pattern)
covers
setEdgePattern(int, int) , does not change scale |
void |
setEdgePattern(int pattern,
int scale)
set the
edgeLineAttributes pattern mask and scale |
void |
setEdgeWidth(float width)
set the
edgeLineAttributes line width |
void |
setFaceOffset(float offsetBias,
float offsetFactor)
Set the
facePolygonAttributes offset bias and factor. |
void |
setFaceOffsetBias(float offsetBias)
covers
setFaceOffset(float, float) , sets only bias |
void |
setFaceOffsetFactor(float offsetFactor)
covers
setFaceOffset(float, float) , sets only factor |
enableFaces, getFaceAppearance, getFaceGeometry, setFaceAlpha, setFaceColor, setFaceColor
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 EDGES
Widget.geometry
public static final float DEF_OFFSET_BIAS
public static final float DEF_OFFSET_FACTOR
public static final float[] DEF_EDGE_COLOR
public static final int DASHED_PATTERN
public static final int DOTTED_PATTERN
public static final int SOLID_PATTERN
public final javax.media.j3d.PolygonAttributes facePolygonAttributes
FacetedWidget.faceAppearance
public final javax.media.j3d.Appearance edgeAppearance
Widget.geometry
public final javax.media.j3d.ColoringAttributes edgeColoringAttributes
edgeAppearance
public final javax.media.j3d.TransparencyAttributes edgeTransparencyAttributes
edgeAppearance
public final javax.media.j3d.LineAttributes edgeLineAttributes
edgeAppearance
public EdgedFacetedWidget(int numOtherGeometries)
Construts a new EdgedFacetedWidget.
Sets Widget.appearance
for FacetedWidget.FACES
and EDGES
but
leaves initialization of Widget.geometry
to the caller.
public EdgedFacetedWidget()
EdgedFacetedWidget(int)
, no other geometriespublic void setEdgeColor(float... color)
edgeColoringAttributes
public void setEdgeColor(java.awt.Color color)
setEdgeColor(float...)
public void setEdgeAlpha(float alpha)
edgeTransparencyAttributes
public void setColor(float... color)
public void setColor(java.awt.Color color)
setColor(float...)
public void setAlpha(float alpha)
public void setFaceOffset(float offsetBias, float offsetFactor)
Set the facePolygonAttributes
offset bias and factor.
offsetBias
- the device units to add to the z-values of the face
polygon fragments, typical value 1, or NaN to leave unchangedoffsetFactor
- the device units to add to the z-values of the face
polygon fragments multiplied by their device-frame slope, typical value 1,
or NaN to leave unchangedpublic void setFaceOffsetBias(float offsetBias)
setFaceOffset(float, float)
, sets only biaspublic void setFaceOffsetFactor(float offsetFactor)
setFaceOffset(float, float)
, sets only factorpublic void setEdgeWidth(float width)
edgeLineAttributes
line widthpublic void setEdgePattern(int pattern, int scale)
edgeLineAttributes
pattern mask and scalepublic void setEdgePattern(int pattern)
setEdgePattern(int, int)
, does not change scalepublic void enableEdges(boolean enable)
Widget.enabled
[EDGES
]public javax.media.j3d.Geometry getEdgeGeometry()
Widget.geometry
[EDGES
]public javax.media.j3d.Appearance getEdgeAppearance()
Widget.appearance
[EDGES
]