render
Class InteractiveMesh
java.lang.Object
|
+--render.Geometry
|
+--render.InteractiveMesh
- Direct Known Subclasses:
- InteractiveBuffer, InteractiveRenderer
- public class InteractiveMesh
- extends Geometry
Fields inherited from class render.Geometry |
Bezier, BezierInverse, BSpline, CatmullRom, child, faces, globalMatrix, Hermite, material, matrix, modified, name, noiseOrigin, pullMask, pullWeight, refVertices, verticedepth, vertices |
Method Summary |
void |
animate(double time)
|
boolean |
find(Geometry level,
Geometry g)
|
int[] |
getXY(double[] xyz)
Converts relative coordinates to world coordinates |
double[] |
getXYZ(double[] wp)
Converts world coordinates to relative coordinates |
boolean |
isSelected(Geometry g)
Returns true if Geometry g is selected |
boolean |
mouseDown(java.awt.Event evt,
double[] xyz,
Geometry g)
|
boolean |
mouseDrag(java.awt.Event evt,
double[] xyz)
|
boolean |
mouseUp(java.awt.Event evt,
double[] xyz)
|
Methods inherited from class render.Geometry |
add, add, addImprovedNoise, addNoise, addNoise, ball, bezeledCube, child, computedMeshNormals, computeMeshNormals, computePolyhedronNormals, computeSurfaceNormals, contains, copyVertex, copyVertices, copyVertices, cube, cylinder, delete, delete, disk, displaceByImprovedNoise, extrusion, gear, gearDisk, gearTube, gearTube, getMatrix, getMeshCols, getMeshRows, getOffset, getParent, globe, globe, isDoubleSided, lathe, latheGen, makeCircle, makeCurve, makeGear, makePath, mesh, patch, pill, pill, polygon, pull, pull, recomputeMeshNormals, setDoubleSided, setMaterial, setMatrix, setOffset, sew, sew, subdivide, superquadric, superquadric, torus, transform, tube, tube, wire, wire |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InteractiveMesh
public InteractiveMesh()
InteractiveMesh
public InteractiveMesh(int m,
int n,
int w,
int h,
int[] pix)
- Constructor
- Parameters:
m
- number of rows in the meshn
- number of columns in the meshw
- width of the mesh in pixelsh
- height of the mesh in pixels
getXYZ
public double[] getXYZ(double[] wp)
- Converts world coordinates to relative coordinates
- Parameters:
wp
-
- Returns:
getXY
public int[] getXY(double[] xyz)
- Converts relative coordinates to world coordinates
- Parameters:
xyz
-
- Returns:
isSelected
public boolean isSelected(Geometry g)
- Returns true if Geometry g is selected
- Parameters:
g
-
- Returns:
find
public boolean find(Geometry level,
Geometry g)
animate
public void animate(double time)
mouseUp
public boolean mouseUp(java.awt.Event evt,
double[] xyz)
mouseDown
public boolean mouseDown(java.awt.Event evt,
double[] xyz,
Geometry g)
mouseDrag
public boolean mouseDrag(java.awt.Event evt,
double[] xyz)