public class ThrustWorld extends TteoacWorld
Modifier and Type | Field and Description |
---|---|
protected com.buckosoft.povspew.tteoac.Thrust.ThrustWorld.EngineTemp |
cabooseEngineTemp |
protected java.text.DecimalFormat |
df |
protected java.text.DecimalFormat |
df3 |
protected java.text.DecimalFormat |
df4 |
int |
endFrame
When creating only a subset of frames, end here
|
protected com.buckosoft.povspew.tteoac.Thrust.ThrustWorld.EngineTemp |
locoEngineTemp |
int |
maxThrusts |
protected Point |
spaceCabooseRot |
protected Point |
spaceCabooseVec |
protected Point |
spaceCabooseVel |
protected Point |
spaceLocoRot |
protected Point |
spaceLocoVec
current position of the loco
|
protected Point |
spaceLocoVel |
int |
startFrame
When creating only a subset of frames, start here
|
protected ThrustPiece[] |
thrustPieces |
fireplaceShelfLength, outPath, rwavF, rwavG, scenecount, SCENEttbo, sceneTtbo480Length, sceneTtbo720Length, sceneTtboLength, SCENEttco, sceneTtco480Length, sceneTtco720Length, sceneTtcoLength, SCENEttdo, sceneTtdo480Length, sceneTtdo720Length, sceneTtdoLength, SCENEtteo, sceneTteo480Length, sceneTteo720Length, sceneTteoLength, SCENEttfo, sceneTtfo480Length, sceneTtfo720Length, sceneTtfoLength, SCENEttho, sceneTtho480Length, sceneTtho720Length, sceneTthoLength, SCENEttko, sceneTtko480Length, sceneTtko720Length, sceneTtkoLength, SCENEttlo, sceneTtlo480Length, sceneTtlo720Length, sceneTtloLength, SCENEttso, sceneTtso480Length, sceneTtso720Length, sceneTtsoLength, SCENEttto, sceneTtto480Length, sceneTtto720Length, sceneTttoLength, SCENEttvo, sceneTtvo480Length, sceneTtvo720Length, sceneTtvoLength, straightTrackLength, trackCircleRadius, tteo480VolcanoEruptCymbal1, tteo480VolcanoEruptCymbal2, tteo480VolcanoEruptCymbal3, tteo480VolcanoEruptMainGun, tteo480VolcanoEruptStart, tteo720VolcanoEruptCymbal1, tteo720VolcanoEruptCymbal2, tteo720VolcanoEruptCymbal3, tteo720VolcanoEruptMainGun, tteo720VolcanoEruptStart, tteoVolcanoEruptCymbal1, tteoVolcanoEruptCymbal2, tteoVolcanoEruptCymbal3, tteoVolcanoEruptMainGun, tteoVolcanoEruptStart, ttfo480FRBubbleEnd, ttfo720FRBubbleEnd, ttfoFRBubbleEnd, ttko480MCExplodeEnd, ttko480MCExplodePause, ttko480MCExplodeResume, ttko480MCExplodeStart, ttko480MCExplosionHitsKid, ttko480MCGrowStart, ttko480MCShrinkStart, ttko480MCTopStart, ttko480PlateCrashEnd, ttko480PlateCrashFlyStart, ttko480ReeferMagnetsHide, ttko480ReeferMagnetsPause, ttko480ReeferMagnetsScared, ttko720MCExplodeEnd, ttko720MCExplodePause, ttko720MCExplodeResume, ttko720MCExplodeStart, ttko720MCExplosionHitsKid, ttko720MCGrowStart, ttko720MCShrinkStart, ttko720MCTopStart, ttko720PlateCrashEnd, ttko720PlateCrashFlyStart, ttko720ReeferMagnetsHide, ttko720ReeferMagnetsPause, ttko720ReeferMagnetsScared, ttkoMCExplodeEnd, ttkoMCExplodePause, ttkoMCExplodeResume, ttkoMCExplodeStart, ttkoMCExplosionHitsKid, ttkoMCGrowStart, ttkoMCShrinkStart, ttkoMCTopStart, ttkoPlateCrashEnd, ttkoPlateCrashFlyStart, ttkoReeferMagnetsHide, ttkoReeferMagnetsPause, ttkoReeferMagnetsScared, ttlo480Camera2Start, ttlo480Camera3Start, ttlo480LiftoffStart, ttlo480LocoMoveStart, ttlo480RollProgramEnd, ttlo480RollProgramStart, ttlo720Camera2Start, ttlo720Camera3Start, ttlo720LiftoffStart, ttlo720LocoMoveStart, ttlo720RollProgramEnd, ttlo720RollProgramStart, ttloCamera2Start, ttloCamera3Start, ttloLiftoffStart, ttloLocoMoveStart, ttloRollProgramEnd, ttloRollProgramStart, ttloThrustLength, ttso480CabooseLand, ttso480Camera2End, ttso480Camera3End, ttso480MaxQResumeStart, ttso480MecoOff, ttso480MecoSputterE, ttso480MecoSputterS, ttso480MecoStart, ttso480SeOn, ttso480SepaRingStart, ttso480SepaStart, ttso480SeSputter1E, ttso480SeSputter1S, ttso480SeSputter2E, ttso480SeSputter2S, ttso480SeStart, ttso480SlPipeEnd, ttso480SlPipeStart, ttso480TimeFPSDifferential, ttso720CabooseLand, ttso720Camera2End, ttso720Camera3End, ttso720MaxQResumeStart, ttso720MecoOff, ttso720MecoSputterE, ttso720MecoSputterS, ttso720MecoStart, ttso720SeOn, ttso720SepaRingStart, ttso720SepaStart, ttso720SeSputter1E, ttso720SeSputter1S, ttso720SeSputter2E, ttso720SeSputter2S, ttso720SeStart, ttso720SlPipeEnd, ttso720SlPipeStart, ttso720TimeFPSDifferential, ttsoCabooseLand, ttsoCamera2End, ttsoCamera3End, ttsoMaxQResumeStart, ttsoMecoOff, ttsoMecoSputterE, ttsoMecoSputterS, ttsoMecoStart, ttsoSeOn, ttsoSepaRingStart, ttsoSepaStart, ttsoSeSputter1E, ttsoSeSputter1S, ttsoSeSputter2E, ttsoSeSputter2S, ttsoSeStart, ttsoSlPipeEnd, ttsoSlPipeStart, ttsoTimeFPSDifferential, ttto480FRLastRock, ttto480FRShowEnd, ttto480FRShowStart, ttto720FRLastRock, ttto720FRShowEnd, ttto720FRShowStart, tttoFRLastRock, tttoFRShowEnd, tttoFRShowStart
Constructor and Description |
---|
ThrustWorld() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendThrustDebugText(java.lang.String s) |
protected void |
closeSet(java.io.FileWriter out)
finish writing this set
|
protected Point |
getCabooseEngineLeft() |
protected Point |
getCabooseEngineRight() |
protected Point |
getLocoEngine(boolean useSepaRingOffset) |
void |
initialize()
Set the directory where we will write our output files
|
protected java.io.FileWriter |
openSet(double now,
int num) |
protected void |
rotatePoint(Point p,
double y,
double z) |
protected void |
rotatePointYZ(Point p,
Point rot) |
protected void |
setThrustDebugTextNull() |
void |
write(javax.servlet.http.HttpServletResponse response,
double fps,
int scene,
int camera,
int frame,
boolean doGlobal)
Read a Thrust file and write it to the servlet
|
protected void |
writeGlobals(java.io.Writer out) |
void |
writePositions(double when,
java.io.Writer out)
Output one frame's worth of declarations for the Thrust (to a file)
|
sceneToString, setDirectory, setupEdition
curve0, curve1, curve2, curve3, curve4, curve5, curve6, curve7, curve8, curve9, curve9a, interpolate3, interpolate3, interpolate5, parsePoint, vToRotY
public int startFrame
public int endFrame
protected final java.text.DecimalFormat df
protected final java.text.DecimalFormat df3
protected final java.text.DecimalFormat df4
public int maxThrusts
protected ThrustPiece[] thrustPieces
protected Point spaceLocoVec
protected Point spaceLocoRot
protected Point spaceLocoVel
protected Point spaceCabooseVec
protected Point spaceCabooseRot
protected Point spaceCabooseVel
protected com.buckosoft.povspew.tteoac.Thrust.ThrustWorld.EngineTemp cabooseEngineTemp
protected com.buckosoft.povspew.tteoac.Thrust.ThrustWorld.EngineTemp locoEngineTemp
public void initialize()
s
- The new directoryprotected void appendThrustDebugText(java.lang.String s)
protected void setThrustDebugTextNull()
protected Point getCabooseEngineLeft()
protected Point getCabooseEngineRight()
protected Point getLocoEngine(boolean useSepaRingOffset)
protected void rotatePoint(Point p, double y, double z)
protected java.io.FileWriter openSet(double now, int num)
protected void closeSet(java.io.FileWriter out) throws java.io.IOException
java.io.IOException
public void writePositions(double when, java.io.Writer out) throws java.io.IOException
out
- The Writer to write our output to. (either file or web)now
- The time index for this iteration of writing.f
- The frame number for this iteration of writing. NOTE: now is for debug onlyjava.io.IOException
- Failed to write to the open file.protected void writeGlobals(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void write(javax.servlet.http.HttpServletResponse response, double fps, int scene, int camera, int frame, boolean doGlobal) throws java.io.IOException
response
- Where to write our output to.fps
- The FPS we are runningscene
- The scene number we are runningf
- The frame number for this iteration of writing.java.io.IOException
- Failed to write to the open file.