Package au.edu.unsw.cse
Class Cube
java.lang.Object
au.edu.unsw.cse.Object3dAdaptor
au.edu.unsw.cse.Cube
- All Implemented Interfaces:
Object3d
public class Cube extends Object3dAdaptor
-
Field Summary
Fields inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, firstFrame, lastFrame
-
Constructor Summary
-
Method Summary
Methods inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, getColorIndex, getFirstFrame, getLastFrame, getSelectFrame, id, select, setCentre, setFirstFrame, setLastFrame, toVRML, toVRMLBody, visible, vrmlPROTO, vrmlPROTOBody, vrmlPROTOExtraFields, vrmlPROTOFields, vrmlPROTOINBody, vrmlPROTOINFields, vrmlPROTOMaterials, vrmlPROTOName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Cube
Create a cube with centre at specified point and with given radius -
Cube
Create a cube with centre at specified point and with same radius as last one
-
-
Method Details
-
depthBias
Description copied from interface:Object3d
Depth bias - used to adjust depth in depth sort so that front facing faces appear in front of back faces- Specified by:
depthBias
in interfaceObject3d
- Overrides:
depthBias
in classObject3dAdaptor
-
render
render the cube, given a 3D view- Specified by:
render
in interfaceObject3d
- Overrides:
render
in classObject3dAdaptor
-
transform
public void transform(au.edu.unsw.cse.Matrix3D T)compute new position of cube- Specified by:
transform
in interfaceObject3d
- Overrides:
transform
in classObject3dAdaptor
-