Package gaiasky.scene.view
Class KeyframesView
java.lang.Object
gaiasky.scene.view.AbstractView
gaiasky.scene.view.BaseView
gaiasky.scene.view.KeyframesView
-
Field Summary
Fields inherited from class gaiasky.scene.view.AbstractView
entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
checkClickDistance
(int screenX, int screenY, com.badlogic.gdx.math.Vector3 pos, NaturalCamera camera, com.badlogic.gdx.graphics.PerspectiveCamera pcamera, double pixelSize) void
clear()
void
protected void
Contains actions to take after a new entity has been set.protected void
entityCheck
(com.badlogic.ashley.core.Entity entity) Checks whether the given entity is suitable for this view.protected void
This method is called when the entity of this view is cleared.void
boolean
boolean
moveSelection
(int screenX, int screenY, NaturalCamera camera) void
Refreshes the positions and orientations from the keyframesvoid
Refreshes the orientations from the keyframesvoid
refreshSingleVector
(com.badlogic.ashley.core.Entity vo, Vector3d pos, Vector3d vec) void
boolean
rotateAroundCrs
(double dx, double dy, NaturalCamera camera) boolean
rotateAroundDir
(double dx, double dy, NaturalCamera camera) boolean
rotateAroundUp
(double dx, double dy, NaturalCamera camera) select
(int screenX, int screenY, int minPixDist, NaturalCamera camera) void
void
setPathKnots
(double[] kts, double[] dirs, double[] ups, boolean[] seams) void
void
unhighlight
(Keyframe keyframe) void
unselect()
Methods inherited from class gaiasky.scene.view.BaseView
componentsCheck, getBase, getBody, getComponent, getComponentType, getOpacity, hasCt, isVisible, isVisible, setColor, setVisible, setVisible
Methods inherited from class gaiasky.scene.view.AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntity
-
Constructor Details
-
Method Details
-
entityCheck
protected void entityCheck(com.badlogic.ashley.core.Entity entity) Description copied from class:AbstractView
Checks whether the given entity is suitable for this view. This method should throw aRuntimeException
if the entity is not suitable.- Overrides:
entityCheck
in classBaseView
- Parameters:
entity
- The entity.
-
entityChanged
protected void entityChanged()Description copied from class:AbstractView
Contains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChanged
in classBaseView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractView
This method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityCleared
in classBaseView
-
refreshData
public void refreshData()Refreshes the positions and orientations from the keyframes -
refreshOrientations
public void refreshOrientations()Refreshes the orientations from the keyframes -
refreshSingleVector
-
resamplePath
public void resamplePath() -
setPathKnots
public void setPathKnots(double[] kts, double[] dirs, double[] ups, boolean[] seams) -
addKnot
-
select
-
checkClickDistance
protected boolean checkClickDistance(int screenX, int screenY, com.badlogic.gdx.math.Vector3 pos, NaturalCamera camera, com.badlogic.gdx.graphics.PerspectiveCamera pcamera, double pixelSize) -
highlight
-
unhighlight
-
unhighlight
public void unhighlight() -
select
-
unselect
public void unselect() -
isSelected
public boolean isSelected() -
moveSelection
-
rotateAroundDir
-
rotateAroundUp
-
rotateAroundCrs
-
clearOrientations
public void clearOrientations() -
clear
public void clear()
-