|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Object3D
A class to represent a 3D object
Field Summary | |
int |
count
int count purpose : total number of polygons in the object |
Polygon3D[] |
p
Polygon3D[] p purpose : store the polygons of the object |
Constructor Summary | |
Object3D()
Default constructor purpose : initialize an object with no polygons |
|
Object3D(java.io.BufferedReader data)
Constructor purpose : initialize an object by the data obtained from the input reader |
|
Object3D(int total)
Constructor purpose : initialize an object with some polygons |
|
Object3D(Object3D x)
Copy constructor purpose : initialize an object to an input Object3D x |
Method Summary | |
static Object3D |
transformObject(Matrix m,
Object3D obj)
purpose : multiply each point of the Object3D by a matrix |
static Object3D |
transformObjectQ(Matrix m,
Object3D obj)
purpose : multiply each point of the Object3D by a matrix |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public Polygon3D[] p
public int count
Constructor Detail |
public Object3D()
public Object3D(int total)
total
- total number of polygons in the objectpublic Object3D(java.io.BufferedReader data)
data
- BufferedReader which contains the data of the Object3Dpublic Object3D(Object3D x)
Method Detail |
public static Object3D transformObjectQ(Matrix m, Object3D obj)
m
- Matrixobj
- Object3Dpublic static Object3D transformObject(Matrix m, Object3D obj)
m
- Matrixobj
- Object3D
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |