public class I2DField extends IField implements I2DFieldI
| Modifier and Type | Field and Description |
|---|---|
I2DFieldI |
field |
targetClassesalive, duration, interactOverridden, localDynamics, parent, targets, time| Modifier and Type | Method and Description |
|---|---|
void |
applyField(IParticleI p) |
I2DField |
bidirectional(boolean b)
if bidirectional is on, field force vector is flipped when velocity of particle is going opposite
|
I2DField |
constantIntensity(boolean b)
if output vector is besed on constant length (intensity) or variable depending geometry when curve or surface tangent is used
|
I2DField |
decay(IDecay decay,
double threshold)
custom decay
|
void |
del()
delete agent and stop it by removing it from dynamics server
|
void |
del(boolean deleteGeometry)
stop agent with option of deleting/keeping the geometry the agent owns
|
I2DFieldI |
field() |
I2DField |
gauss(double threshold)
alias of gaussianDecay
|
I2DField |
gaussian(double threshold)
alias of gaussianDecay
|
I2DField |
gaussianDecay(double threshold)
set Gaussian decay with threshold; Threshold is used as double of standard deviation (when distance is eqaul to threshold, output is 13.5% of original).
|
IVec2I |
get(IVecI pt)
get field value at 3D location
|
IVec2I |
get(IVecI pt,
IVecI vel)
default field vector ignoreing velocity
|
double |
intensity()
get output intensity
|
I2DField |
intensity(double i)
set output intensity
|
I2DField |
linear(double threshold)
alias of linearDecay
|
I2DField |
linearDecay(double threshold)
set linear decay with threshold; When distance is equal to threshold, output is zero.
|
I2DField |
noDecay()
set no decay
|
double |
threshold()
get decay threshold
|
I2DField |
threshold(double t)
set decay threshold
|
clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, hide, hsb, hsb, hsb, hsb, interact, isTarget, isTargetClass, layer, name, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setHSBColor, setHSBColor, setHSBColor, setHSBColor, show, target, target, targetClass, targetClass, weight, weightaddDynamics, alive, deletDynamics, deleteDynamics, deleteDynamics, duration, duration, dynamicsNum, getDynamics, initAgent, interact, localDynamics, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, setColor, setColor, setColor, setColor, target, target, targetNum, targets, time, time, update, updateGraphic, updateTargetaddUserData, addUserData, alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, cp, createGraphic, defaultAttribute, deleteGraphic, dup, getAWTColor, getColor, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isValid, isVisible, layer, layer, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, userData, userData, userData, userDataNum, visible, weightpublic I2DFieldI field
public I2DField(I2DFieldI f)
public IVec2I get(IVecI pt)
I2DFieldIpublic IVec2I get(IVecI pt, IVecI vel)
IFieldpublic void applyField(IParticleI p)
applyField in class IFieldpublic I2DFieldI field()
public I2DField linearDecay(double threshold)
linearDecay in interface IFieldIpublic I2DField linear(double threshold)
public I2DField gaussianDecay(double threshold)
gaussianDecay in interface IFieldIpublic I2DField gaussian(double threshold)
public I2DField gauss(double threshold)
IFieldIpublic I2DField constantIntensity(boolean b)
constantIntensity in interface IFieldIpublic I2DField bidirectional(boolean b)
bidirectional in interface IFieldIpublic I2DField threshold(double t)
public double threshold()
public I2DField intensity(double i)
public double intensity()
public void del()
IAgent