Package au.edu.unsw.cse
Class Object3dList
java.lang.Object
au.edu.unsw.cse.Object3dAdaptor
au.edu.unsw.cse.Object3dList
- All Implemented Interfaces:
Object3d
- Direct Known Subclasses:
CSELogo
public class Object3dList extends Object3dAdaptor
-
Field Summary
Fields Modifier and Type Field Description protected int
defaultColor
protected int
delay
protected int
elementCount
protected Object3d[]
elementData
protected double[]
keys
protected long
lasttime
Fields inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, firstFrame, lastFrame
-
Constructor Summary
Constructors Constructor Description Object3dList(int initial)
-
Method Summary
Modifier and Type Method Description void
addElement(Object3d e)
void
append(Object3dList l)
Object3d
elementAt(int i)
void
render(View3d v)
render this object3dvoid
setDefaultColor(int c)
void
setDelay(int delay)
int
size()
void
sort(View3d v)
void
sortByFirstFrame()
sort by firstFramevoid
sortByLastFrame()
sort by lasstFramevoid
sortBySelectFrame()
sort by selectFramevoid
toVRML(VRMLState v)
turn into VRMLvoid
transform(au.edu.unsw.cse.Matrix3D T)
Methods inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, depthBias, getColorIndex, getFirstFrame, getLastFrame, getSelectFrame, id, select, setCentre, setFirstFrame, setLastFrame, 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
-
Field Details
-
keys
protected double[] keys -
elementData
-
elementCount
protected int elementCount -
lasttime
protected long lasttime -
delay
protected int delay -
defaultColor
protected int defaultColor
-
-
Constructor Details
-
Object3dList
public Object3dList(int initial)
-
-
Method Details
-
setDelay
public void setDelay(int delay) -
setDefaultColor
public void setDefaultColor(int c) -
addElement
-
append
-
elementAt
-
size
public int size() -
sortByFirstFrame
public void sortByFirstFrame()sort by firstFrame -
sortByLastFrame
public void sortByLastFrame()sort by lasstFrame -
sortBySelectFrame
public void sortBySelectFrame()sort by selectFrame -
sort
-
render
Description copied from interface:Object3d
render this object3d- Specified by:
render
in interfaceObject3d
- Overrides:
render
in classObject3dAdaptor
-
transform
public void transform(au.edu.unsw.cse.Matrix3D T)- Specified by:
transform
in interfaceObject3d
- Overrides:
transform
in classObject3dAdaptor
-
toVRML
Description copied from interface:Object3d
turn into VRML- Specified by:
toVRML
in interfaceObject3d
- Overrides:
toVRML
in classObject3dAdaptor
-