public class JOGLEdgedFacetedWidget extends EdgedFacetedWidget
An EdgedFacetedWidget
with JOGLGeometry
edge and face
geometries.
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 |
protected JOGLGeometry |
edgeGeometry
the edge geometry
|
protected java.nio.FloatBuffer |
edgeVertices
vertex buffer from
edgeGeometry |
protected JOGLGeometry |
faceGeometry
the face geometry
|
protected java.nio.FloatBuffer |
faceVertices
vertex buffer from
faceGeometry |
static int |
X
component index
|
static int |
Y
component index
|
static int |
Z
component index
|
DASHED_PATTERN, DEF_EDGE_COLOR, DEF_OFFSET_BIAS, DEF_OFFSET_FACTOR, DOTTED_PATTERN, edgeAppearance, edgeColoringAttributes, edgeLineAttributes, EDGES, edgeTransparencyAttributes, facePolygonAttributes, SOLID_PATTERN
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 |
---|
JOGLEdgedFacetedWidget(int faceNumVertices,
int faceNumArrays,
int edgeNumVertices,
int edgeNumArrays)
Covers
JOGLEdgedFacetedWidget(int, JOGLGeometry.Format, int,
int, int, JOGLGeometry.Format, int, int) , uses JOGLGeometry.Format.F_N_V face format, JOGLGeometry.Format.F_V
edge format, GL_TRIANGLE_STRIP face mode, and GL_LINE_STRIP edge mode. |
JOGLEdgedFacetedWidget(int faceMode,
int faceNumVertices,
int faceNumArrays,
int edgeMode,
int edgeNumVertices,
int edgeNumArrays)
Covers
JOGLEdgedFacetedWidget(int, JOGLGeometry.Format, int,
int, int, JOGLGeometry.Format, int, int) , uses JOGLGeometry.Format.F_N_V face format and JOGLGeometry.Format.F_V
edge format. |
JOGLEdgedFacetedWidget(int faceMode,
JOGLGeometry.Format faceFormat,
int faceNumVertices,
int faceNumArrays,
int edgeMode,
JOGLGeometry.Format edgeFormat,
int edgeNumVertices,
int edgeNumArrays)
constructs a new JOGLEdgedFacetedWidget with the given params
|
Modifier and Type | Method and Description |
---|---|
protected float |
gevc(int i,
int c)
get positional component c of edge vertex i
|
protected float |
gfnc(int i,
int c)
get normal component c of face vertex i
|
protected float |
gfvc(int i,
int c)
get positional component c of face vertex i
|
protected void |
sev(int i,
float x,
float y,
float z)
set edge vertex i positional components
|
protected void |
sevc(int i,
int c,
float v)
set edge vertex i positional component c
|
protected void |
sfn(int i,
float x,
float y,
float z)
set face vertex i normal components
|
protected void |
sfnc(int i,
int c,
float v)
set face vertex i normal component c
|
protected void |
sfv(int i,
float x,
float y,
float z)
set face vertex i positional components
|
protected void |
sfvc(int i,
int c,
float v)
set face vertex i positional component c
|
enableEdges, getEdgeAppearance, getEdgeGeometry, setAlpha, setColor, setColor, setEdgeAlpha, setEdgeColor, setEdgeColor, setEdgePattern, setEdgePattern, setEdgeWidth, setFaceOffset, setFaceOffsetBias, setFaceOffsetFactor
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 X
public static final int Y
public static final int Z
protected final JOGLGeometry faceGeometry
protected final JOGLGeometry edgeGeometry
protected final java.nio.FloatBuffer faceVertices
faceGeometry
protected final java.nio.FloatBuffer edgeVertices
edgeGeometry
public JOGLEdgedFacetedWidget(int faceMode, JOGLGeometry.Format faceFormat, int faceNumVertices, int faceNumArrays, int edgeMode, JOGLGeometry.Format edgeFormat, int edgeNumVertices, int edgeNumArrays)
public JOGLEdgedFacetedWidget(int faceMode, int faceNumVertices, int faceNumArrays, int edgeMode, int edgeNumVertices, int edgeNumArrays)
Covers JOGLEdgedFacetedWidget(int, JOGLGeometry.Format, int,
int, int, JOGLGeometry.Format, int, int)
, uses JOGLGeometry.Format.F_N_V
face format and JOGLGeometry.Format.F_V
edge format.
public JOGLEdgedFacetedWidget(int faceNumVertices, int faceNumArrays, int edgeNumVertices, int edgeNumArrays)
Covers JOGLEdgedFacetedWidget(int, JOGLGeometry.Format, int,
int, int, JOGLGeometry.Format, int, int)
, uses JOGLGeometry.Format.F_N_V
face format, JOGLGeometry.Format.F_V
edge format, GL_TRIANGLE_STRIP
face mode, and GL_LINE_STRIP
edge mode.
protected void sfn(int i, float x, float y, float z)
protected void sfnc(int i, int c, float v)
protected void sfv(int i, float x, float y, float z)
protected void sfvc(int i, int c, float v)
protected void sev(int i, float x, float y, float z)
protected void sevc(int i, int c, float v)
protected float gfnc(int i, int c)
protected float gfvc(int i, int c)
protected float gevc(int i, int c)