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.ShapeData
elements,AnimGroup.LerpFunc
and animation parameter.
-
-
Field Summary
Fields Modifier and Type Field Description float
accel
Translation acceleration in [m]/[s*s]float
accel_obj
Translation acceleration in [shapeUnit]/[s*s]List<AnimGroup.ShapeData>
allShapes
AllShape
s wrapped withinAnimGroup.ShapeData
.float
ang_accel
Angular acceleration in [radians]/[s*s]float
ang_velo
Current angular velocity in [radians]/[s]AnimGroup.LerpFunc
lerp
AnimGroup.LerpFunc
functionfloat
pixPerMM
Pixel per millimetercom.jogamp.math.Vec2f
pixPerShapeUnit
Pixel per shape unitShape
refShape
ReferenceShape
giving reference sizecom.jogamp.math.geom.AABBox
sourceBounds
Unscaled bounds ofallShapes
at their original position, size and rotation.float
start_ang_velo
Start angular velocity in [radians]/[s]float
start_velocity
Start translation velocity in [m]/[s]float
start_velocity_obj
Start translation velocity in [shapeUnit]/[s]float
velocity
Current translation velocity in [m]/[s]float
velocity_obj
Current translation velocity in [shapeUnit]/[s]
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimGroup.ShapeData
addShape(AnimGroup g, Shape s, AnimGroup.ShapeSetup op)
boolean
isAnimationActive()
void
removeShape(AnimGroup g, GL2ES2 gl, RegionRenderer renderer, AnimGroup.ShapeData sd)
void
removeShapes(AnimGroup g, GL2ES2 gl, RegionRenderer renderer)
void
setAnimationActive(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.LerpFunc
function
-
allShapes
public final List<AnimGroup.ShapeData> allShapes
AllShape
s wrapped withinAnimGroup.ShapeData
.
-
sourceBounds
public final com.jogamp.math.geom.AABBox sourceBounds
Unscaled bounds ofallShapes
at their original position, size and rotation.
-
-
Method Detail
-
addShape
public AnimGroup.ShapeData addShape(AnimGroup g, Shape s, AnimGroup.ShapeSetup op)
Adds givenShape
to thisAnimGroup.Set
and itsAnimGroup
wrapping 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.ShapeData
from thisAnimGroup.Set
and itsAnimGroup
.Also destroys the
AnimGroup.ShapeData
, including itsAnimGroup.ShapeData
and theirShape
.
-
removeShapes
public void removeShapes(AnimGroup g, GL2ES2 gl, RegionRenderer renderer)
Removes allAnimGroup.ShapeData
from thisAnimGroup.Set
and itsAnimGroup
.Also destroys the
AnimGroup.ShapeData
, including itsAnimGroup.ShapeData
and theirShape
.
-
setAnimationActive
public void setAnimationActive(boolean v)
-
isAnimationActive
public boolean isAnimationActive()
-
-