Package com.prineside.tdi2.ui.shared
Class CameraTools.Scenario
java.lang.Object
com.prineside.tdi2.ui.shared.CameraTools.Scenario
- Enclosing class:
- CameraTools
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
com.badlogic.gdx.utils.Array<CameraTools.Scenario.Keyframe>
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector3
calculate
(float time) static CameraTools.Scenario
fromJson
(com.badlogic.gdx.utils.JsonValue jsonValue) double
getKeyframe
(int frame) void
removeKeyframe
(int frame) setKeyframe
(int frame, float x, InterpolationType iX, float y, InterpolationType iY, float z, InterpolationType iZ) void
setKeyframeX
(int frame, float x, InterpolationType iX) void
setKeyframeY
(int frame, float y, InterpolationType iY) void
setKeyframeZ
(int frame, float z, InterpolationType iZ) void
toJson
(com.badlogic.gdx.utils.Json json) Inside writeObjectStart()
-
Field Details
-
name
-
fps
public int fps -
length
public int length -
startFrame
public int startFrame -
keyframes
-
-
Constructor Details
-
Scenario
public Scenario()
-
-
Method Details
-
getDuration
public double getDuration()- Returns:
- duration of the scenario in seconds
-
calculate
public com.badlogic.gdx.math.Vector3 calculate(float time) -
getKeyframe
-
removeKeyframe
public void removeKeyframe(int frame) -
setKeyframe
public CameraTools.Scenario.Keyframe setKeyframe(int frame, float x, InterpolationType iX, float y, InterpolationType iY, float z, InterpolationType iZ) -
setKeyframeX
-
setKeyframeY
-
setKeyframeZ
-
fromJson
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) Inside writeObjectStart()
-