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 TypeMethodDescriptionvoidprotected booleancheckClickDistance(int screenX, int screenY, com.badlogic.gdx.math.Vector3 pos, NaturalCamera camera, com.badlogic.gdx.graphics.PerspectiveCamera pcamera, double pixelSize) voidclear()voidprotected voidContains actions to take after a new entity has been set.protected voidentityCheck(com.badlogic.ashley.core.Entity entity) Checks whether the given entity is suitable for this view.protected voidThis method is called when the entity of this view is cleared.voidbooleanbooleanmoveSelection(int screenX, int screenY, NaturalCamera camera) voidRefreshes the positions and orientations from the keyframesvoidRefreshes the orientations from the keyframesvoidrefreshSingleVector(com.badlogic.ashley.core.Entity vo, Vector3d pos, Vector3d vec) voidbooleanrotateAroundCrs(double dx, double dy, NaturalCamera camera) booleanrotateAroundDir(double dx, double dy, NaturalCamera camera) booleanrotateAroundUp(double dx, double dy, NaturalCamera camera) select(int screenX, int screenY, int minPixDist, NaturalCamera camera) voidvoidsetPathKnots(double[] kts, double[] dirs, double[] ups, boolean[] seams) voidvoidunhighlight(Keyframe keyframe) voidunselect()Methods inherited from class gaiasky.scene.view.BaseView
componentsCheck, getBase, getBody, getComponent, getComponentType, getOpacity, hasCt, isForceLabel, isVisible, isVisible, setColor, setForcelabel, setForceLabel, setVisible, setVisibleMethods inherited from class gaiasky.scene.view.AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntity
-
Constructor Details
-
KeyframesView
-
-
Method Details
-
entityCheck
protected void entityCheck(com.badlogic.ashley.core.Entity entity) Description copied from class:AbstractViewChecks whether the given entity is suitable for this view. This method should throw aRuntimeExceptionif the entity is not suitable.- Overrides:
entityCheckin classBaseView- Parameters:
entity- The entity.
-
entityChanged
protected void entityChanged()Description copied from class:AbstractViewContains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChangedin classBaseView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractViewThis method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityClearedin 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()
-