|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.camera.flight.CameraFlight
public class CameraFlight
This class can be used to replay a pre-recorded camera flight.
CameraFlightRecorder| Nested Class Summary | |
|---|---|
static class |
CameraFlight.Format
|
class |
CameraFlight.InterpolationPoint
|
| Constructor Summary | |
|---|---|
CameraFlight()
Creates a new CameraFlight |
|
CameraFlight(java.io.File file)
Creates a new CameraFlight and loads data from the given file. |
|
CameraFlight(java.io.InputStream in)
Creates a new CameraFlight and loads data from the given InputStream. |
|
CameraFlight(java.util.List<CameraFlight.InterpolationPoint> interPoints)
|
|
CameraFlight(java.lang.String filename)
Creates a new CameraFlight and loads data from the given file. |
|
CameraFlight(java.net.URL url)
Creates a new CameraFlight and loads data from the given URL. |
|
| Method Summary | |
|---|---|
void |
addCameraFlightListener(CameraFlightListener l)
Adds a new CameraFlightListener to the list |
void |
addRotPos(org.openmali.vecmath2.Matrix3f rot,
org.openmali.vecmath2.Point3f pos,
float deltaTime)
Adds a camera-transformation-matrix to the list. |
void |
load(java.io.File file)
Loads the CameraFlight from the specified File. |
void |
load(java.io.InputStream in)
Loads the CameraFlight from the specified InputStream. |
void |
load(java.lang.String filename)
Loads the CameraFlight from the specified file. |
void |
load(java.net.URL url)
Loads the CameraFlight from the specified URL. |
void |
removeCameraFlightListener(CameraFlightListener l)
Remvoes a CameraFlightListener from the list |
void |
restart(long gameTime,
UpdatingThread.TimingMode timingMode)
|
void |
start(long startTime)
|
void |
updateCamera(Transformable cam,
long gameTime,
UpdatingThread.TimingMode timingMode)
Interpolates View rotation and position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CameraFlight()
public CameraFlight(java.util.List<CameraFlight.InterpolationPoint> interPoints)
public CameraFlight(java.io.InputStream in)
throws java.io.IOException
java.io.IOException
public CameraFlight(java.net.URL url)
throws java.io.IOException
java.io.IOException
public CameraFlight(java.io.File file)
throws java.io.IOException
java.io.IOException
public CameraFlight(java.lang.String filename)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void addCameraFlightListener(CameraFlightListener l)
l - the new listener to be addedpublic void removeCameraFlightListener(CameraFlightListener l)
l - the listener to be removed
public void updateCamera(Transformable cam,
long gameTime,
UpdatingThread.TimingMode timingMode)
cam - the View to be updatedgameTime - the current game timetimingMode -
public void restart(long gameTime,
UpdatingThread.TimingMode timingMode)
public void start(long startTime)
public void addRotPos(org.openmali.vecmath2.Matrix3f rot,
org.openmali.vecmath2.Point3f pos,
float deltaTime)
rot - pos - deltaTime -
public void load(java.io.InputStream in)
throws java.io.IOException
in - the InputStream to load from
java.io.IOException
public void load(java.net.URL url)
throws java.io.IOException
url - the URL to load from
java.io.IOException
public void load(java.io.File file)
throws java.io.IOException
file - the File to load from
java.io.IOException
public void load(java.lang.String filename)
throws java.io.IOException
filename - the file to load from
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||