|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.dform.DForm net.nexttext.behaviour.dform.ChaosPull
public class ChaosPull
ChaosPull is similar to Pull
except that the control points get into a chaotic state when
they reach the target.
TODO: add parameters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
ChaosPull(float x,
float y)
Constructor creates a ChaosPull at x,y with a default strength of 1200. |
|
ChaosPull(float x,
float y,
float z)
Constructor creates a ChaosPull at x,y,z with a default strength of 1200. |
|
ChaosPull(float x,
float y,
float z,
int chaosStrength)
Constructor creates a ChaosPull at x,y,z. |
|
ChaosPull(float x,
float y,
int chaosStrength)
Constructor creates a ChaosPull at x,y. |
|
ChaosPull(Locatable target)
Constructor creates a ChaosPull at the target with a default strength of 1200. |
|
ChaosPull(Locatable target,
int chaosStrength)
Constructor. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObjectGlyph to)
DForms generally just make sense on TextObjectGlyphs. |
int |
getChaosStrength()
|
void |
setChaosStrength(int chaosStrength)
Sets the 'strength' of the chaosPull, stronger chaosPull results in larger deformations and faster pulling. |
void |
setTarget(float x,
float y)
Set a new target for this action. |
void |
setTarget(float x,
float y,
float z)
Set a new target for this action. |
void |
setTarget(Locatable target)
Set a new target for this action. |
void |
setTarget(processing.core.PVector target)
Set a new target for this action. |
Methods inherited from class net.nexttext.behaviour.dform.DForm |
---|
behave, getControlPoints |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, complete, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.nexttext.behaviour.Action |
---|
behave, behave, behave, complete, getRequiredProperties |
Constructor Detail |
---|
public ChaosPull(Locatable target, int chaosStrength)
target
- location of the attraction point that pulls the verticeschaosStrength
- strength of the attractionpublic ChaosPull(Locatable target)
target
- public ChaosPull(float x, float y, int chaosStrength)
x
- y
- chaosStrength
- public ChaosPull(float x, float y)
x
- y
- public ChaosPull(float x, float y, float z)
x
- y
- z
- public ChaosPull(float x, float y, float z, int chaosStrength)
x
- y
- z
- chaosStrength
- Method Detail |
---|
public Action.ActionResult behave(TextObjectGlyph to)
DForm
behave
in class DForm
public int getChaosStrength()
public void setChaosStrength(int chaosStrength)
The default value is 1200.
public void setTarget(float x, float y)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(float x, float y, float z)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(processing.core.PVector target)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(Locatable target)
TargetingAction
setTarget
in interface TargetingAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |