public class I3DField extends IField implements I3DFieldI
Modifier and Type | Field and Description |
---|---|
I3DFieldI |
field |
targetClasses
alive, duration, interactOverridden, localDynamics, parent, targets, time
Modifier and Type | Method and Description |
---|---|
void |
applyField(IParticleI p) |
I3DField |
bidirectional(boolean b)
if bidirectional is on, field force vector is flipped when velocity of particle is going opposite
|
I3DField |
constantIntensity(boolean b)
if output vector is besed on constant length (intensity) or variable depending geometry when curve or surface tangent is used
|
I3DField |
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
|
I3DFieldI |
field() |
I3DField |
gauss(double threshold)
alias of gaussianDecay
|
I3DField |
gaussian(double threshold)
alias of gaussianDecay
|
I3DField |
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).
|
IVecI |
get(IVecI pt)
get field value at 3D location
|
IVecI |
get(IVecI pt,
IVecI vel)
default field vector ignoreing velocity
|
double |
intensity()
get output intensity
|
I3DField |
intensity(double i)
set output intensity
|
I3DField |
linear(double threshold)
alias of linearDecay
|
I3DField |
linearDecay(double threshold)
set linear decay with threshold; When distance is equal to threshold, output is zero.
|
I3DField |
noDecay()
set no decay
|
double |
threshold()
get decay threshold
|
I3DField |
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, weight
addDynamics, 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, updateTarget
addUserData, 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, weight
public I3DFieldI field
public I3DField(I3DFieldI f)
public IVecI get(IVecI pt)
I3DFieldI
public IVecI get(IVecI pt, IVecI vel)
IField
public void applyField(IParticleI p)
applyField
in class IField
public I3DFieldI field()
public I3DField linearDecay(double threshold)
linearDecay
in interface IFieldI
public I3DField linear(double threshold)
public I3DField gaussianDecay(double threshold)
gaussianDecay
in interface IFieldI
public I3DField gaussian(double threshold)
public I3DField gauss(double threshold)
public I3DField constantIntensity(boolean b)
constantIntensity
in interface IFieldI
public I3DField bidirectional(boolean b)
bidirectional
in interface IFieldI
public I3DField threshold(double t)
public double threshold()
public I3DField intensity(double i)
public double intensity()
public void del()
IAgent