|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
org.xith3d.loop.opscheduler.ScheduledScreenshot
public class ScheduledScreenshot
An instance of this class can be added to any implementation of OperationScheduler. ExtXith3DEnvironment implements OperationScheduler. It allows to call a takeScreenshot-method from any thread, and the shot is taken at the next RenderLoop iteration.
| Constructor Summary | |
|---|---|
ScheduledScreenshot(Canvas3D canvas,
java.io.File file,
boolean alpha)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Canvas3D |
getCanvas3D()
|
java.io.File |
getFile()
|
void |
setCanvas3D(Canvas3D canvas)
Sets the Canvas3D to take the screenshot from. |
void |
setFile(java.io.File file)
Sets the file to write the screenshot to. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl |
|---|
isAlive, isPersistent, setAlive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledScreenshot(Canvas3D canvas,
java.io.File file,
boolean alpha)
canvas - the Canvas3D to take the screenshot fromfile - the File to store the screenshot atalpha - with alpha channel?| Method Detail |
|---|
public void setCanvas3D(Canvas3D canvas)
public Canvas3D getCanvas3D()
public void setFile(java.io.File file)
public java.io.File getFile()
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||