public abstract class IScalarField extends IField implements IScalarFieldI
| Modifier and Type | Field and Description |
|---|---|
IScalarFieldI |
field |
targetClassesalive, duration, interactOverridden, localDynamics, parent, targets, time| Constructor and Description |
|---|
IScalarField(IScalarFieldI f) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyForce(IParticleI p) |
IScalarField |
bidirectional(boolean b)
if bidirectional is on, field force vector is flipped when velocity of particle is going opposite
|
IScalarField |
constantIntensity(boolean b)
if output vector is besed on constant length (intensity) or variable depending geometry when curve or surface tangent is used
|
IScalarField |
decay(IDecay decay,
double threshold)
custom decay
|
IScalarFieldI |
field() |
IScalarField |
gauss(double threshold)
alias of gaussianDecay
|
IScalarField |
gaussian(double threshold)
alias of gaussianDecay
|
IScalarField |
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).
|
double |
intensity()
get output intensity
|
IScalarField |
intensity(double i)
set output intensity
|
IScalarField |
linear(double threshold)
alias of linearDecay
|
IScalarField |
linearDecay(double threshold)
set linear decay with threshold; When distance is equal to threshold, output is zero.
|
IScalarField |
noDecay()
set no decay
|
double |
threshold()
get decay threshold
|
IScalarField |
threshold(double t)
set decay threshold
|
abstract IVecI |
to3d(IScalar v)
convert scalar value to 3d vector
|
applyField, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, get, 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, del, del, 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, weightclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic IScalarFieldI field
public IScalarField(IScalarFieldI f)
public void applyForce(IParticleI p)
public IScalarFieldI field()
public IScalarField noDecay()
public IScalarField linearDecay(double threshold)
linearDecay in interface IFieldIpublic IScalarField linear(double threshold)
IFieldIpublic IScalarField gaussianDecay(double threshold)
gaussianDecay in interface IFieldIpublic IScalarField gaussian(double threshold)
IFieldIpublic IScalarField gauss(double threshold)
IFieldIpublic IScalarField decay(IDecay decay, double threshold)
public IScalarField constantIntensity(boolean b)
constantIntensity in interface IFieldIpublic IScalarField bidirectional(boolean b)
bidirectional in interface IFieldIpublic IScalarField threshold(double t)
public double threshold()
public IScalarField intensity(double i)