|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.swing.Model3D
class Model3D
Field Summary | |
---|---|
(package private) int[] |
con
|
(package private) Matrix3D |
mat
|
(package private) int |
maxcon
|
(package private) int |
maxvert
|
(package private) int |
ncon
|
(package private) int |
nvert
|
(package private) boolean |
transformed
|
(package private) int[] |
tvert
|
(package private) float[] |
vert
|
(package private) float |
xmax
|
(package private) float |
xmin
|
(package private) float |
ymax
|
(package private) float |
ymin
|
(package private) float |
zmax
|
(package private) float |
zmin
|
Constructor Summary | |
---|---|
Model3D()
|
Method Summary | |
---|---|
(package private) void |
addLine(int p1,
int p2)
Add a line from vertex p1 to vertex p2 |
(package private) int |
addVertex(float x,
float y,
float z)
Add a vertex to this model |
(package private) void |
compress()
eliminate duplicate lines |
(package private) void |
findBoundingBox()
Find the bounding box of this model |
(package private) void |
paint(java.awt.Graphics g)
|
(package private) void |
transform()
Transform all the points in this model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[] vert
int[] tvert
int nvert
int maxvert
int[] con
int ncon
int maxcon
boolean transformed
Matrix3D mat
float xmin
float xmax
float ymin
float ymax
float zmin
float zmax
Constructor Detail |
---|
Model3D()
Method Detail |
---|
int addVertex(float x, float y, float z)
void addLine(int p1, int p2)
void transform()
void compress()
void paint(java.awt.Graphics g)
void findBoundingBox()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |