net.jbeans.j3d.modeler.geometry
Class QuadModeler

java.lang.Object
  extended bynet.jbeans.j3d.modeler.geometry.GeometryModeler
      extended bynet.jbeans.j3d.modeler.geometry.SurfaceModeler
          extended bynet.jbeans.j3d.modeler.geometry.QuadModeler
All Implemented Interfaces:
javax.media.j3d.GeometryUpdater, java.io.Serializable
Direct Known Subclasses:
QuadSurfaceModeler

public class QuadModeler
extends SurfaceModeler

QuadModeler generates a suface geometry from the specified data.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
SurfaceModeler, Serialized Form

Field Summary
static int AC
           
static int CC
           
static int NC
           
static int OP
           
static int TC
           
static int XC
           
static int YC
           
static int ZC
           
 
Fields inherited from class net.jbeans.j3d.modeler.geometry.SurfaceModeler
ADVANCE_NORMAL, alpha, color, colorDim, colorIndices, colors3f, colors4f, computeNormalsOnUpdate, contourCounts, coordDim, coordinateIndices, coords3f, creaseAngle, entryArray, essentials, geomInfo, hasColors, hasTCoords, lookupTable, NAIVE_NORMAL, normal, normalDim, normalgen, normalIndices, normals3f, primitive, sStripifier, sTriangulator, stripCounts, tCoordDim, tCoords, texCoordIndices, texCoords2f, texCoords3f, tmp, totalIndex, x, y, z
 
Fields inherited from class net.jbeans.j3d.modeler.geometry.GeometryModeler
bounds, center, geometryListeners, geoms, SCALAR_MODE_DEFAULT, SCALAR_MODE_USE_CELL_DATA, SCALAR_MODE_USE_POINT_DATA, scalarMode
 
Constructor Summary
QuadModeler()
           
 
Method Summary
protected  boolean checkSize()
           
 boolean getGenerateTextureCoords()
           
protected  void initGeometry()
           
protected  void initialize()
           
protected  void modelGeometry()
          Construct a javax.media.j3d.GeometryArray object from quad data.
protected  boolean needsModel()
           
 void setColors(double[] color)
           
protected  void setData()
           
 void setGenerateTextureCoords(boolean b)
           
 void setNormals(double[][] normal)
           
 void setTextureCoords(double[][] tCoords)
           
 void setTransparency(double[] alpha)
           
protected  void setupStripCounts()
           
 void setXCoordinates(double[] x)
           
 void setYCoordinates(double[] y)
           
 void setZCoordinates(double[] z)
           
 void test()
           
 
Methods inherited from class net.jbeans.j3d.modeler.geometry.SurfaceModeler
geomCalcTriNormals, getComputeNormalsOnUpdate, getCreaseAngle, getLookupTable, getPrimitive, isComputeNormalsOnUpdate, isDataReady, setColorIndices, setColorLookupTable, setColorTable, setComputeNormalsOnUpdate, setContourCounts, setCoordinateIndices, setCreaseAngle, setNormalIndices, setPrimitive, setStripCounts, setTextureCoordinateIndices, setupGeometryInfo, setValueAt, updateData
 
Methods inherited from class net.jbeans.j3d.modeler.geometry.GeometryModeler
addGeometry, addGeometry, addGeometryListener, clearGeometry, getBounds, getBounds, getCenter, getGeometries, getGeometry, getLength, model, removeGeometryListener, setGeometry, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XC

public static final int XC
See Also:
Constant Field Values

YC

public static final int YC
See Also:
Constant Field Values

ZC

public static final int ZC
See Also:
Constant Field Values

CC

public static final int CC
See Also:
Constant Field Values

OP

public static final int OP
See Also:
Constant Field Values

NC

public static final int NC
See Also:
Constant Field Values

TC

public static final int TC
See Also:
Constant Field Values

AC

public static final int AC
See Also:
Constant Field Values
Constructor Detail

QuadModeler

public QuadModeler()
Method Detail

initialize

protected void initialize()
Overrides:
initialize in class SurfaceModeler

initGeometry

protected void initGeometry()
Specified by:
initGeometry in class SurfaceModeler

setGenerateTextureCoords

public void setGenerateTextureCoords(boolean b)

getGenerateTextureCoords

public boolean getGenerateTextureCoords()

setXCoordinates

public void setXCoordinates(double[] x)
Overrides:
setXCoordinates in class SurfaceModeler

setYCoordinates

public void setYCoordinates(double[] y)
Overrides:
setYCoordinates in class SurfaceModeler

setZCoordinates

public void setZCoordinates(double[] z)
Overrides:
setZCoordinates in class SurfaceModeler

setColors

public void setColors(double[] color)
Overrides:
setColors in class SurfaceModeler

setTransparency

public void setTransparency(double[] alpha)
Overrides:
setTransparency in class SurfaceModeler

setNormals

public void setNormals(double[][] normal)
Overrides:
setNormals in class SurfaceModeler

setTextureCoords

public void setTextureCoords(double[][] tCoords)
Overrides:
setTextureCoords in class SurfaceModeler

checkSize

protected boolean checkSize()
Specified by:
checkSize in class SurfaceModeler

needsModel

protected boolean needsModel()
Specified by:
needsModel in class SurfaceModeler

setData

protected void setData()
Specified by:
setData in class SurfaceModeler

modelGeometry

protected void modelGeometry()
Construct a javax.media.j3d.GeometryArray object from quad data.

Overrides:
modelGeometry in class SurfaceModeler

setupStripCounts

protected void setupStripCounts()

test

public void test()


Copyright © 1995-2004 net.jbeans. All Rights Reserved.