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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionintcom.badlogic.gdx.utils.Array<CameraTools.Scenario.Keyframe>intint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector3calculate(float time) static CameraTools.ScenariofromJson(com.badlogic.gdx.utils.JsonValue jsonValue) doublegetKeyframe(int frame) voidremoveKeyframe(int frame) setKeyframe(int frame, float x, InterpolationType iX, float y, InterpolationType iY, float z, InterpolationType iZ) voidsetKeyframeX(int frame, float x, InterpolationType iX) voidsetKeyframeY(int frame, float y, InterpolationType iY) voidsetKeyframeZ(int frame, float z, InterpolationType iZ) voidtoJson(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()
-