Package com.jogamp.graph.ui
Class AnimGroup.Set
- java.lang.Object
-
- com.jogamp.graph.ui.AnimGroup.Set
-
- Enclosing class:
- AnimGroup
public static final class AnimGroup.Set extends Object
Animation-Set covering itsAnimGroup.ShapeDataelements,AnimGroup.LerpFuncand animation parameter.
-
-
Field Summary
Fields Modifier and Type Field Description floataccelTranslation acceleration in [m]/[s*s]floataccel_objTranslation acceleration in [shapeUnit]/[s*s]List<AnimGroup.ShapeData>allShapesAllShapes wrapped withinAnimGroup.ShapeData.floatang_accelAngular acceleration in [radians]/[s*s]floatang_veloCurrent angular velocity in [radians]/[s]AnimGroup.LerpFunclerpAnimGroup.LerpFuncfunctionfloatpixPerMMPixel per millimetercom.jogamp.math.Vec2fpixPerShapeUnitPixel per shape unitShaperefShapeReferenceShapegiving reference sizecom.jogamp.math.geom.AABBoxsourceBoundsUnscaled bounds ofallShapesat their original position, size and rotation.floatstart_ang_veloStart angular velocity in [radians]/[s]floatstart_velocityStart translation velocity in [m]/[s]floatstart_velocity_objStart translation velocity in [shapeUnit]/[s]floatvelocityCurrent translation velocity in [m]/[s]floatvelocity_objCurrent translation velocity in [shapeUnit]/[s]
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimGroup.ShapeDataaddShape(AnimGroup g, Shape s, AnimGroup.ShapeSetup op)booleanisAnimationActive()voidremoveShape(AnimGroup g, GL2ES2 gl, RegionRenderer renderer, AnimGroup.ShapeData sd)voidremoveShapes(AnimGroup g, GL2ES2 gl, RegionRenderer renderer)voidsetAnimationActive(boolean v)
-
-
-
Field Detail
-
pixPerMM
public final float pixPerMM
Pixel per millimeter
-
pixPerShapeUnit
public final com.jogamp.math.Vec2f pixPerShapeUnit
Pixel per shape unit
-
accel
public final float accel
Translation acceleration in [m]/[s*s]
-
accel_obj
public final float accel_obj
Translation acceleration in [shapeUnit]/[s*s]
-
start_velocity
public final float start_velocity
Start translation velocity in [m]/[s]
-
start_velocity_obj
public final float start_velocity_obj
Start translation velocity in [shapeUnit]/[s]
-
velocity
public float velocity
Current translation velocity in [m]/[s]
-
velocity_obj
public float velocity_obj
Current translation velocity in [shapeUnit]/[s]
-
ang_accel
public final float ang_accel
Angular acceleration in [radians]/[s*s]
-
start_ang_velo
public final float start_ang_velo
Start angular velocity in [radians]/[s]
-
ang_velo
public float ang_velo
Current angular velocity in [radians]/[s]
-
lerp
public final AnimGroup.LerpFunc lerp
AnimGroup.LerpFuncfunction
-
allShapes
public final List<AnimGroup.ShapeData> allShapes
AllShapes wrapped withinAnimGroup.ShapeData.
-
sourceBounds
public final com.jogamp.math.geom.AABBox sourceBounds
Unscaled bounds ofallShapesat their original position, size and rotation.
-
-
Method Detail
-
addShape
public AnimGroup.ShapeData addShape(AnimGroup g, Shape s, AnimGroup.ShapeSetup op)
Adds givenShapeto thisAnimGroup.Setand itsAnimGroupwrapping it inAnimGroup.ShapeData.Also issues
AnimGroup.ShapeSetup.setup(Set, int, ShapeData).- Returns:
- newly created
AnimGroup.ShapeData
-
removeShape
public void removeShape(AnimGroup g, GL2ES2 gl, RegionRenderer renderer, AnimGroup.ShapeData sd)
Removes givenAnimGroup.ShapeDatafrom thisAnimGroup.Setand itsAnimGroup.Also destroys the
AnimGroup.ShapeData, including itsAnimGroup.ShapeDataand theirShape.
-
removeShapes
public void removeShapes(AnimGroup g, GL2ES2 gl, RegionRenderer renderer)
Removes allAnimGroup.ShapeDatafrom thisAnimGroup.Setand itsAnimGroup.Also destroys the
AnimGroup.ShapeData, including itsAnimGroup.ShapeDataand theirShape.
-
setAnimationActive
public void setAnimationActive(boolean v)
-
isAnimationActive
public boolean isAnimationActive()
-
-