public class SegmentWidget extends CurveWidget
A line segment.
Vertex array is one line strip of two C3_V vertices.
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 |
appearance, DASHED_PATTERN, DEF_COLOR, DEF_END_COORD, DEF_START_COORD, DOTTED_PATTERN, endColor, endCoord, geometry, lineAttributes, ORIGIN, SOLID_PATTERN, startColor, startCoord, tempV3, trackLengthFactor, vertexBuffer, X, Y, Z
alpha, autoSetBoundingSpheres, boundingSphereCenter, boundingSphereCenterInView, boundingSphereRadius, boundingSphereRadiusInView, dbgEnabled, dbgNormalsGeometry, dbgNormalsVertices, dbgSpheresGeometry, dbgSpheresVertices, DEF_DBG_NORMAL_LENGTH, DEF_WIDGET_LENGTH, enabled, numGeometries, primitiveIterator, propertyMap, rx, vertexAccessor, widgetLength
Constructor and Description |
---|
SegmentWidget()
Covers
SegmentWidget(float[], float[], float[], float[]) , uses
default coords and color. |
SegmentWidget(float[] startCoord,
float[] endCoord)
Covers
SegmentWidget(float[], float[], float[], float[]) , uses
default color. |
SegmentWidget(float[] startCoord,
float[] endCoord,
float[] startColor,
float[] endColor)
Creates a new SegmentWidget from startCoord to
endCoord.
|
Modifier and Type | Method and Description |
---|---|
protected void |
update()
recompute coords, colors, and
CurveWidget.recomputeBoundingSpheres() |
different, endDiffChanged, extentsChanged, isDegenerate, lengthChanged, recomputeBoundingSphere, recomputeBoundingSpheres, setColor, setColor, setColors, setColors, setEnd, setEndColor, setEndColor, setEndDiff, setExtents, setLength, setLinePattern, setLinePattern, setLineWidth, setStart, setStartColor, setStartColor, trackWidgetLength, widgetLengthChanged
cons, countGeometryArrays, disableBoundingSphere, disableBoundingSpheres, dump, dump, enableDBGGeometry, enableGeometry, ensureBoundingSpheresInView, getAppearance, getBoundingSphereCenter, getBoundingSphereRadius, getGeometry, getProperty, getWidget, getWidgetAlpha, hasBoundingSphere, hasBoundingSphereInView, hasProperty, indexOf, populateFrom, recomputeBoundingSphere, removeDBGNormals, removeDBGSpheres, removeGeometry, removeGeometry, removeProperty, replaceAppearanceWithClone, replaceGeometryWithClone, scaleWidget, setAppearance, setBoundingSphereCenter, setBoundingSphereRadius, setGeometry, setGeometryAlpha, setGeometryAlpha, setGeometryAndAppearance, setProperty, setProperty, setWidgetAlpha, setWidgetLength, updateAllDBGNormals, updateAllDBGNormals, updateAllDBGSpheres, updateDBGNormals, updateDBGNormals, updateDBGSpheres, updateExistingDBGNormals, updateExistingDBGSpheres
private static final java.lang.String cvsid
public SegmentWidget(float[] startCoord, float[] endCoord, float[] startColor, float[] endColor)
Creates a new SegmentWidget from startCoord to endCoord.
startCoord
- the coords of the start vertex, or null to use CurveWidget.DEF_START_COORD
endCoord
- the coords of the end vertex, or null to use CurveWidget.DEF_END_COORD
startColor
- the color at the start vertex, or null to use CurveWidget.DEF_COLOR
endColor
- the color at the end vertex, or null to use CurveWidget.DEF_COLOR
public SegmentWidget(float[] startCoord, float[] endCoord)
Covers SegmentWidget(float[], float[], float[], float[])
, uses
default color.
public SegmentWidget()
Covers SegmentWidget(float[], float[], float[], float[])
, uses
default coords and color.
protected void update()
CurveWidget.recomputeBoundingSpheres()
update
in class CurveWidget